input icon indicating copy to clipboard operation
input copied to clipboard

Clear button is not accessible

Open vtx-anton-chashchin opened this issue 1 year ago • 0 comments

Hello, we discovered that clear button which appears when allowClear property used is not accessible due to 2 reasons:

  • button wrapper uses tabindex=-1 which makes it inaccessible through the keyboard using tab/shift+tab
  • button wrapper uses span tag which prevent to click it via space or shift when it is on focus

I opened PR to fix this and added tests to check behavior, could you check it please

https://github.com/react-component/input/pull/63

vtx-anton-chashchin avatar Jan 15 '24 12:01 vtx-anton-chashchin