-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Radix HoverCard instead of react-popper and popper.js (#874)
- Loading branch information
Showing
6 changed files
with
270 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { useContext } from 'react'; | ||
|
||
import { colors, darkColors } from '../common/styleguide'; | ||
import CustomAppearanceContext from '../context/CustomAppearanceContext'; | ||
|
||
const ThemedBody = () => { | ||
const { isDark } = useContext(CustomAppearanceContext); | ||
return ( | ||
<style>{` | ||
html, | ||
body { | ||
background-color: ${isDark ? darkColors.background : colors.white}; | ||
} | ||
`}</style> | ||
); | ||
}; | ||
|
||
export default ThemedBody; |
Oops, something went wrong.