mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Select: Add orange indicator to selected item (#88695)
* Initial experiment * Add pill and underline * Text decoration for hover * Only set underline on the title * Remove underline from hover * Remove underline alltogether
This commit is contained in:
parent
ae80ed02e4
commit
0107754da8
@ -17,6 +17,7 @@ export const getSelectStyles = stylesFactory((theme: GrafanaTheme2) => {
|
||||
option: css({
|
||||
label: 'grafana-select-option',
|
||||
padding: '8px',
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
flexDirection: 'row',
|
||||
@ -64,6 +65,17 @@ export const getSelectStyles = stylesFactory((theme: GrafanaTheme2) => {
|
||||
}),
|
||||
optionSelected: css({
|
||||
background: theme.colors.action.selected,
|
||||
'&::before': {
|
||||
backgroundImage: theme.colors.gradients.brandVertical,
|
||||
borderRadius: theme.shape.radius.default,
|
||||
content: '" "',
|
||||
display: 'block',
|
||||
height: '100%',
|
||||
position: 'absolute',
|
||||
transform: 'translateX(-50%)',
|
||||
width: theme.spacing(0.5),
|
||||
left: 0,
|
||||
},
|
||||
}),
|
||||
optionDisabled: css({
|
||||
label: 'grafana-select-option-disabled',
|
||||
|
Loading…
Reference in New Issue
Block a user