bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

fix(table): Selected row styling not applying to cells.

Open MuhamedUsman opened this issue 10 months ago • 0 comments

Selected row styling not applying to individual cells.

  • Fixes #729
  • Now applies selected row styling to the individual cells.
  • Individual cells now inherit necessary selected row styles.
s := table.DefaultStyles()
	s.Header = s.Header.
		BorderStyle(lipgloss.NormalBorder()).
		BorderForeground(lipgloss.Color("240")).
		BorderBottom(true).
		Bold(false)
	s.Selected = s.Selected.
		Foreground(lipgloss.Color("229")).
		Background(lipgloss.Color("57")).
		Bold(true).
		Italic(true).
		Underline(true)
	s.Cell = s.Cell.
		Foreground(lipgloss.Color("57"))
	t.SetStyles(s)

Before: Before After: Before

You can experiment further...

MuhamedUsman avatar Apr 09 '25 04:04 MuhamedUsman