Skip to content

Commit f4c877c

Browse files
author
Bogdan Plieshka
committed
MAGETWO-35857: Words are broken for fields with long labels all over the Backend
- Changed all word-break: break-all properties to word-wrap: break-word
1 parent c33c808 commit f4c877c

File tree

10 files changed

+13
-18
lines changed

10 files changed

+13
-18
lines changed

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/_menu.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
text-decoration: none;
167167
text-transform: uppercase;
168168
transition: background-color .1s linear;
169-
word-break: break-all;
169+
word-wrap: break-word;
170170
z-index: @menu__z-index;
171171
&:focus {
172172
box-shadow: none;

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/main/_page-nav.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
margin: 0 0 -1px;
198198
padding: @admin__page-nav-link__padding;
199199
transition: @admin__page-nav-transition;
200-
word-break: break-all;
200+
word-wrap: break-word;
201201

202202
&._changed {
203203
.admin__page-nav-item-message {

app/design/adminhtml/Magento/backend/web/css/source/forms/_fields.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
line-height: 3.2rem;
7070
padding: 0;
7171
white-space: nowrap;
72-
word-break: break-all;
72+
word-wrap: break-word;
7373

7474
&:before {
7575
content: '.';

app/design/adminhtml/Magento/backend/web/css/styles-old.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@
10641064
line-height: 3.2rem;
10651065
padding: 0 30px 0 0;
10661066
white-space: nowrap;
1067-
word-break: break-all;
1067+
word-wrap: break-word;
10681068
&:before {
10691069
content: '.';
10701070
margin-left: -7px;

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ body.catalog-product-compare-index {
618618
.attribute.label {
619619
display: block;
620620
width: 100%;
621-
word-break: break-all;
621+
word-wrap: break-word;
622622
}
623623
}
624624
&.attribute {

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/module/_listings.less

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@
4646
&:extend(.abs-product-link all);
4747
display: block;
4848
margin: @indent__xs 0;
49-
word-break: break-all;
50-
// Non standard for webkit
51-
word-break: break-word;
49+
word-wrap: break-word;
5250
-webkit-hyphens: auto;
5351
-moz-hyphens: auto;
5452
-ms-hyphens: auto;

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
}
213213
}
214214
.product.attibute.sku {
215-
word-break: break-all;
215+
word-wrap: break-word;
216216
}
217217
.product {
218218
&-add-form {
@@ -726,7 +726,7 @@ body.catalog-product-compare-index {
726726
.attribute.label {
727727
display: block;
728728
width: 100%;
729-
word-break: break-all;
729+
word-wrap: break-word;
730730
}
731731
}
732732
&.attribute {

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/module/_listings.less

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
&:extend(.abs-product-link all);
4646
display: block;
4747
margin: @indent__xs 0;
48-
word-break: break-all;
49-
// Non standard for webkit
50-
word-break: break-word;
48+
word-wrap: break-word;
5149
-webkit-hyphens: auto;
5250
-moz-hyphens: auto;
5351
-ms-hyphens: auto;

lib/web/css/source/lib/_navigation.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
.css(line-height, @_nav-level0-item-line-height);
8686
.css(padding, @_nav-level0-item-padding);
8787
.css(text-transform, @_nav-level0-text-transform);
88-
word-break: break-all;
88+
word-wrap: break-word;
8989
}
9090
&.active {
9191
.all-category {
@@ -126,7 +126,7 @@
126126
}
127127
.submenu {
128128
> li {
129-
word-break: break-all;
129+
word-wrap: break-word;
130130
}
131131
&:not(:first-child) {
132132
.css(background, @_submenu-background-color);

lib/web/css/source/lib/_typography.less

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
}
5252

5353
.wrap-words() {
54-
word-break: break-all;
55-
word-break: break-word;
54+
word-wrap: break-word;
5655
.hyphens();
5756
}
5857

@@ -379,7 +378,7 @@
379378
.css(margin, 0 0 @indent__s);
380379
.css(line-height, @line-height__base);
381380
.css(padding, @indent__s);
382-
word-break: break-all;
381+
word-wrap: break-word;
383382
word-wrap: break-word;
384383
code {
385384
padding: 0;

0 commit comments

Comments
 (0)