Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
misc.
Browse files Browse the repository at this point in the history
1. add borderRadius to const
2. use theme bg for darkMode switch
  • Loading branch information
W3stside committed Nov 19, 2020
1 parent 03461d9 commit b3660a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/storybook/decorators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ThemeToggler = (DecoratedStory: () => JSX.Element): JSX.Element =>
return (
<>
<ThemeProvider theme={theme}>
<Frame style={{ backgroundColor: darkMode ? COLOURS.bgDark : COLOURS.bgLight }}>{DecoratedStory()}</Frame>
<Frame style={{ background: darkMode ? COLOURS.bgDark : COLOURS.bgLight }}>{DecoratedStory()}</Frame>
{/* Cheeky use of ButtonBase here :P */}
<ThemeButton kind={ButtonVariations.theme} onClick={handleDarkMode} mode={darkMode}>
<FontAwesomeIcon icon={darkMode ? faSun : faMoon} />
Expand Down
1 change: 1 addition & 0 deletions src/styles/styles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default {
buttonBorder: '0.1rem solid transparent',
borderRadius: '1.6rem',
}

0 comments on commit b3660a1

Please sign in to comment.