Move storybooks dir attr to html element
This commit is contained in:
parent
13e44f087e
commit
4dc52a6fff
1 changed files with 3 additions and 1 deletions
|
@ -155,8 +155,10 @@ const withGlobalTypesProvider = (Story, context) => {
|
||||||
|
|
||||||
document.body.classList.add('page-is-visible');
|
document.body.classList.add('page-is-visible');
|
||||||
|
|
||||||
|
document.documentElement.setAttribute('dir', direction);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.container} dir={direction}>
|
<div className={styles.container}>
|
||||||
<StorybookThemeContext.Provider value={theme}>
|
<StorybookThemeContext.Provider value={theme}>
|
||||||
<Story {...context} />
|
<Story {...context} />
|
||||||
</StorybookThemeContext.Provider>
|
</StorybookThemeContext.Provider>
|
||||||
|
|
Loading…
Reference in a new issue