bamboo icon indicating copy to clipboard operation
bamboo copied to clipboard

Issue with input fields inside <details> block

Open Elias-Black opened this issue 8 months ago • 1 comments

Thank you for your amazing work, the theme looks great!

I tried using it for a slightly unconventional blog and encountered an issue:

  1. The input fields inside the <details> block are not visually highlighted and blend with the background Image

  2. When clicking on an input field, not only the field's border is highlighted, but also the border of the <details> block Image

Elias-Black avatar Apr 01 '25 10:04 Elias-Black

I've fixed it just for me by adding this:

details {
    padding: 0;
    background: none;
}

summary {
    padding: .5rem 1rem;
    background: var(--b-bg-2);
}

summary:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--b-focus);
    border-radius: .25rem;
}

details[open] summary:focus {
    border-radius: .25rem .25rem 0 0;
}

details:focus-within {
    outline: none;
    box-shadow: none;
}
Image Image Image

Elias-Black avatar Apr 01 '25 11:04 Elias-Black