Skip to content

Commit 46f1105

Browse files
author
Kubit
committed
Fix mixin to Input component styles
1 parent c501fd9 commit 46f1105

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/styles/mixins/input.mixin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,17 @@ export const helpMessageMargin = (marginLeft: number): CSSProp => css`
256256
`;
257257

258258
// 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`
260260
> div {
261261
margin-left: ${marginLeft}rem;
262-
width: ${affixWidth}px;
262+
max-width: ${inputWidth}px;
263263
}
264264
/* 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. */
265265
/* Firefox need a explicit position when you use position:absolute; */
266266
@-moz-document url-prefix() {
267267
label {
268268
left: calc(${marginLeft}rem);
269-
width: ${affixWidth}px;
269+
max-width: ${inputWidth}px;
270270
}
271271
}
272272
`;

0 commit comments

Comments
 (0)