File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
@react-spectrum/picker/stories Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ governing permissions and limitations under the License.
110
110
.spectrum-Menu-itemLabel {
111
111
grid-area : text;
112
112
line-height : var (--spectrum-global-font-line-height-small );
113
- word-break : break-all ;
113
+ word-break : break-word ;
114
114
}
115
115
116
116
.spectrum-Menu-itemLabel--wrapping {
Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ storiesOf('Picker', module)
57
57
'default' ,
58
58
( ) => (
59
59
< 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 >
63
63
</ Picker >
64
64
)
65
65
)
@@ -305,6 +305,7 @@ storiesOf('Picker', module)
305
305
< Item key = "underscores" > your_text_here_long_long_long_long</ Item >
306
306
< Item key = "hyphens" > your-text-here-long-long-long-long</ Item >
307
307
< Item key = "singleWord" > supercalifragilisticexpialidocious</ Item >
308
+ < Item key = "always" > This item is very long and word wraps poorly</ Item >
308
309
</ Picker >
309
310
)
310
311
)
Original file line number Diff line number Diff line change 122
122
123
123
text-align : left;
124
124
word-spacing : normal;
125
- word-break : break-all ;
125
+ word-break : break-word ;
126
126
line-height : 1.5 ;
127
127
128
128
-moz-tab-size : 4 ;
You can’t perform that action at this time.
0 commit comments