Skip to content

Add class attribute to blocks with background color #1315

Closed

Description

@PiotrSss

Would be lovely to have in this case:


some class attribute. It's possible to get to those blocks with [style="..."], but something like .with-bg-color would make this more abstract.

Activity

  1. tiensonqin commented on Feb 17, 2021

    @tiensonqin
    Contributor

    @PiotrSss I'm not sure that I understand it well, do you want to add with-bg-color to the block class if there's a bg-color?
    Or, do you want to add the value of the bg-color to the classes?

  2. PiotrSss commented on Feb 17, 2021

    @PiotrSss
    Author

    First option, to get access to all of them (if I want to round borders, change font, etc, no matter which color is chosen).

  3. tiensonqin commented on Feb 17, 2021

    @tiensonqin
    Contributor

    @PiotrSss Got it, will add it.

  4. tiensonqin commented on Feb 17, 2021

    @tiensonqin
    Contributor

    Jut added it.

  5. wanyest commented on Sep 2, 2021

    @wanyest

    Can this be made so the value isn't hard-coded but a CSS value so the individual colors can be changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions