Skip to content

Commit

Permalink
fix(dialog): tonal surface update
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 522236327
  • Loading branch information
asyncLiz authored and copybara-github committed Apr 6, 2023
1 parent 60ef2ab commit c64f416
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions dialog/lib/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@
padding-block-end: var(--_container-block-padding);
}

md-elevation-surface {
md-elevation {
@include elevation.theme(
(
level: var(--_container-elevation),
surface-tint: var(--_container-surface-tint-layer-color),
'level': var(--_container-elevation),
)
);
}
Expand Down
4 changes: 2 additions & 2 deletions dialog/lib/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import '../../elevation/elevation-surface.js';
import '../../elevation/elevation.js';

import {html, LitElement, PropertyValues} from 'lit';
import {property, query, state} from 'lit/decorators.js';
Expand Down Expand Up @@ -275,7 +275,7 @@ export class Dialog extends LitElement {
@pointermove=${this.handlePointerMove}
@pointerup=${this.handleDragEnd}
>
<md-elevation-surface></md-elevation-surface>
<md-elevation></md-elevation>
<header class="header">
<slot name="header">
<slot name="headline-prefix"></slot>
Expand Down
5 changes: 2 additions & 3 deletions tokens/_md-comp-dialog.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-dialog';
@use './v0_161/md-sys-color';
@use './v0_172/md-comp-dialog';
// go/keep-sorted end

$_default: (
Expand Down

0 comments on commit c64f416

Please sign in to comment.