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

Button too large inside <details> element. #3636

Open
strfx opened this issue Apr 6, 2023 · 2 comments
Open

Button too large inside <details> element. #3636

strfx opened this issue Apr 6, 2023 · 2 comments

Comments

@strfx
Copy link

strfx commented Apr 6, 2023

Hi, first of all thanks for your great work on bulma!

I ran into an issue placing buttons inside a <details> element.

Description

Buttons inside the <details> element appear too big in comparison when placed outside of that element, see:

image

Tested with latest Bulma version (v0.9.4) under Firefox and Chrome. Seems to be related to: #1696

Steps to Reproduce

To reproduce, check out the code below or this codepen: https://codepen.io/strfx/pen/MWPWbvY

The first button appears regularly sized, the button inside <details> is too big.

<section class="section">
    <div class="container">
        <a class="button">I am regularly sized</a>

        <details>
            <a class="button">I am too big</a>
        </details>
    </div>
</section>

Workaround

Adding box-sizing: border-box; to the element fixes the buttons' heights (from #1696 (comment)).

details .button {
    box-sizing: border-box;
}
@qwertyroop
Copy link

Hey can I get assigned? I want to work on this!

@Zubrik
Copy link

Zubrik commented Jan 19, 2024

Hi,

It seems that the problem is due to box-sizing not being inherited through the details element: https://stackoverflow.com/a/75349350

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

3 participants