Skip to content

Adds proposed popover and related attributes - #446

Closed
scottaohara wants to merge 8 commits into
gh-pagesfrom
popover-attrs
Closed

scottaohara wants to merge 8 commits into
gh-pagesfrom
popover-attrs

Conversation

@scottaohara

@scottaohara scottaohara commented Nov 28, 2022 •

Copy link
Copy Markdown
Member

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

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`
Comment thread index.html Outdated
I failed to remember this was not being included in v1 of `popover`, so taking this out of the PR.
Comment thread index.html Outdated
@jnurthen
jnurthen marked this pull request as draft December 1, 2022 18:09
scottaohara added a commit to scottaohara/open-ui that referenced this pull request Dec 11, 2022
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
@scottaohara

Copy link
Copy Markdown
Member Author

TODOs to complete this PR:

  • Separate PR for Minimum Role needs to be completed.
  • ispopup object attribute for ia2/atk
  • for popover=manual, there may be additional mappings related to aria-details which would need to also be mapped to the triggering element, if there is one / applicable.

andrico1234 pushed a commit to openui/open-ui that referenced this pull request Dec 13, 2022
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
@annevk

annevk commented Feb 23, 2023

Copy link
Copy Markdown
Member

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.

gregwhitworth added a commit to openui/open-ui that referenced this pull request Feb 27, 2023
* 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 <andrico@animaapp.com>

* 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 <scottaohara@users.noreply.github.com>

Co-authored-by: Scott O'Hara <scottaohara@users.noreply.github.com>

* 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 <andrico.karoulla@healthhero.com>
Co-authored-by: Greg Whitworth <865244+gregwhitworth@users.noreply.github.com>
Co-authored-by: Jhey Tompkins <jh3y@users.noreply.github.com>
Co-authored-by: Scott O'Hara <scottaohara@users.noreply.github.com>
Co-authored-by: Martin <6279703+deleonio@users.noreply.github.com>
Co-authored-by: Andrico <andrico@animaapp.com>
Co-authored-by: Tantek Çelik <blog@tantek.com>
gregwhitworth added a commit to openui/open-ui that referenced this pull request Feb 28, 2023
* [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 <andrico@animaapp.com>

* 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 <scottaohara@users.noreply.github.com>

Co-authored-by: Scott O'Hara <scottaohara@users.noreply.github.com>

* 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 <andrico.karoulla@healthhero.com>
Co-authored-by: Greg Whitworth <865244+gregwhitworth@users.noreply.github.com>
Co-authored-by: Jhey Tompkins <jh3y@users.noreply.github.com>
Co-authored-by: Scott O'Hara <scottaohara@users.noreply.github.com>
Co-authored-by: Martin <6279703+deleonio@users.noreply.github.com>
Co-authored-by: Andrico <andrico@animaapp.com>
Co-authored-by: Tantek Çelik <blog@tantek.com>

* remove unused dependencies

---------

Co-authored-by: Andrico <karoulla.andrico@gmail.com>
Co-authored-by: Andrico <andrico.karoulla@healthhero.com>
Co-authored-by: Jhey Tompkins <jh3y@users.noreply.github.com>
Co-authored-by: Scott O'Hara <scottaohara@users.noreply.github.com>
Co-authored-by: Martin <6279703+deleonio@users.noreply.github.com>
Co-authored-by: Andrico <andrico@animaapp.com>
Co-authored-by: Tantek Çelik <blog@tantek.com>
@annevk

annevk commented Mar 1, 2023

Copy link
Copy Markdown
Member

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.

@scottaohara

Copy link
Copy Markdown
Member Author

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.

annevk added a commit to whatwg/html that referenced this pull request Mar 8, 2023
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.
scottaohara added a commit that referenced this pull request May 9, 2023
this commit supersedes #446

TODO: finalize `popover` attribute mappings
@scottaohara

Copy link
Copy Markdown
Member Author

closing this per new PR #481

@scottaohara scottaohara closed this May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants