mirror of
https://github.com/primer/css.git
synced 2024-12-29 00:58:31 +03:00
Fix dark mode in docs
This commit is contained in:
parent
2146327a81
commit
0b18f1a327
@ -24,7 +24,7 @@ function LivePreviewWrapper({children}) {
|
||||
<Frame>
|
||||
<link rel="stylesheet" href="https://github.com/site/assets/styleguide.css" />
|
||||
<style>{primerStyles}</style>
|
||||
<div data-color-mode={colorMode}>
|
||||
<div data-color-mode={colorMode} data-light-theme="light" data-dark-theme="dark">
|
||||
<Flex pt={2} px={2} justifyContent="flex-end">
|
||||
<button
|
||||
className="btn"
|
||||
|
@ -14,10 +14,10 @@ function LivePreviewWrapper({children}) {
|
||||
<link rel="stylesheet" href="https://github.com/site/assets/styleguide.css" />
|
||||
<style>{primerStyles}</style>
|
||||
<Flex direction="row">
|
||||
<div data-color-mode="light" style={{flex: 1}}>
|
||||
<div data-color-mode="light" data-light-theme="light" style={{flex: 1}}>
|
||||
<div className="frame-example p-3">{children}</div>
|
||||
</div>
|
||||
<div data-color-mode="dark" style={{flex: 1}}>
|
||||
<div data-color-mode="dark" data-dark-theme="dark" style={{flex: 1}}>
|
||||
<div className="frame-example p-3">{children}</div>
|
||||
</div>
|
||||
</Flex>
|
||||
|
Loading…
Reference in New Issue
Block a user