Repository navigation
fix(table): stop centering unaligned headers - #1670
Merged
Merged
Conversation
Contributor
[Low impact] The reviewed changes appear safe to merge. Reviews (2) · Last reviewed commit: "test: update table of contents snapshot" · Reviewed by Greptile |
greptile-apps
Bot
dismissed
their stale review
November 3, 2026 04:11
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
runnabro
approved these changes
Nov 3, 2026
eaglethrost
approved these changes
Nov 4, 2026
rafegoldberg
pushed a commit
that referenced
this pull request
Nov 9, 2026
## Version 16.2.1 ### 🛠 Fixes & Updates * address flagged CodeQL alerts ([#1682](#1682)) ([3b14a86](3b14a86)) * move lint and format to oxlint and oxfmt ([#1680](#1680)) ([85c915b](85c915b)) * **deps:** patch Dependabot security vulnerabilities ([#1679](#1679)) ([bfc9c1b](bfc9c1b)) * pulling dependabot updates back a bit ([a9906c3](a9906c3)) * **mdxish:** space callouts under tight list items ([#1671](#1671)) ([f21e0d8](f21e0d8)) * **table:** stop centering unaligned headers ([#1670](#1670)) ([139d238](139d238)) * **deps-dev:** upgrade vitest to v5 ([#1681](#1681)) ([0946e08](0946e08)) <!--SKIP CI-->
Collaborator
This PR was released!🚀 Changes included in v16.2.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🎯 What does this PR do?
Problem
A table header with no alignment renders centered or left depending on what wraps the table, so the same markdown looks different across surfaces
Root Cause
Browsers center
thby default and only follow an alignment set on a parent element. Hub doc pages wrap the article in a.Flexwithtext-align: left, so headers come out left there and centered anywhere without one.components/Table/style.scssnever set itFix
thnow usestext-align: inherit, so it lines up with the body cells under any wrapper:---:,---:) renders as an inline style on the cell, so it still winsPairs with the readme PR that drops the editor's
thcentering. Either can merge first🧪 QA tips
| --- |separator outside a hub page: headers line up with the body cells instead of centering:---:and---:: those columns stay centered and right-alignedmake updateSnapshot: only the unaligned headers in thetablessnapshots move from center to left📸 Screenshot or Loom