Skip to content

Commit

Permalink
fix: aria label lint error in strings
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 594166854
  • Loading branch information
codr authored and copybara-github committed Dec 28, 2023
1 parent 8656bf0 commit 7f224dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-icon-button/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {cssClasses, strings} from './constants';
export class MDCIconButtonToggleFoundation extends
MDCFoundation<MDCIconButtonToggleAdapter> {
/**
* 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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7f224dd

Please sign in to comment.