Skip to content

Commit

Permalink
fix: sidebar theming
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 30, 2020
1 parent cb2cdbe commit 692acb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const Sidebar: FC<SidebarProps> = ({ storyId }) => {

const [search, setSearch] = useState<string | undefined>(undefined);
return (
<AppSidebar sx={{ px: 1, backgroundColor: 'gray' }} width={380}>
<AppSidebar sx={{ px: 1, backgroundColor: 'sidebar' }} width={380}>
{siteTitle}
<Input
placeholder="search stories..."
Expand Down
2 changes: 1 addition & 1 deletion plugins/axe-plugin/src/components/NodesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const NodesTable: FC<NodesTableProps> = ({
return (
<Box
sx={{
backgroundColor: 'gray',
backgroundColor: 'shadow',
}}
>
<Table
Expand Down
7 changes: 6 additions & 1 deletion ui/app-components/src/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export const Sidebar: FC<SidebarProps & BoxProps> = ({
const isCollapsed =
(collapsible && size <= 1 && collapsed === undefined) || collapsed === true;
return (
<Collapsible isOpen={!isCollapsed} easing="ease-in-out" {...animate}>
<Collapsible
css={{ display: 'flex', alignItems: 'stretch' }}
isOpen={!isCollapsed}
easing="ease-in-out"
{...animate}
>
<Box
sx={{ overflowY: 'auto', height: '100%', overflowX: 'hidden', width }}
{...rest}
Expand Down
2 changes: 2 additions & 0 deletions ui/components/src/ThemeContext/ThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({
colors: {
...polaris.colors,
gray: '#f6f6f6',
sidebar: '#f6f6f6',
header: '#edebe8',
highlight: '#d9f2f1',
action: '#3B817D',
Expand All @@ -115,6 +116,7 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({
dark: {
...(defTheme.colors.modes ? defTheme.colors.modes.dark : {}),
background: '#38404a',
sidebar: '#000',
text: '#d3d4db',
header: '#111111',
fadedText: '#c9cacf',
Expand Down

0 comments on commit 692acb4

Please sign in to comment.