Skip to content

Applying dark theme consistency on ui5title and other non-UI5 HTML elements #4002

Answered by fifoosid
nemethmik asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nemethmik

Thanks for the kind words!

When it comes to ui5-title it is not ignoring the dark theme that you have set. The spec for ui5-title says that in sap_fiori_3_dark theme it's color should be white. You can notice that if you change the theme to sap_fiori_3 the color of the title would be black.

When it comes to restyling web components we have a couple of approaches, depending on what exactly you need to restyle:

  1. If you need to style a generic CSS property(depends on how the component is structured). We aim to expose important CSS properties to be changed with this approach.

Example: If we want to change the color & background of ui5-title, you can do it like this:

ui5-title {…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nemethmik
Comment options

@fifoosid
Comment options

Answer selected by nemethmik
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