Skip to content
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

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

chuckcarpenter
Copy link
Member

This issue addresses the request for semantic HTML and closes #2959.

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shepherd-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 5:38pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
shepherd-landing ⬜️ Skipped (Inspect) Oct 8, 2024 5:38pm

@@ -141,20 +141,20 @@
class:shepherd-element={true}
{...dataStepId}
on:keydown={handleKeyDown}
role="dialog"
tabindex="0"
Copy link
Member Author

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;
Copy link
Member Author

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

Copy link
Member

@RobbieTheWagner RobbieTheWagner left a 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

@RobbieTheWagner RobbieTheWagner merged commit 1f5e775 into main Oct 8, 2024
7 checks passed
@RobbieTheWagner RobbieTheWagner deleted the feat/semantic-dialog branch October 8, 2024 19:02
@github-actions github-actions bot mentioned this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the dialog element or the aria-modal attribute for the dialog modal of the tour tips
2 participants