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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user