Merge pull request #16521 from luchillo17/fix/BCKSTG-102-theme-aware-colors

refactor: Replace white & black colors with theme aware ones
This commit is contained in:
Patrik Oldsberg
2023-02-28 13:28:46 +01:00
committed by GitHub
38 changed files with 193 additions and 132 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ import { ShortcutApi } from './api';
import { Shortcut } from './types';
import { SidebarItem } from '@backstage/core-components';
const useStyles = makeStyles({
const useStyles = makeStyles(theme => ({
root: {
'&:hover #edit': {
visibility: 'visible',
@@ -35,10 +35,10 @@ const useStyles = makeStyles({
visibility: 'hidden',
},
icon: {
color: 'white',
color: theme.palette.common.white,
fontSize: 16,
},
});
}));
const getIconText = (title: string) =>
title.split(' ').length === 1