Fix tsc types by csstype dependency resolution

- Fix Paper background color to be consistent

- Fix line-height & font-size on body to be consitent

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-04-27 11:15:29 +02:00
parent c36f7b9449
commit 39f4c10c61
5 changed files with 15 additions and 19 deletions
@@ -33,23 +33,23 @@ import { SidebarPinStateProvider } from './SidebarPinStateContext';
export type SidebarPageClassKey = 'root';
const useStyles = makeStyles<
BackstageTheme,
{ sidebarConfig: SidebarConfig; isPinned: boolean }
>(
type PageStyleProps = { sidebarConfig: SidebarConfig; isPinned: boolean };
const useStyles = makeStyles<BackstageTheme, PageStyleProps>(
theme => ({
root: {
width: '100%',
transition: 'padding-left 0.1s ease-out',
isolation: 'isolate',
[theme.breakpoints.up('sm')]: {
paddingLeft: props =>
paddingLeft: (props: PageStyleProps) =>
props.isPinned
? props.sidebarConfig.drawerWidthOpen
: props.sidebarConfig.drawerWidthClosed,
},
[theme.breakpoints.down('xs')]: {
paddingBottom: props => props.sidebarConfig.mobileSidebarHeight,
paddingBottom: (props: PageStyleProps) =>
props.sidebarConfig.mobileSidebarHeight,
},
},
content: {
+1 -1
View File
@@ -25,7 +25,7 @@ export const palettes = {
mode: 'light' as const,
background: {
default: '#F8F8F8',
paper: '#FAFAFA',
paper: '#FFFFFF',
},
status: {
ok: '#1DB954',
@@ -32,6 +32,8 @@ export const defaultComponentThemes: ThemeOptions['components'] = {
height: '100%',
fontFamily: theme.typography.fontFamily,
overscrollBehaviorY: 'none',
fontSize: '0.875rem',
lineHeight: 1.43,
},
a: {
color: 'inherit',