-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
✨ Update shepherd element to use html dialog #2982
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@@ -141,20 +141,20 @@ | |||
class:shepherd-element={true} | |||
{...dataStepId} | |||
on:keydown={handleKeyDown} | |||
role="dialog" | |||
tabindex="0" |
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.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#attributes
Warning: The tabindex attribute must not be used on the element.
|
||
<style global> | ||
.shepherd-element { | ||
background: #fff; | ||
border-radius: 5px; | ||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); | ||
margin: 0; |
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.
margin auto is a default in the browser
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! Thanks for taking this on
This issue addresses the request for semantic HTML and closes #2959.