-
Notifications
You must be signed in to change notification settings - Fork 278
Description
Feature Request Description
Hello,
Our customers build pixel-perfect widgets on our canvas, and these widgets already have fixed, carefully tuned sizes, borders, and visual styles. When we switch our existing controls to UI5 Web Components, the RadioButton must match the current appearance exactly so the customer’s widget layout does not change. However, many of the UI5 properties that affect the visual appearance—such as the inner box size, border thickness, padding, and theradiobutton inner icon—are controlled by internal, version-specific variables that are not publicly supported. When these values cannot be reliably matched, even small differences in padding, ring size, or border styling can push content out of alignment or cause wrapping inside the customer’s already-built widget. To ensure that switching to UI5 Web Components does not break existing layouts, we need the RadioButton to expose their sizing, border, and inner-icon styling as public, stable CSS variables or CSS shadow parts.
Today, achieving this customization requires overriding several private, version-specific internal CSS variables such as:
- --_ui5-v1-24-13_radio_button_inner_size
- --_ui5-v1-24-13_radio_button_height
- --_ui5-v1-24-13_radio_button_svg_size
- --_ui5-v1-24-13_radio_button_outer_ring_padding
Proposed Solution
To make the transition to UI5 Web Components smooth and keep our customers’ widgets looking exactly the same, it would really help if the RadioButton exposed public, stable CSS variables or CSS shadow parts for the key visual pieces of the components. Being able to adjust the following in a supported way would cover all of our needs:
- the overall control size
- the size of the inner box or radio ring
- border width and border color
- the radio-dot color
- any padding or spacing that affects the layout
- the size of the radio SVG
Right now, these values are controlled by internal variables that change with each version, and some of them are difficult to override. Having official, documented CSS properties or parts for these areas would make it much easier for us to match our existing designs.
thank you in advance
Proposed Alternatives
No response
Organization
SAP
Additional Context
No response
Priority
High
Privacy Policy
- I’m not disclosing any internal or sensitive information.
Metadata
Metadata
Assignees
Type
Projects
Status