Skip to content

Table styling Cell overrides Selected #1524

@Roman-Weisman

Description

@Roman-Weisman

Describe the bug
Unable to style Cell in a table + styling it, ignored Selected.

Setup
Please complete the following information along with version numbers, if applicable.

  • OS [Omarchy]
  • Shell [bash]
  • Terminal Emulator [Alacritty]
  • Terminal Multiplexer [N/A]

To Reproduce
Steps to reproduce the behavior:
Create a table and restyle the Cell, then Selected is ignored/overridden.

Source Code
s := table.DefaultStyles()
s.Header = s.Header.Foreground(lipgloss.Color("8"))
s.Cell = s.Cell.Foreground(lipgloss.Color("2"))
s.Selected = s.Selected.Foreground(lipgloss.Color("4"))

Expected behavior
Styling cell should not override Selected.

Screenshots
With Cell:
Image

Without Cell:
Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions