-
Notifications
You must be signed in to change notification settings - Fork 235
docs(overlay): add instructions on styling overlay content #1383
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
Conversation
| } | ||
| customElements.define('docs-component', ComponentElement); | ||
|
|
||
| class StyledElement extends HTMLElement { |
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.
The code sample in the Docs are copyable, but not runnable inline, so the definition needs to actually be set here.
aashritandon92
left a comment
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.
Looks good to me!
packages/overlay/overlay-trigger.md
Outdated
|
|
||
| ```html | ||
| <overlay-trigger placement="top-start"> | ||
| <button slot="trigger">Trigger Element</button> |
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.
Just wondering, was the usage of HTML button intentional, since rest of the document uses sp-button
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.
Good question! I was thinking this helped reduce the perception of "magic" here so that readers could focus on the [slot="click-content"] element, but maybe you bringing this up shows that I was mistaken and it should be sp-button for uniformity?
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.
Yeah, sp-button would be better in my opinion.
038488e to
103c69b
Compare
aashritandon92
left a comment
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.
LGTM 💯
Description
Outline style requirements for content that is thrown into an overlay.
PTAL: https://westbrook-overlay-styles--spectrum-web-components.netlify.app/components/overlay-trigger
Related Issue
fixes #1267
Motivation and Context
Make adopting out elements as easy as possible.
Screenshots (if appropriate):
Types of changes
Checklist: