-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(button): provides context for AT users when used as reference element for collapsible content #7658
fix(button): provides context for AT users when used as reference element for collapsible content #7658
Changes from all commits
e4ad8fc
00c5137
f9ba23f
2714056
0d13e98
e291d46
192571f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { createObserver } from "./observers"; | ||
|
||
type AttributeObject = { [k: string]: any }; | ||
type AllowedGlobalAttribute = "lang" | "role"; | ||
const allowedGlobalAttributes = ["lang", "role"]; | ||
type AllowedGlobalAttribute = "lang" | "role" | "aria-expanded"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Popover also sets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO,
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree that there isn't widespread coverage for For instance, in the original use case where a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In VoiceOver, context is provided when user check/uncheck the checkbox before closing the popup. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Windows OS + JAWS updates this week mitigated the issue from last week. 💪🏻 |
||
const allowedGlobalAttributes = ["lang", "role", "aria-expanded"]; | ||
|
||
const elementToComponentAndObserverOptionsMap = new Map< | ||
HTMLElement, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you test if the
accessible
helper picks this up (also checking that it fails when the ARIA attribute isn't set on the internal button)? If so, I'd suggest using that to simplify this test.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessible
helper is unable to pick this one up.