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

Button text is centered on left- and right-aligned EuiCards #2740

Closed
ryankeairns opened this issue Jan 7, 2020 · 0 comments · Fixed by #2741
Closed

Button text is centered on left- and right-aligned EuiCards #2740

ryankeairns opened this issue Jan 7, 2020 · 0 comments · Fixed by #2741
Assignees
Labels

Comments

@ryankeairns
Copy link
Contributor

ryankeairns commented Jan 7, 2020

When an entire card is clickable (i.e. has an onClick set) and textAlign: left is set, a long title becomes centered when it wraps to a second line.

Edit: the text inside the button is always centered, it's just not noticebale until the button hits the max-width of the card content container.

Screenshot 2020-01-07 14 16 19

@ryankeairns ryankeairns added the bug label Jan 7, 2020
@ryankeairns ryankeairns self-assigned this Jan 7, 2020
@ryankeairns ryankeairns changed the title Left-aligned EuiCard text can become centered Button text is centered on left- and right-aligned EuiCards Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant