SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.94k stars 1.23k forks source link

SegementedButton has no rounded corners if border item is hidden #3956

Closed Falke-Design closed 7 months ago

Falke-Design commented 7 months ago

OpenUI5 version: 1.121.0-SNAPSHOT (built at 2024/01/25 00:17h)

Browser/version (+device/version): Edge 120.0.2210.144 Win11

Any other tested browsers/devices(OK/FAIL):

URL (minimal example if possible): https://plnkr.co/edit/nax3peI4Rdf6UmE6

What is the expected result? Has round corners

What happens instead? Has no rounded corners

Any other information? (attach screenshot if possible)

<SegmentedButton>
    <items>
        <SegmentedButtonItem text="Hidden item" visible="false"/>
        <SegmentedButtonItem text="Test"  />
    </items>
</SegmentedButton>

image image

LidiyaGeorgieva commented 7 months ago

Hello @Falke-Design ,

Thank you for sharing this finding. I've created an internal incident DINC0049646. The status of the issue will be updated here in GitHub.

Regards, Lidiya

Todor-ads commented 7 months ago

Hello @Falke-Design, If the usage scenario of the sap.m. SegmentedButton control is for a single button, we recommend using a more appropriate control. https://experience.sap.com/fiori-design-web/button/#usage - Here you can find information and recommendations in different situations which control would be most suitable. We also recommend using a newer theme like Horizon

Regards, Todor