mirror of
https://github.com/material-components/material-web.git
synced 2024-09-17 16:48:02 +03:00
2295f12e71
PiperOrigin-RevId: 562075778
24 lines
520 B
TypeScript
24 lines
520 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {html, LitElement} from 'lit';
|
|
|
|
/**
|
|
* A component for elevation.
|
|
*/
|
|
export class Elevation extends LitElement {
|
|
override connectedCallback() {
|
|
super.connectedCallback();
|
|
// Needed for VoiceOver, which will create a "group" if the element is a
|
|
// sibling to other content.
|
|
this.setAttribute('aria-hidden', 'true');
|
|
}
|
|
|
|
protected override render() {
|
|
return html`<span class="shadow"></span>`;
|
|
}
|
|
}
|