-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
fix: use semantic elements #341
Conversation
especially for accessibility reasons
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
thanks, I'll take a look later. |
Awesome, this is exactly what we need to fix #335 |
Sorry for the delay. I'll try to merge it this week. |
|
||
&[type="button"] { | ||
background-color: transparent; | ||
border: 1px solid transparent; | ||
color: inherit; | ||
} | ||
|
||
svg { | ||
width: 1.5em; | ||
height: 1.5em; | ||
min-width: 1.5em; | ||
min-height: 1.5em; | ||
} |
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.
I can see that the copy button is also used with other classes like .ch-code-button
.
While you can copy these reset styles into the appropriate scss file, another option would be to add the styles directly yo the button on the copy-buton.tsx
file. Something like this:
<button
style={{
background: "none",
border: 0,
color: "inherit",
fontSize: "inherit",
padding: 0,
...style,
}}
...
I added the Thank you all. |
🚀 PR was released in |
especially for accessibility reasons; to e.g. have those announced correctly by screenreaders and even also make them reachable on keyboard usage.
Resolves #335
Version
Published prerelease version:
v0.8.2-next.0
Changelog
🐛 Bug Fix
@code-hike/mdx
Authors: 3