-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
button-styles.ts
41 lines (36 loc) · 1.18 KB
/
button-styles.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ClassNameChange, StyleMigrator} from '../../style-migrator';
export class ButtonStylesMigrator extends StyleMigrator {
component = 'button';
deprecatedPrefixes = ['mat-button'];
mixinChanges = [
{
old: 'button-theme',
new: [
'mdc-button-theme',
'mdc-button-typography',
'mdc-fab-theme',
'mdc-fab-typography',
'mdc-icon-button-theme',
'mdc-icon-button-typography',
],
checkForDuplicates: true,
},
];
classChanges: ClassNameChange[] = [
{old: '.mat-button-base', new: '.mat-mdc-button-base'},
{old: '.mat-button', new: '.mat-mdc-button'},
{old: '.mat-raised-button', new: '.mat-mdc-raised-button'},
{old: '.mat-icon-button', new: '.mat-mdc-icon-button'},
{old: '.mat-fab', new: '.mat-mdc-fab'},
{old: '.mat-mini-fab', new: '.mat-mdc-mini-fab'},
{old: '.mat-stroked-button', new: '.mat-mdc-outlined-button'},
{old: '.mat-flat-button', new: '.mat-mdc-flat-button'},
];
}