Skip to content

Commit b3c0a3f

Browse files
fixed issue prices aren't readable when using custom price symbol
1 parent 79d8e9a commit b3c0a3f

File tree

1 file changed

+38
-7
lines changed
  • app/design/adminhtml/Magento/backend/Magento_ConfigurableProduct/web/css/source/module/components

1 file changed

+38
-7
lines changed

app/design/adminhtml/Magento/backend/Magento_ConfigurableProduct/web/css/source/module/components/_currency-addon.less

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,30 @@
1919

2020
.currency-addon {
2121
position: relative;
22+
border: 1px solid #adadad;
23+
display: -webkit-inline-flex;
24+
display: -ms-inline-flexbox;
25+
-webkit-flex-direction: row;
26+
-ms-flex-direction: row;
27+
flex-direction: row;
28+
display: inline-flex;
29+
flex-flow: row nowrap;
30+
width: 100%;
31+
position: relative;
2232

2333
.admin__control-text {
24-
border-width: 1px 1px 1px 0;
25-
padding-left: @currency-addon-symbol__width + .2;
34+
appearence: none;
35+
-webkit-flex-grow: 1;
36+
flex-grow: 1;
37+
-ms-flex-order: 1;
38+
-webkit-order: 1;
39+
order: 1;
40+
-webkit-flex-shrink: 1;
41+
flex-shrink: 1;
42+
background-color: transparent;
43+
border-color: transparent;
44+
box-shadow: none;
45+
vertical-align: top;
2646

2747
&:focus {
2848
+ .currency-symbol {
@@ -31,18 +51,29 @@
3151
}
3252
}
3353

54+
label.error {
55+
position: absolute;
56+
left: 0;
57+
top: 33px;
58+
}
59+
3460
.currency-symbol {
3561
border: solid @currency-addon-symbol__border-color;
36-
border-width: 0 0 0 1px;
62+
border-width: 0;
3763
box-sizing: border-box;
3864
color: @currency-addon-symbol__color;
3965
height: @currency-addon-symbol__height;
40-
left: 0;
4166
padding: 7px 0 0 @indent__xs;
42-
position: absolute;
43-
top: 0;
67+
position: static;
4468
transition: @smooth__border-color;
45-
width: @currency-addon-symbol__width;
69+
-webkit-flex-basis: auto;
70+
flex-basis: auto;
71+
-webkit-flex-grow: 0;
72+
flex-grow: 0;
73+
-webkit-flex-shrink: 0;
74+
flex-shrink: 0;
75+
z-index: 1;
76+
order: 0;
4677
}
4778

4879
._error & {

0 commit comments

Comments
 (0)