umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.43k stars 2.67k forks source link

Save button has border radius on one side #16362

Closed poornimanayar closed 2 months ago

poornimanayar commented 4 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

14 RC4

Bug summary

I dont know whether this is by design but the "Save" button in doc types have a bottom and top left border-radius but not on the right

image

Specifics

No response

Steps to reproduce

As above

Expected result / actual result

No response

github-actions[bot] commented 4 months ago

Hi there @poornimanayar!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

JoJk0 commented 4 months ago

image

Can confirm, it's more visible if CSS vars for corner radii is customized to be bigger.

image

leekelleher commented 4 months ago

@iOvergaard I think this may be an underlying issue with UUI library's <uui-button-group> component? https://uui.umbraco.com/?path=/docs/uui-button-group--docs

iOvergaard commented 2 months ago

Well, @leekelleher, this happens because the button group targets all elements regardless if they are buttons or not.

If you look at the DOM, you will see the host element for the little popup menu being present, and that it, in fact, gets the missing border radii attached, but since it is not a visible element if there are no items attached, it doesn't show the borders.

image

The solution is to either hide the element in the Backoffice, if there are no sub-menu-actions, or to ensure that UUI only targets "buttons", but I would be sorry to have to guess what constitutes a button.

We will have to look more into it.