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

[BUG] "header_style" parameter take no effect on "headers" in the "Table(*headers, header_style)" #953

Closed
luizyao opened this issue Jan 22, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@luizyao
Copy link
Contributor

luizyao commented Jan 22, 2021

To Reproduce

from rich.console import Console
from rich.table import Table

console = Console()

table = Table("DATE", "NAME", header_style="bold red")
table.add_column("AGE")

console.log(table)

image

Platform
Iterm2 on Mac Big Sur

@willmcgugan willmcgugan added bug Something isn't working and removed Needs triage labels Jan 22, 2021
@willmcgugan
Copy link
Collaborator

Thanks, please try v9.9.0

@luizyao
Copy link
Contributor Author

luizyao commented Jan 23, 2021

@willmcgugan

I have tested on v9.9.0, but i think there is another scenario:the initial header is a dafault-header-style Column object.

Table("DATE", Column(header="NAME"), header_style="bold red")

image

In this case, the "header_style" parameter should be take effect for it too, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants