Skip to content

Commit

Permalink
kaw-8233: active styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioana Iordache committed Oct 30, 2024
1 parent 060cc03 commit d90985b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ header.transparent nav[aria-expanded="true"] .nav-link-section a:any-link:where(
color: var(--action-default);
}

header.transparent nav[aria-expanded="true"] .nav-link-section a:any-link:hover,
header.transparent nav[aria-expanded="true"] .nav-link-section a.nav-drop-text:hover {
color: var(--action-default);
}

@media (width >= 768px) {
header nav {
padding: 20px 30px 16px 24px;
Expand Down Expand Up @@ -449,11 +454,11 @@ header.transparent nav[aria-expanded="true"] .nav-link-section a:any-link:where(
color: var(--action-default);
}

header li:not(nav-drop):has(a.active) {
header li:not(.nav-drop):has(a.active) {
position: relative;
}

header li:not(nav-drop):has(a.active)::after {
header .default-content-wrapper>ul>:has(a.active)::after {
content: "";
display: block;
width: 100%;
Expand All @@ -463,15 +468,19 @@ header.transparent nav[aria-expanded="true"] .nav-link-section a:any-link:where(
background: var(--black);
}

header li:not(nav-drop):has(a:hover.active)::after {
background-color: var(--action-default);
header.transparent .default-content-wrapper>ul>:has(a.active)::after {
background: var(--white);
}

header.transparent li:not(nav-drop):has(a.active)::after {
header.transparent div:not(.nav-sublist) li:not(.nav-drop):has(a.active)::after {
background: var(--white);
}

header.transparent li:not(nav-drop):has(a:hover.active)::after {
header div:not(.nav-sublist) li:not(.nav-drop):has(a:hover.active)::after {
background-color: var(--action-default);
}

header.transparent div:not(.nav-sublist) li:not(.nav-drop):has(a:hover.active)::after {
background: var(--action-default);
}

Expand Down

0 comments on commit d90985b

Please sign in to comment.