Improve styling of outlined chips in dark mode (#3252)

This commit is contained in:
Oliver Sand
2020-11-05 18:41:49 +01:00
committed by GitHub
parent 4aca74e089
commit 4577e377be
3 changed files with 11 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/theme': patch
---
Improve styling of outlined chips in dark mode.
@@ -39,3 +39,5 @@ export const SmallDeletable = () => (
export const SmallNotDeletable = () => (
<Chip label="Small not deletable" size="small" />
);
export const Outline = () => <Chip label="Outline" variant="outlined" />;
+4 -1
View File
@@ -209,9 +209,12 @@ export function createThemeOverrides(theme: BackstageTheme): Overrides {
// By default there's no margin, but it's usually wanted, so we add some trailing margin
marginRight: theme.spacing(1),
marginBottom: theme.spacing(1),
color: theme.palette.grey[900],
},
outlined: {
color: theme.palette.text.primary,
},
label: {
color: theme.palette.grey[900],
lineHeight: `${theme.spacing(2.5)}px`,
fontWeight: theme.typography.fontWeightMedium,
fontSize: `${theme.spacing(1.75)}px`,