Skip to content

How to I create a custom style to make the labels bold? #232

Closed Answered by zvonimirfras
mapembert asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Mike!

To add styling to all the components in a fragment, you can apply a class directly to the fragment in the same "Advanced styling" section, while no component is selected.

The content of the style class is SCSS, which mean you can nest any additional selectors in it. Then it's a matter of targeting a specific-enough selector.

For a label that would be

.bx--label {
    font-weight: bold;
}

I hope this helps. Feel free to reopen the discussion if there's anything else you'd like to know 😃

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zvonimirfras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants