fix(table): removed inheritance for selected foreground (#300)

This commit is contained in:
Mikael Fangel 2023-03-09 18:35:06 +01:00 committed by GitHub
parent 1267b7a78e
commit 2bda001480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ func (o Options) Run() error {
styles := table.Styles{
Cell: defaultStyles.Cell.Inherit(o.CellStyle.ToLipgloss()),
Header: defaultStyles.Header.Inherit(o.HeaderStyle.ToLipgloss()),
Selected: defaultStyles.Selected.Inherit(o.SelectedStyle.ToLipgloss()),
Selected: o.SelectedStyle.ToLipgloss(),
}
var rows = make([]table.Row, 0, len(data))