mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
IconButton: IconButtons are now correctly aligned in Safari (#48759)
* fix icon alignment in safari * add comment
This commit is contained in:
parent
18cbea84b1
commit
a3e68eef17
@ -20,14 +20,15 @@ export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
|
||||
const getIconStyles = stylesFactory((theme: GrafanaTheme) => {
|
||||
return {
|
||||
// line-height: 0; is needed for correct icon alignment in Safari
|
||||
container: css`
|
||||
label: Icon;
|
||||
display: inline-block;
|
||||
line-height: 0;
|
||||
`,
|
||||
icon: css`
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
margin-bottom: ${theme.spacing.xxs};
|
||||
fill: currentColor;
|
||||
`,
|
||||
orange: css`
|
||||
|
@ -154,7 +154,6 @@ const getStyles = stylesFactory((theme: GrafanaTheme2, size: IconSize, variant:
|
||||
}
|
||||
`,
|
||||
icon: css`
|
||||
margin-bottom: 0;
|
||||
vertical-align: baseline;
|
||||
display: flex;
|
||||
`,
|
||||
|
Loading…
Reference in New Issue
Block a user