IsometriksSpamBundle
IsometriksSpamBundle copied to clipboard
Add autocomplete, tabindex, and aria attributes to the honeypot field
This merge provides to accessibility/UX improvements:
- Add attribute tabindex="-1" to the honeypot field so that users navigating with the tab key won't stop on the field.
A negative value (usually tabindex="-1") means that the element is not reachable via sequential keyboard navigation, but could be focused with Javascript or visually by clicking with the mouse.
- Add attribute autocomplete="off" to the honeypot form to prevent browsers from auto-filling the field.
As website author, you might prefer that the browser not remember the values for such fields, even if the browser's autocomplete feature is enabled.
- Set the ARIA labels necessary for assistive technologies to recognize the field and to ignore it.
@maelanleborgne do you have merge permissions? You can feel free to merge these if you think it's okay, I don't really have time to maintain this.
@maelanleborgne do you have merge permissions? You can feel free to merge these if you think it's okay, I don't really have time to maintain this.
Yes I will merge these once the CI is running.