-
Notifications
You must be signed in to change notification settings - Fork 191
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
[popup] What are the precedence rules for togglepopup
, showpopup
, and hidepopup
#523
Comments
|
I'd like to propose this as a behavior: When an activating element (e.g.
And that should:
Thoughts? Bugs in the algorithm? |
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6
The Open UI Community Group just discussed
The full IRC log of that discussion<hdv> Topic: [popup] Add ::backdrop to popup to enable modal popup #519<hdv> github: https://github.com/openui/open-ui/blob/main/meetings/telecon/2022-04-21.md <hdv> github: https://github.com//issues/523 <jh3y> wrt #519: +1 Good to match expectation from <dialog> usage <hdv> masonf: the idea of togglepopup is that the idref you put on a button that it toggles that, but it needs a rule for what happens when there are multiple attributes <hdv> masonf: what we need to resolve on is what happens exactly so that developers know what to expect <flackr> q+ <JonathanNeal> q? <hdv> masonf: I proposed some rules on the thread, summary: if you provide togglepopup, it wins, it ignores showpopup and hidepopup. If you use showpopup and hidepopup, with different ids, showpopup wins, if they have the same idref, it behaves like togglepopup <hdv> flackr: <hdv> flackr: I agree high level… in the proposed algorithm, if you show ID1 and hide ID2, you get toggle behavior? <hdv> masonf: should be show behavior? <hdv> flackr: ok I agree, if the IDs don't match we should not modify the behavior <JonathanNeal> q? <JonathanNeal> ack flackr <hdv> masonf: let's try today to discuss just what we want, then we'll fix the algorithm later <miriam> +1 I like the intended behavior <hdv> JonathanNeal: is there agreement on the intended behavior and the idea for this to be resolved ? <una> SGTM <JonathanNeal> +1 <Alexander_Futekov> +1 <hdv> flackr: I think the algorithm is correct actually <flackr> +1 <masonf> Proposed resolution: We accept the precedence rules from https://github.com//issues/523#issuecomment-1106686358. <JonathanNeal> +1 <masonf> RESOLVED: We accept the precedence rules from https://github.com//issues/523#issuecomment-1106686358. <hdv> masonf: if you find a bug in the algorithm please tell me |
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6
Based on the resolution, I'm going to close this issue. If you find issues/bugs in the proposed algorithm, please report them as a new issue. |
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3609067 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#997841}
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3609067 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#997841}
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3609067 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#997841}
…ributes for popup, a=testonly Automatic update from web-platform-tests Add showpopup and hidepopup invoking attributes for popup This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3609067 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#997841} -- wpt-commits: 4c555ebf12a62220184683c976c6ab4f537775a4 wpt-pr: 33807
…ributes for popup, a=testonly Automatic update from web-platform-tests Add showpopup and hidepopup invoking attributes for popup This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3609067 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#997841} -- wpt-commits: 4c555ebf12a62220184683c976c6ab4f537775a4 wpt-pr: 33807
This CL adds 'showpopup' and 'hidepopup' as two more invoking attributes for the Popup API. Details of the expected behavior are discussed here: openui/open-ui#523 (comment) Bug: 1307772 Change-Id: Ie6c0d72b36cedd827e0b484b5635fcc6b99fb8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3609067 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#997841} NOKEYCHECK=True GitOrigin-RevId: 817beb3da8b62eee30ce5fa17273faf80676c66e
See #508 for context, but the popup now supports three content attributes:
togglepopup=popup_id
: Ifpopup_id
refers to a showing popup, hide it. Ifpopup_id
refers to a hidden popup, show it.showpopup=popup_id
: Ifpopup_id
refers to a hidden popup, show it.hidepopup=popup_id
: Ifpopup_id
refers to a showing popup, hide it.The question becomes: what happens when one element has more than one of these attributes set? What if they point to different idrefs?
The text was updated successfully, but these errors were encountered: