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

Article header or footer got unwanted under space when using <h> or <p> #611

Open
clementgineste opened this issue Sep 20, 2024 · 0 comments

Comments

@clementgineste
Copy link

clementgineste commented Sep 20, 2024

Describe the issue

Current Behavior

When using <h1> to <h6> in a <header> section inside an <article> extra space is displayed under the heading. Like a <br>.
Same behavior with <p> and may be others

Example:
image

Expected Behavior

No extra space under the heading. Example

Example:
image

Reproduction URL

None.

Code HTML

      <article>
        <header>
          <h3>Gestion des utilisateurs</h3>
        </header>
        <form role="search" onSubmit={handleSearch}>
          <input
            type="search"
            placeholder="Rechercher par email"
            value={email}
            onChange={(e) => setEmail(e.target.value)}
          />
          <button
            type="submit"
            disabled={loading}
            aria-busy={loading}
          >
            {loading ? 'Recherche en cours...' : 'Rechercher'}
          </button>
        </form>
        <footer>
          Article's footer
        </footer>
      </article>

Environment

Client: Fedora 41, Chrome 129. Tested as well under Firefox.
Server: PicoCSS 2.0.6

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

1 participant