Skip to content

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