Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Message body lost it background if parent use has/is-background-white #3775

@lorrydriveloper

Description

@lorrydriveloper

This is about Bulma.

Having a parent with class background change the behavior of the children's messages body as the variable
now points to

[class*=has-background-white], [class*=is-background-white] {
    ...other code
    --bulma-background-l: var(--bulma-white-l);
}

that change the

.message-body {
    background-color: hsl(var(--bulma-message-h), var(--bulma-message-s), var(--bulma-message-background-l));
}

that point to

--bulma-message-background-l: var(--bulma-background-l);

Overview of the problem

I'm using Bulma version [1.0]

Description

Not sure if it is a bug or an overview, but even in the docs, the class is used. but not having the desired effect anymore.

Steps to Reproduce

Add has-background-white to any parent where a message is displayed.

Expected behavior

Screenshot 2024-04-05 at 12 19 25

Actual behavior

Screenshot 2024-04-05 at 12 19 40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions