From 5743f59608fa537862ddbc76201c609af024f6ea Mon Sep 17 00:00:00 2001 From: Cody Coljee-Gray Date: Tue, 26 Dec 2023 10:28:23 -0800 Subject: [PATCH] fix: `aria label` lint error in strings PiperOrigin-RevId: 593817001 --- packages/mdc-icon-button/foundation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mdc-icon-button/foundation.ts b/packages/mdc-icon-button/foundation.ts index 141718d4a89..d4e9524cc5f 100644 --- a/packages/mdc-icon-button/foundation.ts +++ b/packages/mdc-icon-button/foundation.ts @@ -30,7 +30,7 @@ import {cssClasses, strings} from './constants'; export class MDCIconButtonToggleFoundation extends MDCFoundation { /** - * Whether the icon button has an aria label that changes depending on + * Whether the icon button has an aria-label that changes depending on * toggled state. */ private hasToggledAriaLabel = false; @@ -65,7 +65,7 @@ export class MDCIconButtonToggleFoundation extends if (this.adapter.getAttr(strings.ARIA_PRESSED) !== null) { throw new Error( 'MDCIconButtonToggleFoundation: Button should not set ' + - '`aria-pressed` if it has a toggled aria label.'); + '`aria-pressed` if it has a toggled ARIA label.'); } this.hasToggledAriaLabel = true;