You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, actionButtons are not following modern best practices for a11y (accessibility), especially WAI-ARIA out of the box and do not allow to specify the title or aria attributes manually.
Describe the solution you'd like
Add title the option explicitly and allow aria-* attributes to be passed on to the button element.
<Dropzone
actionButtons={{
uploadButton: {
ariaLabel: "Click here to upload the selected files."
title="Click here to upload the selected files."
}
}}/>
Describe alternatives you've considered
Providing good defaults first and add the customization later - however, this is much more effort and defaults should be chosen carefully. So I think customization first and defaults later is better in this case.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently, actionButtons are not following modern best practices for a11y (accessibility), especially WAI-ARIA out of the box and do not allow to specify the title or aria attributes manually.
Describe the solution you'd like
Add
title
the option explicitly and allowaria-*
attributes to be passed on to the button element.Describe alternatives you've considered
Providing good defaults first and add the customization later - however, this is much more effort and defaults should be chosen carefully. So I think customization first and defaults later is better in this case.
The text was updated successfully, but these errors were encountered: