mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import { MediaElement } from '../media-element';
|
|
|
|
export class ControlsGroupElement extends MediaElement {
|
|
static readonly tagName = 'media-controls-group';
|
|
|
|
override connectedCallback(): void {
|
|
super.connectedCallback();
|
|
|
|
if (this.hasAttribute('aria-label') || this.hasAttribute('aria-labelledby')) {
|
|
this.setAttribute('role', 'group');
|
|
}
|
|
}
|
|
}
|