File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -256,17 +256,17 @@ export const helpMessageMargin = (marginLeft: number): CSSProp => css`
256
256
` ;
257
257
258
258
// label is not STANDARD (absolute position) and input has inner left content
259
- export const labelInTopStyles = ( marginLeft : number , affixWidth : number ) : CSSProp => css `
259
+ export const labelInTopStyles = ( marginLeft : number , inputWidth : number ) : CSSProp => css `
260
260
> div {
261
261
margin-left : ${ marginLeft } rem;
262
- width : ${ affixWidth } px;
262
+ max- width: ${ inputWidth } px;
263
263
}
264
264
/* We need to write the CSS code inside this CSS extension, which will only be applied to the web page when opening the Firefox browser. */
265
265
/* Firefox need a explicit position when you use position:absolute; */
266
266
@-moz-document url-prefix() {
267
267
label {
268
268
left : calc (${ marginLeft } rem);
269
- width : ${ affixWidth } px;
269
+ max- width: ${ inputWidth } px;
270
270
}
271
271
}
272
272
` ;
You can’t perform that action at this time.
0 commit comments