Skip to content

Commit 645c663

Browse files
chore(Storybook): Hide controls for className and style attributes (#2288)
Co-authored-by: Aram <[email protected]>
1 parent 15a830b commit 645c663

File tree

9 files changed

+7
-33
lines changed

9 files changed

+7
-33
lines changed

storybook/config/preview.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export const argTypes = {
1818
children: {
1919
table: { disable: true },
2020
},
21+
className: {
22+
table: { disable: true },
23+
},
24+
style: {
25+
table: { disable: true },
26+
},
2127
}
2228

2329
// Wrap in Page, set language to Dutch for Canvas and Stories

storybook/src/components/Card/Card.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ const meta = {
1919
args: {
2020
style: { maxWidth: '24rem' },
2121
},
22-
argTypes: {
23-
style: {
24-
table: { disable: true },
25-
},
26-
},
2722
} satisfies Meta<typeof Card>
2823

2924
export default meta

storybook/src/components/Column/Column.stories.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ const meta = {
3838
},
3939
options: [undefined, ...crossAlignOptionsForColumn],
4040
},
41-
className: {
42-
table: { disable: true },
43-
},
4441
gap: {
4542
control: {
4643
labels: { undefined: 'medium' },

storybook/src/components/Grid/Grid.stories.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ const meta = {
1616
args: {
1717
paddingVertical: 'x-large',
1818
},
19-
argTypes: {
20-
className: {
21-
table: { disable: true },
22-
},
23-
...gridGapAndPaddingArgTypes,
24-
},
19+
argTypes: gridGapAndPaddingArgTypes,
2520
parameters: {
2621
layout: 'fullscreen',
2722
},

storybook/src/components/OrderedList/OrderedList.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ export const WithoutMarkers: Story = {
144144
markers: false,
145145
style: { maxInlineSize: '32rem' },
146146
},
147-
argTypes: {
148-
style: {
149-
table: { disable: true },
150-
},
151-
},
152147
}
153148

154149
export const InverseColor: Story = {

storybook/src/components/Page/Page.stories.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const meta = {
1616
lang: 'nl', // Mimic what we do in preview.tsx, where the decorator doesn’t render a Page for stories of Page.
1717
},
1818
argTypes: {
19-
className: {
20-
table: { disable: true },
21-
},
2219
lang: {
2320
table: { disable: true }, // It’s best practice to set this attribute on the `html` element, so let’s not highlight it here.
2421
},

storybook/src/components/Row/Row.stories.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ const meta = {
3939
},
4040
options: [undefined, ...crossAlignOptions],
4141
},
42-
className: {
43-
table: { disable: true },
44-
},
4542
gap: {
4643
control: {
4744
labels: { undefined: 'medium' },

storybook/src/components/SkipLink/SkipLink.stories.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ const meta = {
2323
href: {
2424
description: 'The url for the link. References an anchor on the current page.',
2525
},
26-
style: {
27-
table: { disable: true },
28-
},
2926
},
3027
} satisfies Meta<typeof SkipLink>
3128

storybook/src/components/UnorderedList/UnorderedList.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ export const WithoutMarkers: Story = {
106106
markers: false,
107107
style: { maxInlineSize: '32rem' },
108108
},
109-
argTypes: {
110-
style: {
111-
table: { disable: true },
112-
},
113-
},
114109
}
115110

116111
export const InverseColor: Story = {

0 commit comments

Comments
 (0)