Skip to content

Commit 1ca4f8c

Browse files
authored
fix: remove unreliable :has() selector in InnerWrapper (#553)
1 parent b8af9da commit 1ca4f8c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import styled from 'styled-components';
2-
import { Label } from './Label';
32

43
export const InnerWrapper = styled.div<{ hideLabel?: boolean }>`
54
position: relative;
@@ -13,10 +12,4 @@ export const InnerWrapper = styled.div<{ hideLabel?: boolean }>`
1312
`
1413
padding-top: var(--wave-exp-typescale-label-2-line-height);
1514
`}
16-
17-
/* For browsers that support :has(), we use this as a fallback */
18-
/* stylelint-disable selector-type-case, selector-type-no-unknown */
19-
&:has(${Label}:not(.visually-hidden)) {
20-
padding-top: var(--wave-exp-typescale-label-2-line-height);
21-
}
2215
`;

0 commit comments

Comments
 (0)