-
Notifications
You must be signed in to change notification settings - Fork 425
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
<a role="button">
is not vertically aligned with <button>
in <nav>
#496
Comments
<a role="button">
is not vertically aligned in <nav>
<a role="button">
is not vertically aligned with <button>
in <nav>
+1 👍. There is a margin bottom for |
Same issue here chrome Version 123.0.6312.105 on macbook apple silicon |
The reason was that For the above example, I was able to fix the margin issue by one of these additional CSS: -button {
+button, [role=button] {
margin: 0;
} or nav li [role=button], nav li [type=button], nav li button, nav li input:not([type=checkbox],[type=radio],[type=range],[type=file]), nav li select {
height: auto;
margin-right: inherit;
margin-bottom: 0;
margin-left: inherit;
padding: calc(var(--pico-nav-link-spacing-vertical) - var(--pico-border-width)* 2) var(--pico-nav-link-spacing-horizontal);
}
+nav li [role=button], nav li [type=button] {
+ margin-top: 0;
+} I'm unfamiliar with the Pico CSS codebase, so I'm not confident about which approach is appropriate to fix this issue. Hope this helps fix this issue. BeforeAfter |
Describe the issue
<a role="button">
is not vertically aligned with<button>
in a<nav>
.Current Behavior
Expected Behavior
Reproduction URL
Environment
Firefox on Windows 10
The text was updated successfully, but these errors were encountered: