Additional props for keyboard helpers (input components with "hidden accessible" elements) #1852
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: New Feature
Issue contains a new feature or new component request
Milestone
I'm submitting a ... (check one with "x")
Current behavior
I cannot add extra props for input components that uses a hidden input field (for accessible - "p-hidden-component").
This issue applies to all input components using hidden accessibility: dropdown, multiselect, checkbox, select etc.
Expected behavior
Possibility to add props to the "hidden accessible" input element.
Minimal reproduction of the problem with instructions
![before](https://user-images.githubusercontent.com/13980568/110217301-8c1eb300-7eb3-11eb-916a-e27df3602534.png)
Why do I need this? I use @q42/floating-focus-a11y for better focusing focusable elements. When we focus on an element that uses "hidden accessibility", the hidden element will be highlighted.
In this case, the documentation suggests adding the attribute "focus-target" to the hidden element and indicating the identifier of the element that should be selected.
The feature can be solved by adding prop "keyboardHelperProps" for pass props or "renderKeyboardHelper".
Suggest:
Please tell us about your environment:
Windows, npm
React version:
17
PrimeReact version:
6.0.2
Browser:
all
Language:
all
The text was updated successfully, but these errors were encountered: