Skip to content

Commit

Permalink
Fix selected tab hover
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Nov 6, 2023
1 parent 74bbbba commit d6ea11d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/theme-css/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@
0 0.125rem var(--pst-color-secondary);
}

/* Selected tab behavior */
[role="tab"][aria-selected="true"] {
color: var(--pst-color-primary);
box-shadow: 0 0.125rem var(--pst-color-primary);
}

[role="tab"][aria-selected="true"]:hover {
color: var(--pst-color-secondary);
box-shadow:
0 -0.125rem var(--pst-color-secondary),
0 0.125rem var(--pst-color-secondary);
}

/* The tab panel is in which the tab contents appear */
[role="tabpanel"] {
border-top: 1px solid var(--pst-color-text-muted);
Expand Down

0 comments on commit d6ea11d

Please sign in to comment.