Skip to content

Commit c4d4405

Browse files
committed
fix button sizes
1 parent 7fec492 commit c4d4405

File tree

1 file changed

+11
-28
lines changed

1 file changed

+11
-28
lines changed

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

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

14-
position: relative;
14+
@include globals.typography(globals.$ion-body-action-md);
1515

16-
min-height: globals.$ion-scale-1000;
16+
position: relative;
1717

18-
font-family: globals.$ion-font-family;
19-
font-size: globals.$ion-font-size-350;
18+
min-height: globals.$ion-scale-1200;
2019

2120
// Target area
2221
&::after {
@@ -102,44 +101,28 @@
102101
// Button Sizes
103102
// -------------------------------------------------------------------------------
104103

104+
/* Small Button */
105105
/* Extra Small Button */
106+
:host(.button-small),
106107
:host(.button-xsmall) {
107-
--padding-top: #{globals.$ion-space-100};
108-
--padding-end: #{globals.$ion-space-300};
109-
110-
min-height: globals.$ion-space-600;
111-
112-
font-size: globals.$ion-font-size-300;
113-
}
114-
115-
/* Small Button */
116-
:host(.button-small) {
117108
--padding-top: #{globals.$ion-space-200};
118109
--padding-end: #{globals.$ion-space-400};
119110

120-
min-height: #{globals.$ion-scale-800};
111+
@include globals.typography(globals.$ion-body-action-sm);
121112

122-
font-size: #{globals.$ion-font-size-300};
113+
min-height: #{globals.$ion-scale-1000};
123114
}
124115

125116
/* Large Button */
126-
:host(.button-large) {
127-
--padding-top: #{globals.$ion-space-400};
128-
--padding-end: #{globals.$ion-space-600};
129-
130-
min-height: #{globals.$ion-scale-1200};
131-
132-
font-size: #{globals.$ion-font-size-400};
133-
}
134-
135117
/* Extra Large Button */
118+
:host(.button-large),
136119
:host(.button-xlarge) {
137120
--padding-top: #{globals.$ion-space-400};
138-
--padding-end: #{globals.$ion-space-800};
121+
--padding-end: #{globals.$ion-space-600};
139122

140-
min-height: #{globals.$ion-scale-1400};
123+
@include globals.typography(globals.$ion-body-action-lg);
141124

142-
font-size: #{globals.$ion-font-size-500};
125+
min-height: #{globals.$ion-scale-1400};
143126
}
144127

145128
// Button with Icons

0 commit comments

Comments
 (0)