{action.icon}
@@ -63,31 +62,33 @@ export const ResultItem = React.forwardRef(
);
}
);
+
ResultItem.displayName = 'ResultItem';
-const getResultItemStyles = (theme: GrafanaTheme2, isActive: boolean) => {
- const textColor = isActive ? theme.colors.text.maxContrast : theme.colors.text.primary;
- const rowBackgroundColor = isActive ? theme.colors.background.primary : 'transparent';
- const shortcutBackgroundColor = isActive ? theme.colors.background.secondary : theme.colors.background.primary;
+const getResultItemStyles = (theme: GrafanaTheme2) => {
return {
row: css({
- color: textColor,
padding: theme.spacing(1, 2),
- background: rowBackgroundColor,
display: 'flex',
alightItems: 'center',
justifyContent: 'space-between',
cursor: 'pointer',
position: 'relative',
+ borderRadius: theme.shape.borderRadius(2),
+ margin: theme.spacing(0, 1),
+ }),
+ activeRow: css({
+ color: theme.colors.text.maxContrast,
+ background: theme.colors.emphasize(theme.colors.background.primary, 0.03),
'&:before': {
- display: isActive ? 'block' : 'none',
+ display: 'block',
content: '" "',
position: 'absolute',
left: 0,
top: 0,
bottom: 0,
width: theme.spacing(0.5),
- borderRadius: theme.shape.borderRadius(1),
+ borderRadius: theme.shape.borderRadius(2),
backgroundImage: theme.colors.gradients.brandVertical,
},
}),
@@ -103,7 +104,7 @@ const getResultItemStyles = (theme: GrafanaTheme2, isActive: boolean) => {
}),
shortcut: css({
padding: theme.spacing(0, 1),
- background: shortcutBackgroundColor,
+ background: theme.colors.background.secondary,
borderRadius: theme.shape.borderRadius(),
fontSize: theme.typography.fontSize,
}),
diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json
index c2bb24742a0..1f9efec846a 100644
--- a/public/locales/en-US/grafana.json
+++ b/public/locales/en-US/grafana.json
@@ -13,7 +13,7 @@
"search": "Search"
},
"search-box": {
- "placeholder": "Search Grafana"
+ "placeholder": "Search or jump to..."
},
"section": {
"actions": "Actions",
diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json
index b480c15e316..266e11b36c8 100644
--- a/public/locales/pseudo-LOCALE/grafana.json
+++ b/public/locales/pseudo-LOCALE/grafana.json
@@ -13,7 +13,7 @@
"search": "Ŝęäřčĥ"
},
"search-box": {
- "placeholder": "Ŝęäřčĥ Ğřäƒäʼnä"
+ "placeholder": "Ŝęäřčĥ őř ĵūmp ŧő..."
},
"section": {
"actions": "Åčŧįőʼnş",