Closed langered closed 2 months ago
Hi @langered
Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.
Hi Colleagues,
here you can find an example using ui5wc without React or our wrapper: https://stackblitz.com/edit/github-wfshau-ulqg1d?file=index.html,main.js,package.json
Click on the button to change the theme and see the bug.
Hello @SAP/ui5-webcomponents-topic-core,
This issue is reproducible when changing themes labelSpan
property is ignored and labels positions in the form component is changed.
Best Regards, Konstantin
Hello @langered thanks for reporting, fix has been prepared.
Describe the bug
When changing the theme (e.g.
sap_horizon_dark
) the label will always be displayed on top of its assosiated field. It seems that it is not respecting thelabelSpan
configuration. The documentation says, that if12
is configured, the label is displayed above the field. For this example, I configured the size S to 4 to make sure it should never be the case.When not changing the theme at all, everything works as expected.
Isolated Example
https://stackblitz.com/edit/github-mezoel?file=src%2FApp.tsx
Reproduction steps
Expected Behaviour
labelSpan
should be respected.Screenshots or Videos
When theme is changed to
sap_horizon_dark
, the label is above the field:When no
setTheme
is executed, the form layout is correct and the label is next to the field:UI5 Web Components for React Version
2.0.2
UI5 Web Components Version
2.1.2
Browser
Chrome, Safari
Operating System
No response
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration