-
Notifications
You must be signed in to change notification settings - Fork 26
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
Adds proposed popover and related attributes #446
Conversation
See https://open-ui.org/components/popup.research.explainer and https://github.com/w3c/html-aam/wiki/HTML-Popover-Attribute-A11y-Proposal-(manual-and-auto) Adds the following proposed attributes: - `defaultopen` - `popover` - `popoverhidetarget` - `popovershowtarget` - `popovertoggletarget`
I failed to remember this was not being included in v1 of `popover`, so taking this out of the PR.
The `popovertoggletarget`, `popovershowtarget` and `popoverhidetarget` attributes will initially map to `aria-expanded`. This has already been implemented in Chromium browsers. HTML AAM PR to add this mapping to the spec: w3c/html-aam#446
TODOs to complete this PR:
|
The `popovertoggletarget`, `popovershowtarget` and `popoverhidetarget` attributes will initially map to `aria-expanded`. This has already been implemented in Chromium browsers. HTML AAM PR to add this mapping to the spec: w3c/html-aam#446
It might be good to wait for whatwg/html#8894. Also, I'm glad this work is already underway! Next time we add new semantics to HTML I'll try to make sure this is considered as part of the main HTML PR. As in, ensure the work is coordinated and can land around the same time. |
* initial astro commit * minor config change * move over sources * fix prettier formatting * rename files and create layout * move to markdown * migrate markdown file * get navigation working * fix routing for pages * update the documentation * more fixes to styling * get layouts working for all pages * improve styles even more * get build working * fix image * fix navigation order * get navigation working * add favicon * fix page title * fix menu sorting * fix lighthouse issues * update node version * minors to styles * override gatsby build config * typo * fix navigation styles * remove unused dependencies, remove render blocking resources, prefetch resources * reduce font flashing, fix markup issues * fix build from breaking * test removing prefetch * rmeove compression * revert changes to config * fix prefetch * fix image paths * Create 2022-12-01.md * Update 2022-12-01.md * Update 2022-12-01.md * Update popup.research.explainer.mdx (#644) Remove lingering mention of `popover=hint` for now. * Popover target attribute updates (#647) The `popovertoggletarget`, `popovershowtarget` and `popoverhidetarget` attributes will initially map to `aria-expanded`. This has already been implemented in Chromium browsers. HTML AAM PR to add this mapping to the spec: w3c/html-aam#446 * Create 2023-01-05.md * Update 2023-01-05.md * Create 2023-01-12.md * docs: add kolibri accessible component lib (#624) * Update 2023-01-12.md * Create 2023-01-19.md * Task: Add redirect for popup (#653) * add redirect for popup * refactor code * let yarn do its thing * revert formatting change * add redirect comment Co-authored-by: Andrico <[email protected]> * Update popover.research.explainer.mdx (#654) * Update popover.research.explainer.mdx * Update research/src/pages/popup/popover.research.explainer.mdx Co-authored-by: Scott O'Hara <[email protected]> Co-authored-by: Scott O'Hara <[email protected]> * Create 2023-02-02.md * fix layout issue * fix interactions * Update 2023-02-02.md * Update 2023-02-02.md * selectmenu is an element, code escape it (#660) * update layout and remove stale content * handle missing images * minor fixes and redirects * fix dead links * Create 2023-02-16.md * Update 2023-02-16.md * Adjusted the home page to reflect the current reality and ensure the relationship between Open UI & the W3C is clear (#663) * Create 2023-02-23.md * minor improvements * temporarily prevent refetch * revert prefetch change * Update 2023-02-23.md * performance + a11y improvements * remove Lora font family --------- Co-authored-by: Andrico <[email protected]> Co-authored-by: Greg Whitworth <[email protected]> Co-authored-by: Jhey Tompkins <[email protected]> Co-authored-by: Scott O'Hara <[email protected]> Co-authored-by: Martin <[email protected]> Co-authored-by: Andrico <[email protected]> Co-authored-by: Tantek Çelik <[email protected]>
* [Site rewrite] Migrate site to astro (#606) * initial astro commit * minor config change * move over sources * fix prettier formatting * rename files and create layout * move to markdown * migrate markdown file * get navigation working * fix routing for pages * update the documentation * more fixes to styling * get layouts working for all pages * improve styles even more * get build working * fix image * fix navigation order * get navigation working * add favicon * fix page title * fix menu sorting * fix lighthouse issues * update node version * minors to styles * override gatsby build config * typo * fix navigation styles * remove unused dependencies, remove render blocking resources, prefetch resources * reduce font flashing, fix markup issues * fix build from breaking * test removing prefetch * rmeove compression * revert changes to config * fix prefetch * fix image paths * Create 2022-12-01.md * Update 2022-12-01.md * Update 2022-12-01.md * Update popup.research.explainer.mdx (#644) Remove lingering mention of `popover=hint` for now. * Popover target attribute updates (#647) The `popovertoggletarget`, `popovershowtarget` and `popoverhidetarget` attributes will initially map to `aria-expanded`. This has already been implemented in Chromium browsers. HTML AAM PR to add this mapping to the spec: w3c/html-aam#446 * Create 2023-01-05.md * Update 2023-01-05.md * Create 2023-01-12.md * docs: add kolibri accessible component lib (#624) * Update 2023-01-12.md * Create 2023-01-19.md * Task: Add redirect for popup (#653) * add redirect for popup * refactor code * let yarn do its thing * revert formatting change * add redirect comment Co-authored-by: Andrico <[email protected]> * Update popover.research.explainer.mdx (#654) * Update popover.research.explainer.mdx * Update research/src/pages/popup/popover.research.explainer.mdx Co-authored-by: Scott O'Hara <[email protected]> Co-authored-by: Scott O'Hara <[email protected]> * Create 2023-02-02.md * fix layout issue * fix interactions * Update 2023-02-02.md * Update 2023-02-02.md * selectmenu is an element, code escape it (#660) * update layout and remove stale content * handle missing images * minor fixes and redirects * fix dead links * Create 2023-02-16.md * Update 2023-02-16.md * Adjusted the home page to reflect the current reality and ensure the relationship between Open UI & the W3C is clear (#663) * Create 2023-02-23.md * minor improvements * temporarily prevent refetch * revert prefetch change * Update 2023-02-23.md * performance + a11y improvements * remove Lora font family --------- Co-authored-by: Andrico <[email protected]> Co-authored-by: Greg Whitworth <[email protected]> Co-authored-by: Jhey Tompkins <[email protected]> Co-authored-by: Scott O'Hara <[email protected]> Co-authored-by: Martin <[email protected]> Co-authored-by: Andrico <[email protected]> Co-authored-by: Tantek Çelik <[email protected]> * remove unused dependencies --------- Co-authored-by: Andrico <[email protected]> Co-authored-by: Andrico <[email protected]> Co-authored-by: Jhey Tompkins <[email protected]> Co-authored-by: Scott O'Hara <[email protected]> Co-authored-by: Martin <[email protected]> Co-authored-by: Andrico <[email protected]> Co-authored-by: Tantek Çelik <[email protected]>
whatwg/html#8962 resolves the issue I mentioned earlier so that will require some changes here. One thing that seems somewhat awkward here is that certain requirements of HTML are restated. Ideally we'd build upon the model that HTML establishes so we don't have to make requirements as to when certain buttons are ignored for instance. |
thanks for the heads up @annevk. i'll review the changes and make updates. also agree, i can cut out requirements that are already defined in HTML. I was working on this in tandem with the original PR for the attributes, so this can be revised to remove redundancies. |
Instead of popoverhidetarget, popovershowtarget, and popovertoggletarget, we will now have popovertarget and popovertargetaction. The former for targeting an element and the latter for determining what to do with the target. This also corrects popover validity checks in activation behavior and consistifies the popover attribute. Tests: web-platform-tests/wpt#38701. HTML-AAM: w3c/html-aam#446. Fixes #8894, fixes #8983, and fixes #8979.
this commit supersedes #446 TODO: finalize `popover` attribute mappings
closing this per new PR #481 |
See https://open-ui.org/components/popup.research.explainer and https://github.com/w3c/html-aam/wiki/HTML-Popover-Attribute-A11y-Proposal-(manual-and-auto)
Adds the following proposed attributes:
popover
popoverhidetarget
popovershowtarget
popovertoggletarget
Preview | Diff