From 32c95c6a75d0790fd4e78e381d3223502e31a773 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Thu, 14 Jul 2022 13:06:36 -0700 Subject: [PATCH] Incorporate resolutions from #382 and #420 --- .../pages/popup/popup.research.explainer.mdx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/research/src/pages/popup/popup.research.explainer.mdx b/research/src/pages/popup/popup.research.explainer.mdx index f7d8ccaf1..4f68bfd7a 100644 --- a/research/src/pages/popup/popup.research.explainer.mdx +++ b/research/src/pages/popup/popup.research.explainer.mdx @@ -6,7 +6,7 @@ pathToResearch: /components/popup.research --- - [@mfreed7](https://github.com/mfreed7), [@scottaohara](https://github.com/scottaohara), [@BoCupp-Microsoft](https://github.com/BoCupp-Microsoft), [@domenic](https://github.com/domenic), [@gregwhitworth](https://github.com/gregwhitworth), [@chrishtr](https://github.com/chrishtr), [@dandclark](https://github.com/dandclark), [@una](https://github.com/una), [@smhigley](https://github.com/smhigley), [@aleventhal](https://github.com/aleventhal) -- July 8, 2022 +- July 14, 2022 @@ -111,10 +111,10 @@ There are several ways to "show" a pop-up, and they are discussed in this sectio ### Declarative Triggers -A common design pattern is to have an activating element, such as a ` +
Pop-up content
``` @@ -123,15 +123,17 @@ When the button in this example is activated, the UA will call `.showPopUp()` on If the desire is to have a button that only shows or only hides a pop-up, the following markup can be used: ```html - - - + + +
Pop-up content
``` Note that all three attributes can be used together like this, pointing to the same element. However, using more than one triggering attribute on **a single button** is not recommended. -When the `togglepopup`, `showpopup`, or `hidepopup` attributes are applied to an activating element, the UA may automatically map this attribute appropriate `aria-*` attributes, such as `aria-haspopup`, `aria-describedby` and/or `aria-expanded`, in order to ensure accessibility. There will need to be further discussion with the ARIA working group to determine the exact ARIA semantics, if any, are necessary. +When the `popuptoggletarget`, `popupshowtarget`, or `popuphidetarget` attributes are applied to an activating element, the UA may automatically map this attribute appropriate `aria-*` attributes, such as `aria-haspopup`, `aria-describedby` and/or `aria-expanded`, in order to ensure accessibility. There will need to be further discussion with the ARIA working group to determine the exact ARIA semantics, if any, are necessary. + +These attributes are only supported on buttons (including ` + ...date picker contents... - ``` @@ -651,6 +653,7 @@ Many small (and large!) behavior questions were answered via discussions at Open - [`.popup` vs `.popUp`](https://github.com/openui/open-ui/issues/546#issuecomment-1158190204) - [Interactions between auto, hint, and manual](https://github.com/openui/open-ui/issues/525) - [Show and hide animation behavior](https://github.com/openui/open-ui/issues/335) +- [`popuptoggletarget`, `popupshowtarget`, `popuphidetarget`](https://github.com/openui/open-ui/issues/382#issuecomment-1184773425) Here are all non-spec-text related OpenUI pop-up issues, both open and closed: