Skip to content

Commit 2d39afa

Browse files
Patricio AlbizuPatricio Albizu
authored andcommitted
feat: changing style name
1 parent 8afd2df commit 2d39afa

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

projects/components/src/button/button.component.scss

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
@include button-style($blue-5, $blue-4, white, white);
5757
}
5858

59-
&.primary-reversed {
60-
@include button-style($blue-1, $blue-2, $blue-4, $blue-4);
61-
}
62-
6359
&.secondary {
6460
@include button-style($gray-7, $gray-5, white, white);
6561
}
@@ -68,6 +64,10 @@
6864
@include button-style($gray-1, $gray-2, $gray-7, $gray-7);
6965
}
7066

67+
&.quaternary {
68+
@include button-style($blue-1, $blue-2, $blue-4, $blue-4);
69+
}
70+
7171
&.destructive {
7272
@include button-style($red-5, $red-7, white, white);
7373
}
@@ -82,10 +82,6 @@
8282
@include button-style(inherit, $blue-1, $gray-7, $gray-7, $blue-5);
8383
}
8484

85-
&.primary-reversed {
86-
@include button-style(inherit, $blue-2, $gray-7, $gray-7, $blue-1);
87-
}
88-
8985
&.secondary {
9086
@include button-style(inherit, $gray-1, $gray-7, $gray-7, $gray-7);
9187
}
@@ -94,6 +90,10 @@
9490
@include button-style(inherit, $gray-1, $gray-7, $gray-7, $gray-2);
9591
}
9692

93+
&.quaternary {
94+
@include button-style(inherit, $blue-2, $gray-7, $gray-7, $blue-1);
95+
}
96+
9797
&.destructive {
9898
@include button-style(inherit, $red-1, $gray-7, $gray-7, $red-5);
9999
}
@@ -108,10 +108,6 @@
108108
@include button-style(inherit, $blue-1, $blue-5, $blue-5);
109109
}
110110

111-
&.primary-reversed {
112-
@include button-style(inherit, $blue-2, $gray-7, $gray-7);
113-
}
114-
115111
&.secondary {
116112
@include button-style(inherit, $gray-1, $gray-7, $gray-7);
117113
}
@@ -120,6 +116,10 @@
120116
@include button-style(inherit, $gray-1, $gray-5, $gray-5);
121117
}
122118

119+
&.quaternary {
120+
@include button-style(inherit, $blue-2, $gray-7, $gray-7);
121+
}
122+
123123
&.destructive {
124124
@include button-style(inherit, $red-1, $red-5, $red-5);
125125
}
@@ -147,6 +147,10 @@
147147
@include button-style(inherit, inherit, $gray-5, $gray-6);
148148
}
149149

150+
&.quaternary {
151+
@include button-style(inherit, $blue-2, $gray-7, $gray-7);
152+
}
153+
150154
&.destructive {
151155
@include button-style(inherit, inherit, $red-5, $red-7);
152156
}

projects/components/src/button/button.component.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ describe('Button Component', () => {
3939
});
4040
expect(spectator.query('.button')).toHaveClass('button primary small solid');
4141

42-
// Primary Reversed
43-
spectator.setInput({
44-
role: ButtonRole.PrimaryReversed
45-
});
46-
expect(spectator.query('.button')).toHaveClass('button primary-reversed small solid');
47-
4842
// Secondary
4943
spectator.setInput({
5044
role: ButtonRole.Secondary
@@ -57,6 +51,12 @@ describe('Button Component', () => {
5751
});
5852
expect(spectator.query('.button')).toHaveClass('button tertiary small solid');
5953

54+
// Quaternary
55+
spectator.setInput({
56+
role: ButtonRole.Quaternary
57+
});
58+
expect(spectator.query('.button')).toHaveClass('button quaternary small solid');
59+
6060
// Destructive
6161
spectator.setInput({
6262
role: ButtonRole.Destructive

projects/components/src/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export const enum ButtonRole {
22
// These values are used as css classes
33
Primary = 'primary',
4-
PrimaryReversed = 'primary-reversed',
54
Secondary = 'secondary',
65
Tertiary = 'tertiary',
6+
Quaternary = 'quaternary',
77
Destructive = 'destructive',
88
Additive = 'additive'
99
}

0 commit comments

Comments
 (0)