We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c4400 commit a6ccfe4Copy full SHA for a6ccfe4
src/components/experimental/Field/FakeInput.ts
@@ -50,5 +50,10 @@ export const FakeInput = styled.div<{ $isVisuallyFocused: boolean }>`
50
border-color: ${getSemanticValue('negative')};
51
}
52
53
+ [data-disabled] & {
54
+ opacity: 0.38;
55
+ pointer-events: none;
56
+ }
57
+
58
${props => props.$isVisuallyFocused && focusStyles}
59
`;
src/components/experimental/Field/Wrapper.ts
@@ -1,15 +1,6 @@
1
import styled from 'styled-components';
2
import { get } from '../../../utils/experimental/themeGet';
3
-import { FakeInput } from './FakeInput';
4
5
export const Wrapper = styled.div`
6
padding: ${get('space.2')} 0;
7
-
8
- &:has(input[data-disabled]) {
9
- opacity: 0.38;
10
11
- ${FakeInput} {
12
- pointer-events: none;
13
- }
14
15
0 commit comments