-
Notifications
You must be signed in to change notification settings - Fork 273
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
Incorrect vertical alignment of text inside <ui5-button /> component #3401
Comments
Hello @SAP/ui5-webcomponents-topic-b we have to ensure that the ilhan |
Hello @pavelkornev , I've opened the example but i see the expected behavior. Can you please check the example, and if we have to add something to reproduce the issue, please update us. Thanks and Best Regards, |
Hi @pavelkornev I re-checked the codesanbox example above (thanks for providing one) These are snapshots from your code sandbox example without line-height and with 48px line-height, but could not see a difference in the Button's alignment no line-heightwith 48px line-height |
Hi, Top button: has a problem - text is positioned one 1px up. |
Bug Description
If page has a custom
![Screenshot 2021-06-06 at 01 30 55](https://user-images.githubusercontent.com/748043/120908034-e2dc8a00-c666-11eb-8dee-7ab78991c871.png)
line-height
style and<ui5-button/>
component is used among some text nodes, the text inside the button implicitly affected and leads to misalignment vertically (jumps 1-2 pixels up):Expected Behavior
Outside styles should not affect rendering of inner nodes of button component:
![Screenshot 2021-06-06 at 01 32 53](https://user-images.githubusercontent.com/748043/120908074-318a2400-c667-11eb-8d3c-d4af2b23d587.png)
Proposed solution
Add
line-height
property for button component, e.g.:In our opinion, this property should be included in the implementation of this component rather than in the application code.
Steps to Reproduce
See example below.
Isolated Example
https://codesandbox.io/s/ui5-webcomponents-forked-j0spo?file=/index.html
Context
<ui5-button />
Priority
Stakeholder Info (if applicable)
The text was updated successfully, but these errors were encountered: