Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !8469

Make tooltips accessible using WAI-ARIA.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/realityking/aria-tips into 3.0.0-wip Jul 12, 2013
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 11

Created by: realityking

To do so we have to make to modifications: -Setting role="tooltip" on the element that is the tooltip -Setting aria-describedby on the element that the tooltip is about

The latter requires the ID of the tooltip. I've written a small function - inspired by MooTools - to add a unique ID to any element if it doesn't have one. I chose a different name than the one jQuery UI has so there's no conflict.

The setUniqueId methods lacks documentation and unit tests. I'll happily write the former if this gets a thumb up, about the latter I have to do some reading up first.

I chose to replace the tooltip class in the LESS with the role attribute since they express the same thing and they seemed like duplicate information.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/realityking/aria-tips