Skip to content

Custom CSS in webcomponents #6875

Answered by Lukas742
DrMalchev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DrMalchev

in general, using CSS is totally fine and even intended to be used. For example, for the Text (ui5-text) web component, the recommended way of setting white-space behavior is via CSS. Similarly, when using the FlexBox, defining align-content for example, also requires CSS.

There are certain properties and values that can affect the layout of a component, such as display, box-sizing, and position, to name a few. However, this heavily depends on the component, and even more so if it's a web component wrapped by our wrapper or a React component. Still, it’s essential to check if the component looks fine after applying CSS that can affect the layout.

The only thing that is not r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Lukas742
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