[Dialog]: Too much Padding of text
Bug Description
In the SAP Design System, the padding of a text within a dialog is defined like that:
and in UI5 it is implemented the same:
but in web components it's too much padding and the text seems vertically aligned instead of aligned from top with padding:
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.
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
Note: sample issue. The default margin of the <p> should be removed.
This issue has been closed. To reopen, just leave a comment!