SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.52k stars 264 forks source link

[Feature Request]: add CSS Variables or other means to allow customization of certain parts of CheckBox, Radio, RangeSlider, Dialog #8105

Closed ilhan007 closed 3 months ago

ilhan007 commented 9 months ago

Feature Request Description

This issue is created on behalf of SAP Brand colleagues that would like to be able to customize certain parts of the following components. Usually this can be done by either using shadow parts, that we provide, or by overwriting CSS vars that we use internally. Introducing parts is recommended, more clean, as the alternative would be to create new css vars, that should be declared in the component-parameter.css file. The only thing to pay attention when it comes to parts, is that we have to carefully see the DOM elements, that needs to be customised, and to introduce parts where it makes sense - f.e. not on every span or div that we may have, but on certain semantic elements that are integral part of the component. And, the use-case. is not suitable for part, then we have to go for the alternative.

Task

Analyse the internal DOM elements that are requested for customisation and see if (1) exposing ShadowPart is reasonable or if not (2) exposing new variables would be better.

ui5-checkbox

ui5-radio-button

ui5-range-slider

ui5-dialog

Proposed Solution

Analyze the internal DOM elements that are requested for customisation and see if (1) exposing ShadowPart is reasonable or if not (2) exposing new variables would be better.

Proposed Alternatives

No response

Organization

SAP Brand

Additional Context

No response

Priority

None

Privacy Policy

hristop commented 7 months ago

Internal BLI created: BGSOFUIRILA-3814

s-todorova commented 7 months ago

Hi @ilhan007, Completed for Team Rodopi with PR#8347

Siyana

dobrinyonkov commented 6 months ago

Completed with https://github.com/SAP/ui5-webcomponents/pull/8423 for team p. Part icon added.

PlutaKatarzyna commented 3 months ago

Confirm that all issued here were resolved. Thank you.

ilhan007 commented 3 months ago

Thank you for checking, Kate!