Teradata / covalent

Teradata UI Platform built on Angular Material
https://teradata.github.io/covalent/
MIT License
2.23k stars 358 forks source link

fix(components): style fix for nav item when active #2207

Closed owilliams320 closed 1 month ago

owilliams320 commented 1 month ago

Description

Adjustment to expand/collapse nav item when its sub nav is active. Consumer will have to apply this styling and use hasActivatedChild property on the nav item when it's subnav item is activated.

 [hasActivatedChild] {
      --cv-list-item-background-color: var(--cv-theme-primary-24);
      --cv-theme-on-surface: var(--cv-theme-primary);
    }

    cv-app-shell[open] cv-nav-list-item[hasActivatedChild]:not([subNav]) {
      --cv-list-item-background-color:var(--cv-theme-on-surface-variant-8);
      --cv-theme-on-surface: var(--cv-theme-on-surface-variant);
      --cv-list-item-text-color: var(--cv-theme-on-surface-variant);
    }

What's included?

Test Steps

General Tests for Every PR

Screenshots or link to StackBlitz/Plunker

![Uploading Screenshot 2024-07-29 at 9.21.21 AM.png…]()

owilliams320 commented 1 month ago

:tada: This PR is included in version 8.16.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: