Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ariaPublic

Change tooltip to name prohibited#2670

Open
scottaohara wants to merge 2 commits intomainfrom
tooltip-naming-change
Open

Change tooltip to name prohibited#2670
scottaohara wants to merge 2 commits intomainfrom
tooltip-naming-change

Conversation

@scottaohara
Copy link
Member

@scottaoharascottaohara commentedOct 30, 2025
edited by pr-previewbot
Loading

this PR attempts toclose#2668

As mentioned in the referenced issue, authors naming a tooltip either doesn't consistently work with current AT, or it can introduce unintended author errors where if a tooltip is named - and associated with an element viaaria-describedby, only the name is exposed and not the longer description that a user can see.

The reason this changed to name prohibited, is because by removing the 'name from author', only 'name from contents' remained.... and there is no other role in the ARIA spec that allows name from content by itself. All other similar roles are identified as name prohibited.

So, while this PR initially only changes the "name from" section from listing "author and contents" to "prohibited" - i assume a note will need to be added to further describe this change and the rational behind it.

it might be worth also resolving#2507 in this PR. but before I do that, I will wait for discussion on this initial PR.

Test, Documentation and Implementation tracking

Once this PR has been reviewed and has consensus from the working group, tests should be written and issues should be opened on browsers. Add N/A and check when not applicable.

  • "author MUST" tests:
  • "user agent MUST" tests:
  • Browser implementations (link to issue or commit):
    • WebKit:
    • Gecko:
    • Blink:
  • ACT review?
  • Does this need AT implementations?
  • Related APG Issue/PR:
  • MDN Issue/PR:

Preview |Diff

this PR attempts toclose#2668As mentioned in the referenced issue, authors naming a tooltip either doesn't consistently work with current AT, or it can introduce unintended author errors where if a tooltip is named - and associated with an element via `aria-describedby`, only the name is exposed and not the longer description that a user can see.The reason this changed to name prohibited, is because by removing the 'name from author', only 'name from contents' remained.... and there is no other role in the ARIA spec that allows name from content by itself. All other similar roles are identified as name prohibited.So, while this PR initially only changes the "name from" section from listing "author and contents" to "prohibited"  - i assume a note will need to be added to further describe this change and the rational behind it.it might be worth also resolving#2507 in this PR.  but before I do that, I will wait for discussion on this initial PR.
@netlify
Copy link

netlifybot commentedOct 30, 2025
edited
Loading

Deploy Preview forwai-aria ready!

NameLink
🔨 Latest commit811ce9d
🔍 Latest deploy loghttps://app.netlify.com/projects/wai-aria/deploys/6931fbc61f241000081e8c51
😎 Deploy Previewhttps://deploy-preview-2670--wai-aria.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify project configuration.

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR updates the tooltip role definition to prohibit accessible naming, changing the "Name From" characteristic from allowing "contents" and "author" to "prohibited".

  • Changed the tooltip role's "Name From" value from a list containing "contents" and "author" to "prohibited"

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

Copy link
Member

@adampageadampage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ship it. 🚀

Added prohibited states and properties section to the table.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@adampageadampageadampage approved these changes

@jnurthenjnurthenAwaiting requested review from jnurthen

@smhigleysmhigleyAwaiting requested review from smhigley

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Should tooltips allow name from author - or really, naming?

3 participants

@scottaohara@adampage@smhigley

Comments


[8]ページ先頭

©2009-2026 Movatter.jp