-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
styling of ui5 webcomponents #328
Comments
Hey @DamianLion Could you please tell us what exactly you would like to overstyle? We are working on our theming concept currently and any feedback is appreciated. Regards, |
Sure. we are using the basically 😉
|
Hello @DamianLion For now you can use the import "@ui5/webcomponents/dist/Select";
import { addCustomCSS } from "@ui5/webcomponents-base/src/sap/ui/webcomponents/base/theming/CustomStyle";
addCustomCSS("ui5-select", "sap_fiori_3", `.sapWCSelect {
height: 35px;
border-radius: 4px;
}`); from v 0.9.0 0.10.0 We are currently reworking the theming and we will provide a better overstyling for the future. Regards! |
Hello, I am trying to set my custom styles for 'ui5-textarea'.
The above entry doesn't seem to work. How do i add customCSS to ui5-webcomponents ? |
hey @akshaykmr080, do you pass the second parameter (theme name)? As I explained above:
|
Thanks a lot. It worked after i placed the call in the constructor of my component. Placing the addCustomCSS call in componentDidMount lifecycle method will not work |
hmm, might be too late then, yes. Just to inform you that we are considering (or we already did it :D not sure @pskelin) to remove the second parameter and the custom css to be available for all themes. |
Hello all, We did quite a lot of work in that direction: Styling RootStyling components using e.g. CSS VariablesWe expose some `CSS custom properties for some parts of the components which make sense to have a public API e.g. CSS Shadow PartsCSS Shadow parts is not yet implemented in all major browsers, but we believe that this is the
We are working on a polyfill until we got a full browser support on that feature. The polyfill is still in a review stage, but I believe it will be out for some testing and feedback very soon: #609 Global ThemingAs all of our components are working with CSS Custom Variables we are also working in the direction of providing a way to make your own theme using a tool such as the If you have any other feedback or proposals feel free to contact us! |
I would like to override some of the classes. e.g
.sapWCSelect
As Chrome decided to remove support of shadow-dom css selectors and
/deep/
and::shadow
are not an option.What would be the best way of styling an ui5-webcomponent?
The text was updated successfully, but these errors were encountered: