ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Dialog]: Too much Padding of text

Open katapp opened this issue 10 months ago • 3 comments

Bug Description

In the SAP Design System, the padding of a text within a dialog is defined like that: Image and in UI5 it is implemented the same: Image

but in web components it's too much padding and the text seems vertically aligned instead of aligned from top with padding: Image For me it seems that there is a definition of a padding of the div AND a margin of the p-tag. I think the margin of the p-Tag is too much.

It would be good if web components would have the same style as defined in SAP Design system and UI5.

Thank you for checking, Kathrin

Affected Component

Dialog

Expected Behaviour

The text within the web components dialog should have the same padding as UI5 dialog.

Isolated Example

No response

Steps to Reproduce

see screenshots

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

1.143.2 (Latest)

Browser

Chrome

Operating System

Mac OS

Additional Context

No response

Organization

PE

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

katapp avatar Jan 08 '26 10:01 katapp

Hello @UI5/ui5-team-ctr-rod,

Could you please take a look at the ui5-dialog samples? Currently, because <p> has a default 16px margin, the space between the text and the bar becomes 32px (16px <p> margin + 16px padding), instead of only the intended 16px padding.

Regards, Stefan

StefanDimitrov04 avatar Jan 08 '26 11:01 StefanDimitrov04

Note: sample issue. The default margin of the <p> should be removed.

LidiyaGeorgieva avatar Jan 19 '26 11:01 LidiyaGeorgieva

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Jan 29 '26 09:01 github-actions[bot]