Skip to content

Conversation

crisbeto
Copy link
Member

The "no data" row in the table goes through a different creation flow than the regular table rows which means that it can't get its CSS classes and ends up being unstyled.

These changes add some logic to apply the appropriate classes.

Fixes #22349.

@crisbeto crisbeto requested a review from a team as a code owner September 19, 2025 08:43
@crisbeto crisbeto requested review from tjshiu and ok7sai and removed request for a team September 19, 2025 08:43
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Sep 19, 2025
@crisbeto crisbeto force-pushed the 22349/no-data-row-styling branch from 5d95650 to 34c5958 Compare September 19, 2025 13:48
The "no data" row in the table goes through a different creation flow than the regular table rows which means that it can't get its CSS classes and ends up being unstyled.

These changes add some logic to apply the appropriate classes.

Fixes angular#22349.
@crisbeto crisbeto force-pushed the 22349/no-data-row-styling branch from 34c5958 to 2d1403b Compare September 20, 2025 07:40
@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Sep 22, 2025
@crisbeto crisbeto removed the request for review from tjshiu September 22, 2025 14:57
@crisbeto crisbeto merged commit b6d8193 into angular:main Sep 22, 2025
25 checks passed
@crisbeto
Copy link
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

crisbeto added a commit that referenced this pull request Sep 22, 2025
The "no data" row in the table goes through a different creation flow than the regular table rows which means that it can't get its CSS classes and ends up being unstyled.

These changes add some logic to apply the appropriate classes.

Fixes #22349.

(cherry picked from commit b6d8193)
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 area: material/table target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(MatTable): *matNoDataRow not properly styling in flex mode
3 participants