Web: Components: Remove applying RTL to storybook docs
This commit is contained in:
parent
530e99034a
commit
c48ba03028
@ -9,9 +9,7 @@ import "../index";
|
||||
|
||||
import lightTheme from "./lightTheme";
|
||||
import darkTheme from "./darkTheme";
|
||||
|
||||
import lightLogo from "./lightsmall.svg?url";
|
||||
import darkLogo from "./darksmall.svg?url";
|
||||
import StorybookGlobalStyles from "./styles/StorybookGlobalStyles";
|
||||
|
||||
const preview = {
|
||||
globalTypes,
|
||||
@ -43,6 +41,7 @@ const preview = {
|
||||
|
||||
return (
|
||||
<ThemeWrapper theme={{ ...theme, interfaceDirection }}>
|
||||
<StorybookGlobalStyles />
|
||||
<Story />
|
||||
</ThemeWrapper>
|
||||
);
|
||||
|
@ -0,0 +1,13 @@
|
||||
import { createGlobalStyle } from "styled-components";
|
||||
|
||||
const StorybookGlobalStyles = createGlobalStyle`
|
||||
.sbdocs-content {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.sbdocs-content .docs-story {
|
||||
direction: ${(props) => props.theme.interfaceDirection};
|
||||
}
|
||||
`;
|
||||
|
||||
export default StorybookGlobalStyles;
|
Loading…
Reference in New Issue
Block a user