Skip to content

Commit d74af2f

Browse files
committed
revert button typography changes
1 parent 0202754 commit d74af2f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

core/src/components/button/button.ionic.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
--focus-ring-color: #{globals.$ion-border-focus-default};
1212
--focus-ring-width: #{globals.$ion-border-size-050};
1313

14-
@include globals.typography(globals.$ion-body-action-md);
15-
1614
position: relative;
1715

1816
min-height: globals.$ion-scale-1000;
1917

18+
font-family: globals.$ion-font-family;
19+
font-size: globals.$ion-font-size-350;
20+
2021
// Target area
2122
&::after {
2223
@include globals.position(50%, 0, null, 0);
@@ -106,39 +107,39 @@
106107
--padding-top: #{globals.$ion-space-100};
107108
--padding-end: #{globals.$ion-space-300};
108109

109-
@include globals.typography(globals.$ion-body-action-xs);
110-
111110
min-height: globals.$ion-space-600;
111+
112+
font-size: globals.$ion-font-size-300;
112113
}
113114

114115
/* Small Button */
115116
:host(.button-small) {
116117
--padding-top: #{globals.$ion-space-200};
117118
--padding-end: #{globals.$ion-space-400};
118119

119-
@include globals.typography(globals.$ion-body-action-sm);
120-
121120
min-height: #{globals.$ion-scale-800};
121+
122+
font-size: #{globals.$ion-font-size-300};
122123
}
123124

124125
/* Large Button */
125126
:host(.button-large) {
126127
--padding-top: #{globals.$ion-space-400};
127128
--padding-end: #{globals.$ion-space-600};
128129

129-
@include globals.typography(globals.$ion-body-action-lg);
130-
131130
min-height: #{globals.$ion-scale-1200};
131+
132+
font-size: #{globals.$ion-font-size-400};
132133
}
133134

134135
/* Extra Large Button */
135136
:host(.button-xlarge) {
136137
--padding-top: #{globals.$ion-space-400};
137138
--padding-end: #{globals.$ion-space-800};
138139

139-
@include globals.typography(globals.$ion-heading-h6-medium);
140-
141140
min-height: #{globals.$ion-scale-1400};
141+
142+
font-size: #{globals.$ion-font-size-500};
142143
}
143144

144145
// Button with Icons

0 commit comments

Comments
 (0)