Skip to content

Commit 7c6bfa0

Browse files
committed
reverse no-wrap [ci visual]
1 parent d085462 commit 7c6bfa0

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

src/table.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ $block: #{$fd-namespace}-table;
125125
}
126126

127127
&__text {
128-
word-break: break-all;
129-
white-space: nowrap;
128+
word-break: break-word;;
130129
overflow: hidden;
131130
text-overflow: ellipsis;
132131

133-
&--wrap {
134-
white-space: normal;
132+
&--no-wrap {
133+
white-space: nowrap;
135134
}
136135
}
137136

stories/table/__snapshots__/table.stories.storyshot

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7393,16 +7393,16 @@ exports[`Storyshots Components/Table Primary 1`] = `
73937393

73947394

73957395
<div
7396-
class="fd-table__text"
7396+
class="fd-table__text fd-table__text--no-wrap"
73977397
style="max-width: 250px"
73987398
>
73997399

7400-
Very long Text, limited by max-width
7401-
Very long Text, limited by max-width
7402-
Very long Text, limited by max-width
7403-
Very long Text, limited by max-width
7404-
Very long Text, limited by max-width
7405-
Very long Text, limited by max-width
7400+
Very long Text Not Wrapped, limited by max-width
7401+
Very long Text Not Wrapped, limited by max-width
7402+
Very long Text Not Wrapped, limited by max-width
7403+
Very long Text Not Wrapped, limited by max-width
7404+
Very long Text Not Wrapped, limited by max-width
7405+
Very long Text Not Wrapped, limited by max-width
74067406

74077407
</div>
74087408

@@ -7456,13 +7456,14 @@ exports[`Storyshots Components/Table Primary 1`] = `
74567456

74577457

74587458
<div
7459-
class="fd-table__text fd-table__text--wrap"
7459+
class="fd-table__text"
74607460
style="max-width: 250px"
74617461
>
74627462

74637463
Very long Text Wrapped, limited by max-width
74647464
Very long Text Wrapped, limited by max-width
74657465
Very long Text Wrapped, limited by max-width
7466+
Very long Text Wrapped, limited by max-width
74667467

74677468
</div>
74687469

stories/table/table.stories.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ export const primary = () => `
8888
<tr class="fd-table__row">
8989
<td class="fd-table__cell"><a class="fd-link">[email protected]</a></td>
9090
<td class="fd-table__cell">
91-
<div class="fd-table__text" style="max-width: 250px">
92-
Very long Text, limited by max-width
93-
Very long Text, limited by max-width
94-
Very long Text, limited by max-width
95-
Very long Text, limited by max-width
96-
Very long Text, limited by max-width
97-
Very long Text, limited by max-width
91+
<div class="fd-table__text fd-table__text--no-wrap" style="max-width: 250px">
92+
Very long Text Not Wrapped, limited by max-width
93+
Very long Text Not Wrapped, limited by max-width
94+
Very long Text Not Wrapped, limited by max-width
95+
Very long Text Not Wrapped, limited by max-width
96+
Very long Text Not Wrapped, limited by max-width
97+
Very long Text Not Wrapped, limited by max-width
9898
</div>
9999
</td>
100100
<td class="fd-table__cell">Middle Name</td>
@@ -104,7 +104,8 @@ export const primary = () => `
104104
<tr class="fd-table__row">
105105
<td class="fd-table__cell"><a class="fd-link">[email protected]</a></td>
106106
<td class="fd-table__cell">
107-
<div class="fd-table__text fd-table__text--wrap" style="max-width: 250px">
107+
<div class="fd-table__text" style="max-width: 250px">
108+
Very long Text Wrapped, limited by max-width
108109
Very long Text Wrapped, limited by max-width
109110
Very long Text Wrapped, limited by max-width
110111
Very long Text Wrapped, limited by max-width

0 commit comments

Comments
 (0)