Skip to content

Card editor help button has an incorrect accessibility role #51

Description

@vvallalta-code

Summary

The Card editor help button is exposed with role="tooltip". The interactive element is a button, while the tooltip is the content associated with that button. Assigning the tooltip role to the button gives assistive technology incorrect control semantics.

Location

  • Package: @paperbits/core
  • Template: src/card/ko/cardEditor.html
  • Current pattern: <button class="btn btn-info" role="tooltip" ...>

Expected behavior

The help trigger retains native button semantics. Tooltip semantics, if needed, are applied to the tooltip content rather than the trigger.

Acceptance criteria

  • Remove the incorrect role="tooltip" from the Card help button.
  • Preserve keyboard activation and visible tooltip behavior.
  • Confirm the trigger is announced as a button by a screen reader.
  • Add or update an accessibility regression test where practical.

Tracking: Azure DevOps 26070428

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions