@ionic/core 8.2.3-dev.11721064272.19e3ddfd → 8.2.3-dev.11721225504.1476a6ac
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-avatar.js +3 -3
- package/components/ion-badge.js +3 -3
- package/components/ion-input.js +1 -1
- package/components/ion-segment.js +3 -11
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +2 -2
- package/components/ion-thumbnail.js +2 -2
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/ion-toolbar.js +2 -2
- package/components/item.js +3 -3
- package/components/select-popover.js +2 -2
- package/components/spinner.js +33 -6
- package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-input.cjs.entry.js +1 -1
- package/dist/cjs/ion-item_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-segment_2.cjs.entry.js +3 -11
- package/dist/cjs/ion-select_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-spinner.cjs.entry.js +30 -4
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/avatar/avatar.ionic.css +17 -1
- package/dist/collection/components/avatar/avatar.js +5 -5
- package/dist/collection/components/avatar/test/shape/avatar.e2e.js +7 -0
- package/dist/collection/components/avatar/test/size/avatar.e2e.js +27 -0
- package/dist/collection/components/badge/badge.ionic.css +32 -37
- package/dist/collection/components/badge/badge.ios.css +94 -3
- package/dist/collection/components/badge/badge.md.css +94 -3
- package/dist/collection/components/button/test/outline/button.e2e.js +1 -2
- package/dist/collection/components/input/input.ionic.css +2 -1
- package/dist/collection/components/item/item.ionic.css +359 -65
- package/dist/collection/components/item/item.ios.css +94 -67
- package/dist/collection/components/item/item.md.css +94 -67
- package/dist/collection/components/segment/segment.js +3 -11
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +2 -2
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.common.css +199 -0
- package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +55 -0
- package/dist/collection/components/spinner/spinner.js +40 -3
- package/dist/collection/components/spinner/test/size/spinner.e2e.js +47 -0
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +190 -48
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-avatar_3.entry.js +8 -8
- package/dist/esm/ion-input.entry.js +1 -1
- package/dist/esm/ion-item_8.entry.js +5 -5
- package/dist/esm/ion-segment_2.entry.js +3 -11
- package/dist/esm/ion-select_3.entry.js +5 -5
- package/dist/esm/ion-spinner.entry.js +30 -4
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +25 -29
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-29f4100d.entry.js → p-01ae1aa0.entry.js} +1 -1
- package/dist/ionic/p-1be0295f.entry.js +4 -0
- package/dist/ionic/p-201d8768.system.entry.js +4 -0
- package/dist/ionic/{p-062c1cb9.system.entry.js → p-223bc7dd.system.entry.js} +1 -1
- package/dist/ionic/{p-0595a36c.system.entry.js → p-24592a4d.system.entry.js} +1 -1
- package/dist/ionic/{p-2aa6a169.entry.js → p-28649e61.entry.js} +1 -1
- package/dist/ionic/{p-385a361b.entry.js → p-39a39279.entry.js} +1 -1
- package/dist/ionic/p-3ce954c7.entry.js +4 -0
- package/dist/ionic/p-40c14f53.system.entry.js +4 -0
- package/dist/ionic/{p-cd6d4c1d.entry.js → p-4346453b.entry.js} +1 -1
- package/dist/ionic/{p-1be0ed0e.system.entry.js → p-45ca3acb.system.entry.js} +2 -2
- package/dist/ionic/p-4b9c6418.system.entry.js +4 -0
- package/dist/ionic/p-563a8d3b.entry.js +4 -0
- package/dist/ionic/{p-b67ed806.system.entry.js → p-56c72f65.system.entry.js} +1 -1
- package/dist/ionic/{p-da668343.system.entry.js → p-7ab9c88c.system.entry.js} +1 -1
- package/dist/ionic/p-7b590e46.system.js +1 -1
- package/dist/ionic/{p-c0dace15.system.entry.js → p-7dad531c.system.entry.js} +1 -1
- package/dist/ionic/p-85ca50a9.system.entry.js +4 -0
- package/dist/ionic/p-8ac5efa9.entry.js +4 -0
- package/dist/ionic/p-a0b51978.system.entry.js +4 -0
- package/dist/ionic/p-a6bb62ea.entry.js +4 -0
- package/dist/ionic/p-ae79f1e2.entry.js +4 -0
- package/dist/ionic/{p-aaf1b71f.entry.js → p-b374abe2.entry.js} +1 -1
- package/dist/ionic/{p-61f51286.system.entry.js → p-b5cc6e57.system.entry.js} +1 -1
- package/dist/ionic/p-bbefc52b.system.entry.js +4 -0
- package/dist/ionic/{p-adb54d5b.entry.js → p-c23822f8.entry.js} +1 -1
- package/dist/ionic/{p-14ae725a.entry.js → p-d2a580db.entry.js} +1 -1
- package/dist/ionic/p-dc8a3888.entry.js +4 -0
- package/dist/ionic/{p-5cc8fa7f.system.entry.js → p-f84ea1e9.system.entry.js} +1 -1
- package/dist/types/components/avatar/avatar.d.ts +7 -4
- package/dist/types/components/segment/segment.d.ts +1 -1
- package/dist/types/components/spinner/spinner.d.ts +11 -0
- package/dist/types/components.d.ts +12 -30
- package/hydrate/index.js +77 -151
- package/package.json +1 -1
- package/components/ion-segment-content.d.ts +0 -11
- package/components/ion-segment-content.js +0 -38
- package/components/ion-segment-view.d.ts +0 -11
- package/components/ion-segment-view.js +0 -86
- package/dist/cjs/ion-segment-content.cjs.entry.js +0 -24
- package/dist/cjs/ion-segment-view.cjs.entry.js +0 -72
- package/dist/collection/components/segment-content/segment-content.css +0 -5
- package/dist/collection/components/segment-content/segment-content.js +0 -22
- package/dist/collection/components/segment-view/segment-view.css +0 -15
- package/dist/collection/components/segment-view/segment-view.js +0 -81
- package/dist/esm/ion-segment-content.entry.js +0 -20
- package/dist/esm/ion-segment-view.entry.js +0 -68
- package/dist/esm-es5/ion-segment-content.entry.js +0 -4
- package/dist/esm-es5/ion-segment-view.entry.js +0 -4
- package/dist/ionic/p-07b804ba.entry.js +0 -4
- package/dist/ionic/p-405559bd.entry.js +0 -4
- package/dist/ionic/p-5839776e.entry.js +0 -4
- package/dist/ionic/p-660cf6f3.system.entry.js +0 -4
- package/dist/ionic/p-6ced0cc0.entry.js +0 -4
- package/dist/ionic/p-6d4534cb.system.entry.js +0 -4
- package/dist/ionic/p-72944d53.system.entry.js +0 -4
- package/dist/ionic/p-7813dead.system.entry.js +0 -4
- package/dist/ionic/p-833593dd.entry.js +0 -4
- package/dist/ionic/p-8ef82205.entry.js +0 -4
- package/dist/ionic/p-9316e014.system.entry.js +0 -4
- package/dist/ionic/p-a2830649.system.entry.js +0 -4
- package/dist/ionic/p-aa246404.entry.js +0 -4
- package/dist/ionic/p-aa97948b.entry.js +0 -4
- package/dist/ionic/p-c6e43624.entry.js +0 -4
- package/dist/ionic/p-f1eb1152.system.entry.js +0 -4
- package/dist/ionic/p-f8a16486.system.entry.js +0 -4
- package/dist/types/components/segment-content/segment-content.d.ts +0 -5
- package/dist/types/components/segment-view/segment-view.d.ts +0 -13
|
@@ -64,10 +64,26 @@
|
|
|
64
64
|
* convert to a unit other than $baselineUnit.
|
|
65
65
|
*/
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
67
|
+
* A heuristic that applies CSS to tablet
|
|
68
|
+
* viewports.
|
|
69
|
+
*
|
|
70
|
+
* Usage:
|
|
71
|
+
* @include tablet-viewport() {
|
|
72
|
+
* :host {
|
|
73
|
+
* background-color: green;
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
*/
|
|
77
|
+
/**
|
|
78
|
+
* A heuristic that applies CSS to mobile
|
|
79
|
+
* viewports (i.e. phones, not tablets).
|
|
80
|
+
*
|
|
81
|
+
* Usage:
|
|
82
|
+
* @include mobile-viewport() {
|
|
83
|
+
* :host {
|
|
84
|
+
* background-color: blue;
|
|
85
|
+
* }
|
|
86
|
+
* }
|
|
71
87
|
*/
|
|
72
88
|
/**
|
|
73
89
|
* Convert a font size to a dynamic font size.
|
|
@@ -102,28 +118,6 @@
|
|
|
102
118
|
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
103
119
|
* convert to a unit other than $baselineUnit.
|
|
104
120
|
*/
|
|
105
|
-
/**
|
|
106
|
-
* A heuristic that applies CSS to tablet
|
|
107
|
-
* viewports.
|
|
108
|
-
*
|
|
109
|
-
* Usage:
|
|
110
|
-
* @include tablet-viewport() {
|
|
111
|
-
* :host {
|
|
112
|
-
* background-color: green;
|
|
113
|
-
* }
|
|
114
|
-
* }
|
|
115
|
-
*/
|
|
116
|
-
/**
|
|
117
|
-
* A heuristic that applies CSS to mobile
|
|
118
|
-
* viewports (i.e. phones, not tablets).
|
|
119
|
-
*
|
|
120
|
-
* Usage:
|
|
121
|
-
* @include mobile-viewport() {
|
|
122
|
-
* :host {
|
|
123
|
-
* background-color: blue;
|
|
124
|
-
* }
|
|
125
|
-
* }
|
|
126
|
-
*/
|
|
127
121
|
:host {
|
|
128
122
|
/**
|
|
129
123
|
* @prop --background: Background of the badge
|
|
@@ -134,8 +128,6 @@
|
|
|
134
128
|
* @prop --padding-bottom: Bottom padding of the badge
|
|
135
129
|
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the badge
|
|
136
130
|
*/
|
|
137
|
-
--background: var(--ion-color-primary, #0054e9);
|
|
138
|
-
--color: var(--ion-color-primary-contrast, #fff);
|
|
139
131
|
--padding-top: 3px;
|
|
140
132
|
--padding-end: 8px;
|
|
141
133
|
--padding-bottom: 3px;
|
|
@@ -152,7 +144,6 @@
|
|
|
152
144
|
min-width: 10px;
|
|
153
145
|
background: var(--background);
|
|
154
146
|
color: var(--color);
|
|
155
|
-
font-family: var(--ion-font-family, inherit);
|
|
156
147
|
font-size: 0.8125rem;
|
|
157
148
|
font-weight: bold;
|
|
158
149
|
line-height: 1;
|
|
@@ -163,8 +154,8 @@
|
|
|
163
154
|
}
|
|
164
155
|
|
|
165
156
|
:host(.ion-color) {
|
|
166
|
-
background:
|
|
167
|
-
color:
|
|
157
|
+
background: current-color(base);
|
|
158
|
+
color: current-color(contrast);
|
|
168
159
|
}
|
|
169
160
|
|
|
170
161
|
:host(:empty) {
|
|
@@ -172,8 +163,10 @@
|
|
|
172
163
|
}
|
|
173
164
|
|
|
174
165
|
:host {
|
|
175
|
-
--
|
|
176
|
-
--
|
|
166
|
+
--background: var(--ionic-color-blue-700, #105cef);
|
|
167
|
+
--color: var(--ionic-color-base-white, #ffffff);
|
|
168
|
+
--padding-start: var(--ionic-space-200, 8px);
|
|
169
|
+
--padding-end: var(--ionic-space-200, 8px);
|
|
177
170
|
--padding-top: var(--ionic-space-0, 0px);
|
|
178
171
|
--padding-bottom: var(--ionic-space-0, 0px);
|
|
179
172
|
display: inline-flex;
|
|
@@ -205,6 +198,8 @@
|
|
|
205
198
|
|
|
206
199
|
/* 2-Extra Small Badge */
|
|
207
200
|
:host(.badge-xxsmall) {
|
|
201
|
+
--padding-start: var(--ionic-space-050, 2px);
|
|
202
|
+
--padding-end: var(--ionic-space-050, 2px);
|
|
208
203
|
min-width: var(--ionic-scale-400, 16px);
|
|
209
204
|
height: var(--ionic-scale-400, 16px);
|
|
210
205
|
font-size: var(--ionic-font-size-300, 0.75rem);
|
|
@@ -213,6 +208,8 @@
|
|
|
213
208
|
|
|
214
209
|
/* Extra Small Badge */
|
|
215
210
|
:host(.badge-xsmall) {
|
|
211
|
+
--padding-start: var(--ionic-space-100, 4px);
|
|
212
|
+
--padding-end: var(--ionic-space-100, 4px);
|
|
216
213
|
min-width: var(--ionic-scale-600, 24px);
|
|
217
214
|
height: var(--ionic-scale-600, 24px);
|
|
218
215
|
font-size: var(--ionic-font-size-350, 0.875rem);
|
|
@@ -221,6 +218,8 @@
|
|
|
221
218
|
|
|
222
219
|
/* Small Badge */
|
|
223
220
|
:host(.badge-small) {
|
|
221
|
+
--padding-start: var(--ionic-space-100, 4px);
|
|
222
|
+
--padding-end: var(--ionic-space-100, 4px);
|
|
224
223
|
min-width: var(--ionic-scale-800, 32px);
|
|
225
224
|
height: var(--ionic-scale-800, 32px);
|
|
226
225
|
font-size: var(--ionic-font-size-400, 1rem);
|
|
@@ -237,8 +236,6 @@
|
|
|
237
236
|
|
|
238
237
|
/* Large Badge */
|
|
239
238
|
:host(.badge-large) {
|
|
240
|
-
--padding-start: var(--ionic-space-200, 8px);
|
|
241
|
-
--padding-end: var(--ionic-space-200, 8px);
|
|
242
239
|
min-width: var(--ionic-scale-1200, 48px);
|
|
243
240
|
height: var(--ionic-scale-1200, 48px);
|
|
244
241
|
font-size: var(--ionic-font-size-500, 1.25rem);
|
|
@@ -247,8 +244,6 @@
|
|
|
247
244
|
|
|
248
245
|
/* Extra Large Badge */
|
|
249
246
|
:host(.badge-xlarge) {
|
|
250
|
-
--padding-start: var(--ionic-space-200, 8px);
|
|
251
|
-
--padding-end: var(--ionic-space-200, 8px);
|
|
252
247
|
min-width: var(--ionic-scale-1400, 56px);
|
|
253
248
|
height: var(--ionic-scale-1400, 56px);
|
|
254
249
|
font-size: var(--ionic-font-size-550, 1.375rem);
|
|
@@ -59,6 +59,61 @@
|
|
|
59
59
|
* }
|
|
60
60
|
* }
|
|
61
61
|
*/
|
|
62
|
+
/**
|
|
63
|
+
* A heuristic that applies CSS to tablet
|
|
64
|
+
* viewports.
|
|
65
|
+
*
|
|
66
|
+
* Usage:
|
|
67
|
+
* @include tablet-viewport() {
|
|
68
|
+
* :host {
|
|
69
|
+
* background-color: green;
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* A heuristic that applies CSS to mobile
|
|
75
|
+
* viewports (i.e. phones, not tablets).
|
|
76
|
+
*
|
|
77
|
+
* Usage:
|
|
78
|
+
* @include mobile-viewport() {
|
|
79
|
+
* :host {
|
|
80
|
+
* background-color: blue;
|
|
81
|
+
* }
|
|
82
|
+
* }
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* Convert a font size to a dynamic font size.
|
|
86
|
+
* Fonts that participate in Dynamic Type should use
|
|
87
|
+
* dynamic font sizes.
|
|
88
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
89
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
90
|
+
* convert to a unit other than $baselineUnit.
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Convert a font size to a dynamic font size but impose
|
|
94
|
+
* a maximum font size.
|
|
95
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
96
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
97
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
98
|
+
* convert to a unit other than $baselineUnit.
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* Convert a font size to a dynamic font size but impose
|
|
102
|
+
* a minimum font size.
|
|
103
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
104
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
105
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
106
|
+
* convert to a unit other than $baselineUnit.
|
|
107
|
+
*/
|
|
108
|
+
/**
|
|
109
|
+
* Convert a font size to a dynamic font size but impose
|
|
110
|
+
* maximum and minimum font sizes.
|
|
111
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
112
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
113
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
114
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
115
|
+
* convert to a unit other than $baselineUnit.
|
|
116
|
+
*/
|
|
62
117
|
:host {
|
|
63
118
|
/**
|
|
64
119
|
* @prop --background: Background of the badge
|
|
@@ -69,8 +124,6 @@
|
|
|
69
124
|
* @prop --padding-bottom: Bottom padding of the badge
|
|
70
125
|
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the badge
|
|
71
126
|
*/
|
|
72
|
-
--background: var(--ion-color-primary, #0054e9);
|
|
73
|
-
--color: var(--ion-color-primary-contrast, #fff);
|
|
74
127
|
--padding-top: 3px;
|
|
75
128
|
--padding-end: 8px;
|
|
76
129
|
--padding-bottom: 3px;
|
|
@@ -87,7 +140,6 @@
|
|
|
87
140
|
min-width: 10px;
|
|
88
141
|
background: var(--background);
|
|
89
142
|
color: var(--color);
|
|
90
|
-
font-family: var(--ion-font-family, inherit);
|
|
91
143
|
font-size: 0.8125rem;
|
|
92
144
|
font-weight: bold;
|
|
93
145
|
line-height: 1;
|
|
@@ -106,6 +158,45 @@
|
|
|
106
158
|
display: none;
|
|
107
159
|
}
|
|
108
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Convert a font size to a dynamic font size.
|
|
163
|
+
* Fonts that participate in Dynamic Type should use
|
|
164
|
+
* dynamic font sizes.
|
|
165
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
166
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
167
|
+
* convert to a unit other than $baselineUnit.
|
|
168
|
+
*/
|
|
169
|
+
/**
|
|
170
|
+
* Convert a font size to a dynamic font size but impose
|
|
171
|
+
* a maximum font size.
|
|
172
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
173
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
174
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
175
|
+
* convert to a unit other than $baselineUnit.
|
|
176
|
+
*/
|
|
177
|
+
/**
|
|
178
|
+
* Convert a font size to a dynamic font size but impose
|
|
179
|
+
* a minimum font size.
|
|
180
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
181
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
182
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
183
|
+
* convert to a unit other than $baselineUnit.
|
|
184
|
+
*/
|
|
185
|
+
/**
|
|
186
|
+
* Convert a font size to a dynamic font size but impose
|
|
187
|
+
* maximum and minimum font sizes.
|
|
188
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
189
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
190
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
191
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
192
|
+
* convert to a unit other than $baselineUnit.
|
|
193
|
+
*/
|
|
194
|
+
:host {
|
|
195
|
+
--background: var(--ion-color-primary, #0054e9);
|
|
196
|
+
--color: var(--ion-color-primary-contrast, #fff);
|
|
197
|
+
font-family: var(--ion-font-family, inherit);
|
|
198
|
+
}
|
|
199
|
+
|
|
109
200
|
/**
|
|
110
201
|
* Convert a pixels given value into rem
|
|
111
202
|
*
|
|
@@ -59,6 +59,61 @@
|
|
|
59
59
|
* }
|
|
60
60
|
* }
|
|
61
61
|
*/
|
|
62
|
+
/**
|
|
63
|
+
* A heuristic that applies CSS to tablet
|
|
64
|
+
* viewports.
|
|
65
|
+
*
|
|
66
|
+
* Usage:
|
|
67
|
+
* @include tablet-viewport() {
|
|
68
|
+
* :host {
|
|
69
|
+
* background-color: green;
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* A heuristic that applies CSS to mobile
|
|
75
|
+
* viewports (i.e. phones, not tablets).
|
|
76
|
+
*
|
|
77
|
+
* Usage:
|
|
78
|
+
* @include mobile-viewport() {
|
|
79
|
+
* :host {
|
|
80
|
+
* background-color: blue;
|
|
81
|
+
* }
|
|
82
|
+
* }
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* Convert a font size to a dynamic font size.
|
|
86
|
+
* Fonts that participate in Dynamic Type should use
|
|
87
|
+
* dynamic font sizes.
|
|
88
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
89
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
90
|
+
* convert to a unit other than $baselineUnit.
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Convert a font size to a dynamic font size but impose
|
|
94
|
+
* a maximum font size.
|
|
95
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
96
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
97
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
98
|
+
* convert to a unit other than $baselineUnit.
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* Convert a font size to a dynamic font size but impose
|
|
102
|
+
* a minimum font size.
|
|
103
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
104
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
105
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
106
|
+
* convert to a unit other than $baselineUnit.
|
|
107
|
+
*/
|
|
108
|
+
/**
|
|
109
|
+
* Convert a font size to a dynamic font size but impose
|
|
110
|
+
* maximum and minimum font sizes.
|
|
111
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
112
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
113
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
114
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
115
|
+
* convert to a unit other than $baselineUnit.
|
|
116
|
+
*/
|
|
62
117
|
:host {
|
|
63
118
|
/**
|
|
64
119
|
* @prop --background: Background of the badge
|
|
@@ -69,8 +124,6 @@
|
|
|
69
124
|
* @prop --padding-bottom: Bottom padding of the badge
|
|
70
125
|
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the badge
|
|
71
126
|
*/
|
|
72
|
-
--background: var(--ion-color-primary, #0054e9);
|
|
73
|
-
--color: var(--ion-color-primary-contrast, #fff);
|
|
74
127
|
--padding-top: 3px;
|
|
75
128
|
--padding-end: 8px;
|
|
76
129
|
--padding-bottom: 3px;
|
|
@@ -87,7 +140,6 @@
|
|
|
87
140
|
min-width: 10px;
|
|
88
141
|
background: var(--background);
|
|
89
142
|
color: var(--color);
|
|
90
|
-
font-family: var(--ion-font-family, inherit);
|
|
91
143
|
font-size: 0.8125rem;
|
|
92
144
|
font-weight: bold;
|
|
93
145
|
line-height: 1;
|
|
@@ -106,6 +158,45 @@
|
|
|
106
158
|
display: none;
|
|
107
159
|
}
|
|
108
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Convert a font size to a dynamic font size.
|
|
163
|
+
* Fonts that participate in Dynamic Type should use
|
|
164
|
+
* dynamic font sizes.
|
|
165
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
166
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
167
|
+
* convert to a unit other than $baselineUnit.
|
|
168
|
+
*/
|
|
169
|
+
/**
|
|
170
|
+
* Convert a font size to a dynamic font size but impose
|
|
171
|
+
* a maximum font size.
|
|
172
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
173
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
174
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
175
|
+
* convert to a unit other than $baselineUnit.
|
|
176
|
+
*/
|
|
177
|
+
/**
|
|
178
|
+
* Convert a font size to a dynamic font size but impose
|
|
179
|
+
* a minimum font size.
|
|
180
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
181
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
182
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
183
|
+
* convert to a unit other than $baselineUnit.
|
|
184
|
+
*/
|
|
185
|
+
/**
|
|
186
|
+
* Convert a font size to a dynamic font size but impose
|
|
187
|
+
* maximum and minimum font sizes.
|
|
188
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
189
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
190
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
191
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
192
|
+
* convert to a unit other than $baselineUnit.
|
|
193
|
+
*/
|
|
194
|
+
:host {
|
|
195
|
+
--background: var(--ion-color-primary, #0054e9);
|
|
196
|
+
--color: var(--ion-color-primary-contrast, #fff);
|
|
197
|
+
font-family: var(--ion-font-family, inherit);
|
|
198
|
+
}
|
|
199
|
+
|
|
109
200
|
/**
|
|
110
201
|
* Convert a pixels given value into rem
|
|
111
202
|
*
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { expect } from "@playwright/test";
|
|
5
5
|
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
|
|
7
|
-
configs().forEach(({ title, screenshot, config }) => {
|
|
6
|
+
configs({ modes: ['ios', 'md', 'ionic-md'] }).forEach(({ title, screenshot, config }) => {
|
|
8
7
|
test.describe(title('button: outline'), () => {
|
|
9
8
|
test('should not have visual regressions', async ({ page }) => {
|
|
10
9
|
await page.goto(`/src/components/button/test/outline`, config);
|
|
@@ -860,6 +860,7 @@
|
|
|
860
860
|
--placeholder-color: var(--ionic-color-neutral-800, #626262);
|
|
861
861
|
--placeholder-opacity: 1;
|
|
862
862
|
--text-color-invalid: var(--ionic-color-danger-800, #bf2222);
|
|
863
|
+
--background: var(--ionic-color-base-white, #ffffff);
|
|
863
864
|
font-size: var(--ionic-font-size-350, 0.875rem);
|
|
864
865
|
}
|
|
865
866
|
|
|
@@ -983,7 +984,7 @@
|
|
|
983
984
|
:host(.input-disabled:not(.ion-valid)) .input-bottom .helper-text,
|
|
984
985
|
:host(.input-disabled) .input-bottom .counter,
|
|
985
986
|
:host(.input-disabled) .label-text-wrapper {
|
|
986
|
-
color: var(--ionic-color-neutral-
|
|
987
|
+
color: var(--ionic-color-neutral-500, #a2a2a2);
|
|
987
988
|
}
|
|
988
989
|
|
|
989
990
|
:host(.input-disabled.has-focus.ion-valid) {
|