Skip to content

Commit 2c9bd9e

Browse files
authored
Replacing menu "word-break: break-all" with "break-word" (#2173)
1 parent 5b17607 commit 2c9bd9e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/@adobe/spectrum-css-temp/components/menu/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ governing permissions and limitations under the License.
110110
.spectrum-Menu-itemLabel {
111111
grid-area: text;
112112
line-height: var(--spectrum-global-font-line-height-small);
113-
word-break: break-all;
113+
word-break: break-word;
114114
}
115115

116116
.spectrum-Menu-itemLabel--wrapping {

packages/@react-spectrum/picker/stories/Picker.stories.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ storiesOf('Picker', module)
5757
'default',
5858
() => (
5959
<Picker label="Test" onSelectionChange={action('selectionChange')}>
60-
<Item key="One">One</Item>
61-
<Item key="Two">Two</Item>
62-
<Item key="Three">Three</Item>
60+
<Item key="rarely">Short</Item>
61+
<Item key="sometimes">Normal</Item>
62+
<Item key="always">This item is very long and word wraps poorly</Item>
6363
</Picker>
6464
)
6565
)
@@ -305,6 +305,7 @@ storiesOf('Picker', module)
305305
<Item key="underscores">your_text_here_long_long_long_long</Item>
306306
<Item key="hyphens">your-text-here-long-long-long-long</Item>
307307
<Item key="singleWord">supercalifragilisticexpialidocious</Item>
308+
<Item key="always">This item is very long and word wraps poorly</Item>
308309
</Picker>
309310
)
310311
)

packages/dev/docs/src/syntax-highlight.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
text-align: left;
124124
word-spacing: normal;
125-
word-break: break-all;
125+
word-break: break-word;
126126
line-height: 1.5;
127127

128128
-moz-tab-size: 4;

0 commit comments

Comments
 (0)