Skip to content

Commit 9bb7a16

Browse files
committed
always append uui-root and uui-text to storybook body
1 parent 9c3ee4a commit 9bb7a16

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.storybook/preview-body.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<script>
2+
document.body.classList.add('uui-root');
3+
document.body.classList.add('uui-text');
4+
</script>

packages/uui-css/lib/guidelines.story.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
};
66

77
export const Layout = () => html`
8-
<article class="uui-root uui-text" style="max-width:580px;">
8+
<article style="max-width:580px;">
99
<div
1010
style="display:block; border-bottom: 1px solid var(--uui-color-cocoa-black); padding-top: var(--uui-size-layout-5); margin-bottom:var(--uui-size-layout-3); padding-bottom:var(--uui-size-layout-1);">
1111
<h1>Layout Style Guide</h1>
@@ -74,7 +74,7 @@ export const Layout = () => html`
7474
`;
7575

7676
export const Typography = () => html`
77-
<article class="uui-root uui-text" style="max-width:580px;">
77+
<article style="max-width:580px;">
7878
<div
7979
style="display:block; border-bottom: 1px solid var(--uui-color-cocoa-black); padding-top: var(--uui-size-layout-5); margin-bottom:var(--uui-size-layout-3); padding-bottom:var(--uui-size-layout-1);">
8080
<h1>Typography Style Guide</h1>

packages/uui-css/lib/uui-css.story.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ export default {
1616
},
1717
};
1818

19-
export const Overview: Story = () => html` <article
20-
class="uui-root uui-text"
21-
style="max-width:580px;">
19+
export const Overview: Story = () => html` <article style="max-width:580px;">
2220
<h2>CSS</h2>
2321
<p>
2422
UUI-CSS package contains css files which can be included in your project or

0 commit comments

Comments
 (0)