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

fix EmptyButton text line-height #1490

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ruanyl
Copy link
Member

@ruanyl ruanyl commented Feb 13, 2025

Removed line-height: inherit introduced by #1342 and use display: flex to fix the original issue. I believe the button line-height should not inherit as it will inherit the line-height of its parent which may result in unexpected behavior, see issue and comments in #1486

With this commit, it also fixed the issue described in #1486

Description

Before

image image

After

image image

Issues Resolved

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • All tests pass
    • yarn lint
    • yarn test-unit
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Removed `line-height: inherit` introduced by opensearch-project#1342 and use `display:
flex` to fix the original issue.

With this commit, it also fixed the issue described in opensearch-project#1486

Signed-off-by: Yulong Ruan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant