MCPcopy Create free account
hub / github.com/angular/components / _getPanelAriaLabelledby

Method _getPanelAriaLabelledby

src/material/select/select.ts:1334–1342  ·  view source on GitHub ↗

Gets the aria-labelledby for the select panel.

()

Source from the content-addressed store, hash-verified

1332
1333 /** Gets the aria-labelledby for the select panel. */
1334 _getPanelAriaLabelledby(): string | null {
1335 if (this.ariaLabel) {
1336 return null;
1337 }
1338
1339 const labelId = this._parentFormField?.getLabelId() || null;
1340 const labelExpression = labelId ? labelId + ' ' : '';
1341 return this.ariaLabelledby ? labelExpression + this.ariaLabelledby : labelId;
1342 }
1343
1344 /** Determines the `aria-activedescendant` to be set on the host. */
1345 _getAriaActiveDescendant(): string | null {

Callers

nothing calls this directly

Calls 1

getLabelIdMethod · 0.65

Tested by

no test coverage detected