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(material/sort): inconsistency of text alignment in column header #27494

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

r0m4n
Copy link

@r0m4n r0m4n commented Jul 21, 2023

When text breaks onto multiple lines in a mat-table column header, the text-align:centerstyle
creates an inconsistency in the way the text is aligned vs other column headers. This issue
only occurs on sortable columns. It appears left aligned in all other scenarios because of how
the containers are nested.
A sample screenshot of the inconsistency:
5nmnRg6wns2hdXf
Live example of the inconsistency:
https://stackblitz.com/edit/cdpzsf?file=src%2Fexample%2Ftable-basic-example.html

@r0m4n r0m4n requested a review from andrewseguin as a code owner July 21, 2023 21:26
@andrewseguin andrewseguin added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Aug 5, 2023
@andrewseguin andrewseguin self-assigned this Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants