Skip to content

Commit 5caa44e

Browse files
authored
fix(material/legacy-button): rename classnames in comments (#25459)
1 parent 3b87655 commit 5caa44e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/material/legacy-button/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';
3535
const DEFAULT_ROUND_BUTTON_COLOR = 'accent';
3636

3737
/**
38-
* List of classes to add to MatLegacyButton instances based on host attributes to
38+
* List of classes to add to button instances based on host attributes to
3939
* style as different variants.
4040
*/
4141
const BUTTON_HOST_ATTRIBUTES = [
@@ -48,7 +48,7 @@ const BUTTON_HOST_ATTRIBUTES = [
4848
'mat-fab',
4949
];
5050

51-
// Boilerplate for applying mixins to MatLegacyButton.
51+
// Boilerplate for applying mixins to button.
5252
const _MatButtonBase = mixinColor(
5353
mixinDisabled(
5454
mixinDisableRipple(

src/material/legacy-button/testing/button-harness.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import {LegacyButtonHarnessFilters} from './button-harness-filters';
1313
/** Harness for interacting with a standard mat-button in tests. */
1414
export class MatLegacyButtonHarness extends ContentContainerComponentHarness {
1515
// TODO(jelbourn) use a single class, like `.mat-button-base`
16-
/** The selector for the host element of a `MatLegacyButton` instance. */
16+
/** The selector for the host element of a button instance. */
1717
static hostSelector = `[mat-button], [mat-raised-button], [mat-flat-button], [mat-icon-button],
1818
[mat-stroked-button], [mat-fab], [mat-mini-fab]`;
1919

2020
/**
21-
* Gets a `HarnessPredicate` that can be used to search for a `MatLegacyButtonHarness` that meets
21+
* Gets a `HarnessPredicate` that can be used to search for a button harness that meets
2222
* certain criteria.
2323
* @param options Options for filtering which button instances are considered a match.
2424
* @return a `HarnessPredicate` configured with the given options.

0 commit comments

Comments
 (0)