Chore: Fix some theme nits (#95887)

fix some theme nits
This commit is contained in:
Ashley Harrison
2024-11-06 16:03:45 +00:00
committed by GitHub
parent 0629a34ae4
commit b85b18288a
5 changed files with 7 additions and 8 deletions
@@ -120,6 +120,9 @@ const getStyles = (theme: GrafanaTheme2) => {
border: `1px solid ${theme.components.input.borderColor}`,
borderRadius: theme.shape.radius.default,
padding: '2px',
'&:hover': {
borderColor: theme.components.input.borderHover,
},
}),
fullWidth: css({
display: 'flex',
@@ -166,10 +166,6 @@ const getStyles = (theme: GrafanaTheme2) => {
'&:focus:not(:focus-visible)': getMouseFocusStyles(theme),
'&:hover': {
boxShadow: theme.shadows.z1,
},
'&[disabled], &:disabled': {
cursor: 'not-allowed',
opacity: theme.colors.action.disabledOpacity,
@@ -190,7 +186,7 @@ const getStyles = (theme: GrafanaTheme2) => {
'&:hover': {
color: theme.colors.text.primary,
background: theme.colors.background.secondary,
background: theme.colors.action.hover,
},
}),
canvas: defaultOld,
@@ -90,7 +90,7 @@ const getStyles = (theme: GrafanaTheme2, isActive: Props['isActive']) => ({
},
}),
wrapperActive: css({
backgroundColor: theme.colors.background.secondary,
backgroundColor: theme.colors.action.selected,
borderTopRightRadius: theme.shape.radius.default,
borderBottomRightRadius: theme.shape.radius.default,
position: 'relative',
@@ -271,7 +271,7 @@ const getStyles = (theme: GrafanaTheme2) => {
height: ROW_HEIGHT,
'&:hover': {
backgroundColor: theme.colors.emphasize(theme.colors.background.primary, 0.03),
backgroundColor: theme.colors.action.hover,
},
}),
@@ -225,7 +225,7 @@ export const SearchResultsTable = React.memo(
SearchResultsTable.displayName = 'SearchResultsTable';
const getStyles = (theme: GrafanaTheme2) => {
const rowHoverBg = theme.colors.emphasize(theme.colors.background.primary, 0.03);
const rowHoverBg = theme.colors.action.hover;
return {
noData: css({