Skip to content

Commit 201e0e4

Browse files
committed
added button min-width
1 parent 8b5215f commit 201e0e4

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
@include globals.typography(globals.$ion-body-action-sm);
105105

106106
min-height: #{globals.$ion-scale-1000};
107+
min-width: globals.$ion-scale-1600;
107108
}
108109

109110
/* Medium Button */
@@ -113,6 +114,7 @@
113114
@include globals.typography(globals.$ion-body-action-md);
114115

115116
min-height: #{globals.$ion-scale-1200};
117+
min-width: globals.$ion-scale-1800;
116118
}
117119

118120
/* Large Button */
@@ -122,29 +124,32 @@
122124
@include globals.typography(globals.$ion-body-action-lg);
123125

124126
min-height: #{globals.$ion-scale-1400};
127+
min-width: globals.$ion-scale-2000;
125128
}
126129

127130
// Button with Icons
128131
// -------------------------------------------------------------------------------
129-
130-
/* Button containing only an icon */
131-
::slotted(ion-icon[slot="start"]),
132-
::slotted(ion-icon[slot="end"]),
133-
::slotted(ion-icon[slot="icon-only"]) {
134-
font-size: globals.$ion-font-size-400;
132+
:host(.button-small) {
133+
::slotted(ion-icon[slot="start"]),
134+
::slotted(ion-icon[slot="end"]),
135+
::slotted(ion-icon[slot="icon-only"]) {
136+
height: globals.$ion-scale-500;
137+
width: globals.$ion-scale-500;
138+
}
135139
}
136140

137-
:host(.button-small),
138141
:host(.button-large) {
139142
::slotted(ion-icon[slot="start"]),
140143
::slotted(ion-icon[slot="end"]),
141144
::slotted(ion-icon[slot="icon-only"]) {
142-
font-size: inherit;
145+
height: globals.$ion-scale-600;
146+
width: globals.$ion-scale-600;
143147
}
144148
}
145149

146150
:host(.button-has-icon-only) {
147151
--padding-end: var(--padding-top);
152+
min-width: unset;
148153

149154
aspect-ratio: 1 / 1;
150155
}

0 commit comments

Comments
 (0)