Skip to content

Commit fd9ec63

Browse files
authored
Merge branch 'main' into brooke/disabled-radio
2 parents 1d00dcb + 0efcd4e commit fd9ec63

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.changeset/gentle-shoes-join.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/text-input': patch
3+
---
4+
5+
Updates valid state icon in dark mode to match Figma spec

packages/text-input/src/TextInput/TextInput.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
44
import { cx } from '@leafygreen-ui/emotion';
55
import { useIdAllocator, useValidation } from '@leafygreen-ui/hooks';
66
import CheckmarkIcon from '@leafygreen-ui/icon/dist/Checkmark';
7-
import CheckmarkWithCircleIcon from '@leafygreen-ui/icon/dist/CheckmarkWithCircle';
87
import WarningIcon from '@leafygreen-ui/icon/dist/Warning';
98
import { useDarkMode } from '@leafygreen-ui/leafygreen-provider';
109
import { consoleOnce } from '@leafygreen-ui/lib';
@@ -153,10 +152,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
153152
);
154153
}
155154

156-
const RenderedCheckmarkIcon = darkMode
157-
? CheckmarkWithCircleIcon
158-
: CheckmarkIcon;
159-
160155
const shouldRenderOptionalText =
161156
state === State.None && !disabled && optional;
162157

@@ -229,7 +224,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
229224
>
230225
{/* Render State Icon or Optional text*/}
231226
{state === State.Valid && (
232-
<RenderedCheckmarkIcon
227+
<CheckmarkIcon
233228
role="presentation"
234229
className={stateIndicatorStyles.valid[theme]}
235230
/>

0 commit comments

Comments
 (0)