Skip to content

Commit

Permalink
fix(menu): tonal surface update
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 522244590
  • Loading branch information
asyncLiz authored and copybara-github committed Apr 6, 2023
1 parent f15d8ca commit 7ccc21e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
1 change: 0 additions & 1 deletion list/lib/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
@use 'sass:string';
// go/keep-sorted end
// go/keep-sorted start
@use '../../elevation/lib/elevation';
@use '../../sass/theme';
@use '../../tokens';
@use './listitem/list-item';
Expand Down
9 changes: 4 additions & 5 deletions menu/lib/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,20 @@ $_custom-property-prefix: 'menu';

@include md-list.theme(
(
list-item-container-color: var(--_container-color),
'list-item-container-color': var(--_container-color),
)
);

@include elevation.theme(
(
level: var(--_container-elevation),
shadow-color: var(--_container-shadow-color),
surface-tint: var(--_container-surface-tint-layer-color),
'level': var(--_container-elevation),
'shadow-color': var(--_container-shadow-color),
)
);

@include focus-ring.theme(
(
shape: var(--_container-shape),
'shape': var(--_container-shape),
)
);

Expand Down
4 changes: 2 additions & 2 deletions menu/lib/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// tslint:disable:no-new-decorators
import '../../list/list.js';
import '../../focus/focus-ring.js';
import '../../elevation/elevation-surface.js';
import '../../elevation/elevation.js';

import {html, isServer, LitElement} from 'lit';
import {eventOptions, property, query, state} from 'lit/decorators.js';
Expand Down Expand Up @@ -297,7 +297,7 @@ export abstract class Menu extends LitElement {
* Renders the elevation component.
*/
protected renderElevation() {
return html`<md-elevation-surface shadow></md-elevation-surface>`;
return html`<md-elevation></md-elevation>`;
}

/**
Expand Down
5 changes: 2 additions & 3 deletions tokens/_md-comp-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
@use './md-sys-state';
@use './md-sys-typescale';
// TODO(b/272526637): tonal surface update
@use './v0_161/md-comp-list';
@use './v0_161/md-sys-color';
@use './v0_172/md-comp-list';
// go/keep-sorted end

$_default: (
Expand Down
5 changes: 2 additions & 3 deletions tokens/_md-comp-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
//

// go/keep-sorted start
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
// TODO(b/272526637): tonal surface update
@use './v0_161/md-comp-menu';
@use './v0_161/md-sys-color';
@use './v0_172/md-comp-menu';
// go/keep-sorted end

$_default: (
Expand Down

0 comments on commit 7ccc21e

Please sign in to comment.