Skip to content

Commit

Permalink
fix(material/legacy-button): rename classnames in comments (#25459)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin committed Aug 12, 2022
1 parent 3b87655 commit 5caa44e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/material/legacy-button/button.ts
Expand Up @@ -35,7 +35,7 @@ import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';
const DEFAULT_ROUND_BUTTON_COLOR = 'accent';

/**
* List of classes to add to MatLegacyButton instances based on host attributes to
* List of classes to add to button instances based on host attributes to
* style as different variants.
*/
const BUTTON_HOST_ATTRIBUTES = [
Expand All @@ -48,7 +48,7 @@ const BUTTON_HOST_ATTRIBUTES = [
'mat-fab',
];

// Boilerplate for applying mixins to MatLegacyButton.
// Boilerplate for applying mixins to button.
const _MatButtonBase = mixinColor(
mixinDisabled(
mixinDisableRipple(
Expand Down
4 changes: 2 additions & 2 deletions src/material/legacy-button/testing/button-harness.ts
Expand Up @@ -13,12 +13,12 @@ import {LegacyButtonHarnessFilters} from './button-harness-filters';
/** Harness for interacting with a standard mat-button in tests. */
export class MatLegacyButtonHarness extends ContentContainerComponentHarness {
// TODO(jelbourn) use a single class, like `.mat-button-base`
/** The selector for the host element of a `MatLegacyButton` instance. */
/** The selector for the host element of a button instance. */
static hostSelector = `[mat-button], [mat-raised-button], [mat-flat-button], [mat-icon-button],
[mat-stroked-button], [mat-fab], [mat-mini-fab]`;

/**
* Gets a `HarnessPredicate` that can be used to search for a `MatLegacyButtonHarness` that meets
* Gets a `HarnessPredicate` that can be used to search for a button harness that meets
* certain criteria.
* @param options Options for filtering which button instances are considered a match.
* @return a `HarnessPredicate` configured with the given options.
Expand Down

0 comments on commit 5caa44e

Please sign in to comment.