Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dialog]: Buttons leave too much spacing on the right #7354

Closed
1 task done
mhchem opened this issue Jul 19, 2023 · 9 comments
Closed
1 task done

[Dialog]: Buttons leave too much spacing on the right #7354

mhchem opened this issue Jul 19, 2023 · 9 comments
Labels
bug This issue is a bug in the code Low Prio

Comments

@mhchem
Copy link

mhchem commented Jul 19, 2023

Describe the bug

Buttons leave too much spacing on the right. There should be 1rem, not 2 (in this size).

image

https://sap.github.io/ui5-webcomponents-react/?path=/docs/modals-popovers-dialog--docs

UI5 Web Components for React Version

latest

UI5 Web Components Version

latest

Browser

Chrome

Declaration

  • I’m not disclosing any internal or sensitive information.
@mhchem mhchem added the bug This issue is a bug in the code label Jul 19, 2023
@Lukas742
Copy link
Collaborator

Hi @mhchem

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,

the dialog in our example is implemented as shown in this codeSandbox example.

@Lukas742 Lukas742 transferred this issue from SAP/ui5-webcomponents-react Jul 19, 2023
@didip1000
Copy link
Contributor

Hello @SAP/ui5-webcomponents-topic-rd,

Can you look into this? It seems like the dialog footer and the bar in the slot are applying their own seperate padding.

Thanks,
Diana

@LidiyaGeorgieva LidiyaGeorgieva self-assigned this Jul 20, 2023
@LidiyaGeorgieva
Copy link
Contributor

@Lukas742 ,

When ui5-bar is used inside ui5-dialog there is need of additional styling from your side.
This is mentioned in this example (see the content of the dialog):
https://sap.github.io/ui5-webcomponents/nightly/playground/?path=/story/main-dialog--bar-in-dialog
It took me some time to find it, so there is need to be documented better. I will make one pull request for that.

Please add to your sample similar code to this and this will solve the issue:
#dialog::part(footer) {
padding-inline: 0;
}

Best Regards,
Lidiya

@Lukas742
Copy link
Collaborator

Hi @LidiyaGeorgieva

wouldn't this cause discrepancies with the responsive padding of the content and the header of the dialog?
The inline start and end padding of the bar container is always 0.75rem, while the responsive padding of the dialog is 3rem when rendered in XL mode, for example.

@LidiyaGeorgieva
Copy link
Contributor

Hi @Lukas742 ,

Yes, the responsive paddings are not still implemented for the ui5-bar, but sooner or later will be.

Best Regards,
Lidiya

@Lukas742
Copy link
Collaborator

Ok, we will adjust our examples then. Thanks :)

@LidiyaGeorgieva
Copy link
Contributor

@Lukas742 I created a Feature Request for the responsive paddings for the ui5-bar: #7359

@LidiyaGeorgieva
Copy link
Contributor

@Lukas742 I have merged my pull request. Could you please move this issue to your project "SAP/ui5-webcomponents-react"

@LidiyaGeorgieva LidiyaGeorgieva removed their assignment Jul 24, 2023
Lukas742 added a commit to SAP/ui5-webcomponents-react that referenced this issue Jul 31, 2023
@LidiyaGeorgieva
Copy link
Contributor

LidiyaGeorgieva commented Aug 11, 2023

Hello @mhchem ,

It looks like the sample is corrected.
I'm closing the issue.

Best Regards,
Lidiya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code Low Prio
Projects
None yet
Development

No branches or pull requests

4 participants