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.58k stars 268 forks source link

[ColorPicker]: Cannot set the color picker width #10117

Open annakjc opened 3 weeks ago

annakjc commented 3 weeks ago

Bug Description

Hello, I'm trying to set a width of 12 rem to the Color Picker however there are not shadow parts exposed and I cannot overwrite the hardcoded .ui5-color-picker-main-color { width: 16rem; height: 16rem; } Are there any suggestions or workarounds that i can perform?

Affected Component

Color Picker

Expected Behaviour

expected to be able to change the width of the color picker.

UI5 Web Components Version

2.3.0

Browser

Chrome

dimovpetar commented 3 weeks ago

Hello @annakjc ,

The ColorPicker dimensions are defined this big by the visual designers. What is the use of having smaller ColorPicker? This will also affect the other parts of the ColorPicker, such as the sliders, the current color and the RGB, which are not prepared for smaller width.

Best regards, Petar

github-actions[bot] commented 2 days ago

Hello, everyone! The issue has been inactive for 21 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 days!