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(table): update StyleFunc to apply header style correctly #846

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

Conversation

semihbkgr
Copy link

The StyleFunc in the Lipgloss table now correctly returns the header style only when the row is equal to HeaderRow (-1). Previously, it applied the header style when the row was 0, which actually corresponds to the first row of the table, not the header.

The behavior of the StyleFunc in Lipgloss table has changed as outlined in this PR: charmbracelet/lipgloss#377

Fixes #833

Changes

  • Updated StyleFunc to apply the header style only when the row is equal to HeaderRow (-1), instead of 0.

The StyleFunc in the Lipgloss table now correctly returns the header style only when the row is equal to HeaderRow (-1). Previously, it applied the header style when the row was 0, which actually corresponds to the first row of the table, not the header.
@semihbkgr semihbkgr requested a review from a team as a code owner February 5, 2025 22:24
@semihbkgr semihbkgr requested review from andreynering and removed request for a team February 5, 2025 22:24
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.

gum table --header.foreground colors the 1st data-line, not the actual header
1 participant