Skip to content

Split data table background color into separate theme variable#4031

Merged
bramkragten merged 3 commits into
home-assistant:devfrom
theaquarium:add-table-themes
Oct 21, 2019
Merged

Split data table background color into separate theme variable#4031
bramkragten merged 3 commits into
home-assistant:devfrom
theaquarium:add-table-themes

Conversation

@theaquarium
Copy link
Copy Markdown
Contributor

This will allow greater theme customization and will match the way colors are set up for other components.

Comment thread src/resources/ha-style.ts Outdated
--ha-paper-slider-pin-font-size: 15px;

/* set data table style */
--mdc-data-table-background-color: var(--card-background-color);
Copy link
Copy Markdown
Member

@iantrich iantrich Oct 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--mdc-data-table-background-color: var(--card-background-color);
--data-table-background-color: var(--card-background-color);


.mdc-data-table {
background-color: var(--card-background-color);
background-color: var(--mdc-data-table-background-color);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
background-color: var(--mdc-data-table-background-color);
background-color: var(--data-table-background-color);

@iantrich
Copy link
Copy Markdown
Member

I don't like that we currently expose paper themes and don't want to get into the habit of exposing it for other proprietary elements. We should be more generic and clear.

@theaquarium
Copy link
Copy Markdown
Contributor Author

Alright, should be good now.

@bramkragten bramkragten merged commit 6d10a5d into home-assistant:dev Oct 21, 2019
@bramkragten bramkragten mentioned this pull request Oct 23, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants