Skip to content

Commit

Permalink
feat(input): clear button aria label should be mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
andresz1 committed Jul 18, 2023
1 parent 32d5928 commit b548f79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/input/src/InputClearButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { ComponentPropsWithoutRef, forwardRef, MouseEventHandler } from 'react'

import { useInputGroup } from './InputGroupContext'

export type InputClearButtonProps = ComponentPropsWithoutRef<'button'>
export interface InputClearButtonProps extends ComponentPropsWithoutRef<'button'> {
'aria-label': string
}

export const InputClearButton = forwardRef<HTMLButtonElement, InputClearButtonProps>(
({ className, tabIndex = -1, onClick, ...others }, ref) => {
Expand Down

0 comments on commit b548f79

Please sign in to comment.