Proposed demo: Popover API #37
Closed
KaliedaRik
started this conversation in
Ideas
Replies: 2 comments
-
Working on this. Chrome and Safari have shipped the new functionality, and Firefox have it in their latest dev build. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Work completed in PR #67 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal:
The Popover API provides developers with a standard, consistent, flexible mechanism for displaying popover content on top of other page content. Popover content can be controlled either declaratively using HTML attributes, or via JavaScript.
Build a demo to see if such popovers can include a SC canvas element as part of its markup
Discussion:
I'm not sure I like this API - we've only just got the <dialog> element for modals - but, if this is going to be A Thing going forward, and it turns out that developers can include <canvas> elements in popovers, then there is a case to be made to make sure SC can work effectively with those canvases - in particular for canvas responsiveness, interactivity and accessibility.
The danger, of course, is if developers decide to use canvas elements for the entire UI of the popover instead of HTML/CSS/JS - such ideas need to be discouraged.
Risks:
No browser currently supports the API, though Chrome and Safari claim they are actively developing the functionality.
Beta Was this translation helpful? Give feedback.
All reactions