Skip to content

Commit

Permalink
fix(menu): incorrect elevation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 517485685
  • Loading branch information
asyncLiz authored and copybara-github committed Mar 17, 2023
1 parent 618a505 commit 427d33d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion menu/lib/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ $_custom-property-prefix: 'menu';

@function _resolve-tokens($tokens) {
$menu-tokens: _remove-unused-tokens($tokens);
@return elevation.resolve-tokens($menu-tokens, 'elevation-key');
@return elevation.resolve-tokens($menu-tokens, 'container-elevation');
}

// removes unused tokens
Expand Down
4 changes: 3 additions & 1 deletion menu/lib/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@ export abstract class Menu extends LitElement {
* Renders the positionable surface element and its contents.
*/
protected renderSurface() {
// TODO(b/274140618): elevation should be an underlay, not an overlay that
// tints content
return html`
<div
class="menu ${classMap(this.getSurfaceClasses())}"
style=${styleMap(this.menuPositionController.surfaceStyles)}>
${this.renderList()}
${this.renderList()}
${this.renderElevation()}
${this.renderFocusRing()}
</div>
Expand Down

0 comments on commit 427d33d

Please sign in to comment.