-
Notifications
You must be signed in to change notification settings - Fork 209
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
Ship Overlay v2 #3456
Ship Overlay v2 #3456
Conversation
Tachometer resultsChromeaccordion permalink
action-bar permalink
action-button permalink
action-group permalink
action-menu permalink
asset permalink
avatar permalink
badge permalink
banner permalink
button-group permalink
button permalink
card permalink
checkbox permalink
coachmark permalink
color-area permalink
color-handle permalink
color-loupe permalink
color-slider permalink
color-wheel permalink
dialog permalink
divider permalink
dropzone permalink
field-group permalink
field-label permalink
grid permalink
help-text permalink
icon permalink
icons permalink
illustrated-message permalink
link permalink
menu permalink
meter permalink
number-field permalink
overlay permalink
picker-button permalink
picker permalink
popover permalink
progress-bar permalink
progress-circle permalink
quick-actions permalink
radio permalink
search permalink
sidenav permalink
slider permalink
split-button permalink
split-view permalink
swatch permalink
switch permalink
table permalink
tabs permalink
tags permalink
textfield permalink
thumbnail permalink
toast permalink
tooltip permalink
top-nav permalink
tray permalink
underlay permalink
Firefoxaccordion permalink
action-bar permalink
action-button permalink
action-group permalink
action-menu permalink
asset permalink
avatar permalink
badge permalink
banner permalink
button-group permalink
button permalink
card permalink
checkbox permalink
coachmark permalink
color-area permalink
color-handle permalink
color-loupe permalink
color-slider permalink
color-wheel permalink
dialog permalink
divider permalink
dropzone permalink
field-group permalink
field-label permalink
grid permalink
help-text permalink
icon permalink
icons permalink
illustrated-message permalink
link permalink
menu permalink
meter permalink
number-field permalink
overlay permalink
picker-button permalink
picker permalink
popover permalink
progress-bar permalink
progress-circle permalink
quick-actions permalink
radio permalink
search permalink
sidenav permalink
slider permalink
split-button permalink
split-view permalink
swatch permalink
switch permalink
table permalink
tabs permalink
tags permalink
textfield permalink
thumbnail permalink
toast permalink
tooltip permalink
top-nav permalink
tray permalink
underlay permalink
|
|
||
### trigger | ||
|
||
The `trigger` option accepts an `HTMLElement` or a `VirtualTrigger` from which to position the Overlay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several of these options reference a trigger. Should we specify here the side-effects of not providing a trigger, with an example of why you'd use or not use one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially optional to support straight to <dialog>
opening of Overlay.open((overlayElement: HTMLElement));
.
Clarify what not having a trigger in other cases means...
Some early clarification questions as I start to review -
What kind of unexpected behavior?
What does this mean exactly? Edit: after our sync I think I know the gist of this. |
52365b0
to
ef8c956
Compare
ef8c956
to
56f2c01
Compare
393c916
to
f064251
Compare
bd0e3b0
to
fc87ce2
Compare
}); | ||
const content = this.contentSlot | ||
.assignedNodes() | ||
.map((node) => node.cloneNode(true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it possible for contentSlot
or iconSlot
to be undefined / null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the frame before the first call to render()
, sure there is a moment in which these are not yet defined. There's likely harder to define issues that arise in that moment than this, but we'd love to hear if you happen to have a use case where that arises! Then we can make sure it's covered in our unit test suite and resilient to any subsequent changes that may come to this part of the library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I created #3626.
Description
Update the Overlay API to leverage
<dialog>
elements and thepopover
API as outlined in this discussion.To do:
active-overlay
in the migration docssp-overlay
Enter
in Pickerdelayed
in the imperative APIselects
is providedThere are a lot of changes herein. To help focus review, I've sequestered specific packages/functional areas into each of the commits in this branch:
Specific feature areas for deeper thought
[type="page"]
Related issue(s)
open
attribute #3184icon-only
attribute #3398Motivation and context
Overlays are hard, we want to make it easier through the magic of browsers.
How has this been tested?
Rigorously, extensively, but still with the need of your help!
Types of changes
Checklist