@rhds/elements
Version:
Red Hat Design System Elements
43 lines (36 loc) • 1.26 kB
CSS
rh-subnav {
& rh-navigation-link:focus-visible:after,
& rh-navigation-link:has(a:focus-visible):after {
border-block-end-color: var(--rh-color-border-subtle) ;
}
& rh-navigation-link:focus-within:after {
border-block-end-color: var(--rh-color-border-subtle) ;
}
& rh-navigation-link:active:after {
border-block-end-color: var(--rh-color-brand-red) ;
}
/* This will move to the shim file in the future */
&:not(:defined) {
block-size: 56px;
display: flex;
background-color: var(--rh-color-surface);
& a {
display: block ;
white-space: nowrap ;
padding: var(--rh-space-lg, 16px) var(--rh-space-2xl, 32px) ;
text-decoration: none ;
color: var(--rh-color-text-secondary) ;
position: relative ;
&:after {
content: '' ;
position: absolute ;
inset: 0 ;
inline-size: 100% ;
border-block-end: var(--rh-border-width-lg, 3px) solid transparent ;
}
&:is([active], [aria-current='page']):after {
border-block-end-color: var(--rh-color-accent-brand) ;
}
}
}
}