Skip to content

fix: use correct styles for table header cells (th) vs data cells (td) #37

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

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

Conversation

Astatine-213-Tian
Copy link

@Astatine-213-Tian Astatine-213-Tian commented Jul 8, 2025

Previously, both ⁠<th> (header) and ⁠<td> (data) table cells were rendered using ⁠finalStyles.td, which meant header cell styles were ignored.
This PR updates the table cell renderer to check if the cell is a header or data cell, and applies the correct styles:

  • Header cells (⁠<th>) now use ⁠finalStyles.th
  • Data cells (⁠<td>) use ⁠finalStyles.td

This ensures that custom header styles are properly applied and not overridden by data cell styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant