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

<a role="button"> is not vertically aligned with <button> in <nav> #496

Open
carlreinke opened this issue Mar 19, 2024 · 1 comment
Open

Comments

@carlreinke
Copy link

carlreinke commented Mar 19, 2024

Describe the issue

<a role="button"> is not vertically aligned with <button> in a <nav>.

Current Behavior

image

Expected Behavior

image

Reproduction URL

<head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2.0.6/css/pico.min.css" />
</head>
<body>
  <article>
    <nav>
      <ul>
        <li><a href="#">a</a></li>
        <li><button>button</button></li>
        <li><a href="#" role="button">a[role="button"]</a></li>
      </ul>
    </nav>
  </article>
</body>

Environment

Firefox on Windows 10

@carlreinke carlreinke changed the title <a role="button"> is not vertically aligned in <nav> <a role="button"> is not vertically aligned with <button> in <nav> Mar 19, 2024
@enzoclock
Copy link

+1 👍. There is a margin bottom for buttons that have one of the three [type="..."] properties, but not for the default button. I wonder if this behavior should be aligned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants