close
Skip to content

Tabindex removed from honeypot added by Antispam Bee #56

Description

@Zodiac1978

Describe the bug
Antispam Bee is adding a honeypot textarea to the comment form with a tabindex="-1", but the JS from WP Accessibility is removing it.

To Reproduce
Steps to reproduce the behavior:

  1. Install Antispam Bee
  2. Install WP Accessibility
  3. Enable the feature to remove tabindex from focusable elements (if not enabled by default)
  4. Visit a post with open comments
  5. Tab through the page and see that now you can focus the hidden honeypot.

Expected behavior
The tabindex shouldn't be removed.

Maybe you could add a check if the element has aria-hidden="true"?

Additional context
pluginkollektiv/antispam-bee#696

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions