-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
In the meantime I started to use ui5-page and it made programming the layout of a mobile application dead easy. |
Beta Was this translation helpful? Give feedback.
-
Hi @nemethmik Thanks for the kind words! When it comes to When it comes to restyling web components we have a couple of approaches, depending on what exactly you need to restyle:
Example: If we want to change the color & background of ui5-title {
color: red;
background: white;
} Note: This will restyle all
Example(taken from our codebase): [ui5-slider]::part(handle) {
width: 11px;
height: 1.25rem;
background: transparent;
margin-left: -2px;
margin-top: 1px;
}
import { addCustomCSS } from "@ui5/webcomponents-base/dist/Theming.js";
addCustomCSS("ui5-select", ".ui5-select-root { background-color: red; } ") Note: This approach is not recommended because you are breaking the encapsulation that is provided by web components. However, if you need to make some specific changes, this might be your only choice. Please use this approach with caution. Hope that this answers your quiestions! |
Beta Was this translation helpful? Give feedback.
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 forui5-title
says that insap_fiori_3_dark
theme it's color should be white. You can notice that if you change the theme tosap_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:
Example: If we want to change the color & background of
ui5-title
, you can do it like this:ui5-title {…