Skip to content

Commit

Permalink
pkp/pkp-lib#9527 Apply rtl to storybook root to prevent breaking layo…
Browse files Browse the repository at this point in the history
…ut in some cases
  • Loading branch information
jardakotesovec committed Dec 18, 2023
1 parent 2547397 commit e7add6f
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 394 deletions.
9 changes: 5 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,19 @@ const preview = {
decorators: [
withThemeByDataAttribute({
themes: {
LTR: 'LTR',
LTR: 'ltr',
RTL: 'RTL',
},
defaultTheme: 'LTR',
attributeName: 'dir',
parentSelector: '#storybook-root',
}),
(story) => ({
/*(story) => ({
components: {story},
template: '<div style="padding: 10px;"><story /></div>',
}),
/** Globally Available Dialog */
(story) => ({
/*(story) => ({
setup() {
const dialogStore = useDialogStore();
return {dialogStore};
Expand All @@ -122,7 +123,7 @@ const preview = {
></PkpDialog>
<story />
</div>`,
}),
}),*/
],
parameters: {
actions: {argTypesRegex: '^on[A-Z].*'},
Expand Down
Loading

0 comments on commit e7add6f

Please sign in to comment.