Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/legacy-button): rename classnames in comments #25459

Merged
merged 1 commit into from Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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