material-web/elevation/internal/elevation.ts
Elizabeth Mitchell 2295f12e71 fix: add aria-hidden="true" to ripple, focus ring, and elevation
PiperOrigin-RevId: 562075778
2023-09-01 16:33:32 -07:00

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>`;
}
}