Skip to content

Commit e8edef9

Browse files
committed
fix: remove tabIndex={-1} from clear button to make it keyboard accessible
The clear button had tabIndex={-1} which made it unreachable via keyboard navigation, violating WCAG 2.1 success criteria 2.1.1 and 2.1.3. This change makes the clear button focusable so keyboard users can access and operate this functionality. Fixes ant-design/ant-design#57378
1 parent 5d1a32d commit e8edef9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/BaseInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ const BaseInput = React.forwardRef<HolderRef, BaseInputProps>((props, ref) => {
8888
clearIcon = (
8989
<button
9090
type="button"
91-
tabIndex={-1}
9291
onClick={(event) => {
9392
handleReset?.(event);
9493
onClear?.();

0 commit comments

Comments
 (0)