Skip to content

Commit

Permalink
fix(components): nav styling updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 8, 2023
1 parent f32e845 commit 862acaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
31 changes: 12 additions & 19 deletions libs/components/src/list/nav-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@
font-weight: 600;
line-height: var(--mdc-typography-body2-line-height);
text-align: left;
border-radius: var(--cv-list-item-border-radius, 28px);
transition: border-radius 100ms ease-out;
width: var(--cv-list-item-width, 100%);
}

::slotted(.section-selector) {
display: none;
}

:host([navopen]) {
border-radius: 0 28px 28px 0;
transition: border-radius 100ms ease-out;
margin-right: 16px;

::slotted(.section-selector) {
display: block;
position: absolute;
top: 0;
right: 0;
}
position: absolute;
top: 0;
right: 0;
}

:host([activated]) {
Expand All @@ -29,12 +22,12 @@
}
}

:host([graphic='avatar']:not([navopen])) {
border-radius: 100%;
margin: 0 0 0 12px;
:host([graphic="avatar"]) .mdc-deprecated-list-item__graphic {
margin-left: var(--cv-list-item-graphic-margin-left, 12px);
}

:host([graphic='avatar']) {
padding: 0;
width: 48px;
height: 48px;

::slotted(cv-icon[slot='graphic']) {
margin-left: 8px;
Expand Down Expand Up @@ -62,7 +55,7 @@
border-radius: 0;
}

:host(.beta-list-item:not([navopen])) {
:host(.beta-list-item) {
--mdc-list-item-graphic-margin: 0;
--mdc-typography-subtitle1-font-size: 0;
--mdc-typography-body2-font-size: 0;
Expand Down
2 changes: 1 addition & 1 deletion libs/components/src/list/nav-list-item.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css, unsafeCSS } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { customElement } from 'lit/decorators.js';
import { CovalentListItem } from './list-item';
import { styles as controlStyle } from '@material/mwc-list/mwc-control-list-item.css';
import { styles as listItemStyle } from '@material/mwc-list/mwc-list-item.css';
Expand Down

0 comments on commit 862acaa

Please sign in to comment.