obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Bug report: Avoid using !important for hover state

Open kepano opened this issue 3 years ago • 1 comments

What happened?

Dataview uses !important to highlight active rows. This can cause conflicts for some themes.

.table-view-table > tbody > tr:hover {
    background-color: var(--text-selection) !important;
}

Note that in Obsidian 0.16 there is now a variable --table-row-background-hover that can be used to set this property

DQL

No response

JS

No response

Dataview Version

0.5.46

Obsidian Version

0.16.2

OS

MacOS

kepano avatar Sep 13 '22 15:09 kepano

I see - I think I made this change in the first place due to theme conflicts, since the theme tends to win over plugin code.

blacksmithgu avatar Sep 14 '22 19:09 blacksmithgu