Skip to content

Commit 5db2fb7

Browse files
author
Kubit
committed
Improve mixins for al browsers
1 parent 98c9b9b commit 5db2fb7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ export * from './types';
1414
export * from './components';
1515
export * from './constants';
1616
export * from './utils';
17+
export * from './styles';
1718

1819
export { themesObject } from './designSystem/themesObject';

src/styles/mixins/input.mixin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,14 @@ export const innerRightContentPosition = (): CSSProp => css`
250250

251251
// help message styles when label is not STANDARD and input has inner left content
252252
export const helpMessageMargin = (marginLeft: number): CSSProp => css`
253-
div:has(> span) {
253+
> div:has(> span) {
254254
margin-left: ${pxToRem(marginLeft)}rem;
255255
}
256256
`;
257257

258258
// label is not STANDARD (absolute position) and input has inner left content
259259
export const labelInTopStyles = (marginLeft: number): CSSProp => css`
260-
div:has(> label) {
260+
> div {
261261
margin-left: ${marginLeft}rem;
262262
width: calc(100% - ${marginLeft}rem);
263263
}

0 commit comments

Comments
 (0)