Skip to content

Commit 19dcaf6

Browse files
committed
fix: focus state * 3
1 parent 1184fa8 commit 19dcaf6

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/components/fields/Select/Select.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ import { mergeProps, useCombinedRefs } from '../../../utils/react/index';
4444
import { useFocus } from '../../../utils/react/interactions';
4545
import { getOverlayTransitionCSS } from '../../../utils/transitions';
4646
import {
47-
DANGER_CLEAR_STYLES,
48-
DANGER_LINK_STYLES,
49-
DANGER_NEUTRAL_STYLES,
50-
DANGER_OUTLINE_STYLES,
51-
DANGER_PRIMARY_STYLES,
52-
DANGER_SECONDARY_STYLES,
5347
DEFAULT_BUTTON_STYLES,
5448
DEFAULT_CLEAR_STYLES,
5549
DEFAULT_LINK_STYLES,
@@ -63,12 +57,6 @@ import {
6357
SPECIAL_OUTLINE_STYLES,
6458
SPECIAL_PRIMARY_STYLES,
6559
SPECIAL_SECONDARY_STYLES,
66-
SUCCESS_CLEAR_STYLES,
67-
SUCCESS_LINK_STYLES,
68-
SUCCESS_NEUTRAL_STYLES,
69-
SUCCESS_OUTLINE_STYLES,
70-
SUCCESS_PRIMARY_STYLES,
71-
SUCCESS_SECONDARY_STYLES,
7260
} from '../../actions/index';
7361
import { useFieldProps, useFormProps, wrapWithField } from '../../form';
7462
import { OverlayWrapper } from '../../overlays/OverlayWrapper';
@@ -148,7 +136,9 @@ type VariantType =
148136
| 'special.clear'
149137
| 'special.link';
150138

151-
function WithValidationState(styles: Styles & { border?: Styles['border'] }) {
139+
function WithValidationState(
140+
styles: Styles & { border?: Record<string, string> },
141+
) {
152142
return {
153143
...styles,
154144
border: {

0 commit comments

Comments
 (0)