Skip to content

Commit 8681f44

Browse files
committed
adjust uui-table for new uui-box slots
1 parent 8e8730a commit 8681f44

File tree

1 file changed

+5
-35
lines changed

1 file changed

+5
-35
lines changed

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

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ SelectableRows.parameters = {
174174

175175
export const OverflowDetection: Story = () =>
176176
html`
177-
<h3>
177+
<h5>
178178
Overflowing text is indicated by three dots. <br />
179179
Hover over wrapped cells to see a title with full text
180-
</h3>
180+
</h5>
181181
<div style="width: 30%;">
182182
<uui-table>
183183
<uui-table-column
@@ -205,7 +205,6 @@ OverflowDetection.parameters = {
205205
docs: {
206206
source: {
207207
code: `
208-
<uui-box>
209208
<uui-table aria-label="Example table" aria-describedby="#some-element-id">
210209
211210
<uui-table-head>
@@ -223,15 +222,14 @@ OverflowDetection.parameters = {
223222
<uui-table-cell clip-text>Cell 4</uui-table-cell>
224223
</uui-table-row>
225224
226-
</uui-table>
227-
</uui-box>`,
225+
</uui-table>`,
228226
},
229227
},
230228
};
231229

232230
export const InABox: Story = () =>
233231
html`
234-
<uui-box>
232+
<uui-box style="--uui-box-default-padding: 0;">
235233
<uui-table>
236234
<uui-table-head>
237235
${ArrayOfUmbracoWords(7).map(
@@ -256,7 +254,7 @@ InABox.parameters = {
256254
docs: {
257255
source: {
258256
code: `
259-
<uui-box>
257+
<uui-box style="--uui-box-default-padding: 0;">
260258
<uui-table>
261259
...
262260
</uui-table>
@@ -265,34 +263,6 @@ InABox.parameters = {
265263
},
266264
};
267265

268-
SelectableRows.parameters = {
269-
docs: {
270-
source: {
271-
code: `
272-
<uui-box>
273-
<uui-table aria-label="Example table" aria-describedby="#some-element-id">
274-
275-
<uui-table-head>
276-
<uui-table-head-cell>Title 1</uui-table-head-cell>
277-
<uui-table-head-cell>Title 2</uui-table-head-cell>
278-
</uui-table-head>
279-
280-
<uui-table-row selectable>
281-
<uui-table-cell>Cell 1</uui-table-cell>
282-
<uui-table-cell>Cell 2</uui-table-cell>
283-
</uui-table-row>
284-
285-
<uui-table-row selectable>
286-
<uui-table-cell>Cell 3</uui-table-cell>
287-
<uui-table-cell>Cell 4</uui-table-cell>
288-
</uui-table-row>
289-
290-
</uui-table>
291-
</uui-box>`,
292-
},
293-
},
294-
};
295-
296266
export const Advanced: Story = () =>
297267
html`<uui-table-with-selection-example></uui-table-with-selection-example>`;
298268

0 commit comments

Comments
 (0)