@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.
Files changed (175) hide show
  1. package/components/ion-avatar.js +3 -3
  2. package/components/ion-badge.js +3 -3
  3. package/components/ion-input.js +1 -1
  4. package/components/ion-segment.js +3 -11
  5. package/components/ion-select-option.js +1 -1
  6. package/components/ion-select.js +2 -2
  7. package/components/ion-skeleton-text.js +2 -2
  8. package/components/ion-split-pane.js +2 -2
  9. package/components/ion-tab-bar.js +2 -2
  10. package/components/ion-tab-button.js +2 -2
  11. package/components/ion-tab.js +2 -2
  12. package/components/ion-tabs.js +1 -1
  13. package/components/ion-text.js +2 -2
  14. package/components/ion-textarea.js +2 -2
  15. package/components/ion-thumbnail.js +2 -2
  16. package/components/ion-title.js +2 -2
  17. package/components/ion-toast.js +2 -2
  18. package/components/ion-toggle.js +3 -3
  19. package/components/ion-toolbar.js +2 -2
  20. package/components/item.js +3 -3
  21. package/components/select-popover.js +2 -2
  22. package/components/spinner.js +33 -6
  23. package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
  24. package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -8
  25. package/dist/cjs/ion-input.cjs.entry.js +1 -1
  26. package/dist/cjs/ion-item_8.cjs.entry.js +5 -5
  27. package/dist/cjs/ion-segment_2.cjs.entry.js +3 -11
  28. package/dist/cjs/ion-select_3.cjs.entry.js +5 -5
  29. package/dist/cjs/ion-spinner.cjs.entry.js +30 -4
  30. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  31. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  32. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  33. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  34. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  35. package/dist/cjs/ion-toast.cjs.entry.js +2 -2
  36. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  37. package/dist/cjs/ionic.cjs.js +1 -1
  38. package/dist/cjs/loader.cjs.js +1 -1
  39. package/dist/collection/collection-manifest.json +0 -2
  40. package/dist/collection/components/avatar/avatar.ionic.css +17 -1
  41. package/dist/collection/components/avatar/avatar.js +5 -5
  42. package/dist/collection/components/avatar/test/shape/avatar.e2e.js +7 -0
  43. package/dist/collection/components/avatar/test/size/avatar.e2e.js +27 -0
  44. package/dist/collection/components/badge/badge.ionic.css +32 -37
  45. package/dist/collection/components/badge/badge.ios.css +94 -3
  46. package/dist/collection/components/badge/badge.md.css +94 -3
  47. package/dist/collection/components/button/test/outline/button.e2e.js +1 -2
  48. package/dist/collection/components/input/input.ionic.css +2 -1
  49. package/dist/collection/components/item/item.ionic.css +359 -65
  50. package/dist/collection/components/item/item.ios.css +94 -67
  51. package/dist/collection/components/item/item.md.css +94 -67
  52. package/dist/collection/components/segment/segment.js +3 -11
  53. package/dist/collection/components/select/select.js +2 -2
  54. package/dist/collection/components/select-option/select-option.js +1 -1
  55. package/dist/collection/components/select-popover/select-popover.js +2 -2
  56. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  57. package/dist/collection/components/spinner/spinner.common.css +199 -0
  58. package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +55 -0
  59. package/dist/collection/components/spinner/spinner.js +40 -3
  60. package/dist/collection/components/spinner/test/size/spinner.e2e.js +47 -0
  61. package/dist/collection/components/split-pane/split-pane.js +2 -2
  62. package/dist/collection/components/tab/tab.js +2 -2
  63. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  64. package/dist/collection/components/tab-button/tab-button.js +2 -2
  65. package/dist/collection/components/tabs/tabs.js +1 -1
  66. package/dist/collection/components/text/text.js +2 -2
  67. package/dist/collection/components/textarea/textarea.js +2 -2
  68. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  69. package/dist/collection/components/title/title.js +2 -2
  70. package/dist/collection/components/toast/toast.js +2 -2
  71. package/dist/collection/components/toggle/toggle.js +3 -3
  72. package/dist/collection/components/toolbar/toolbar.js +2 -2
  73. package/dist/docs.json +190 -48
  74. package/dist/esm/ion-app_8.entry.js +4 -4
  75. package/dist/esm/ion-avatar_3.entry.js +8 -8
  76. package/dist/esm/ion-input.entry.js +1 -1
  77. package/dist/esm/ion-item_8.entry.js +5 -5
  78. package/dist/esm/ion-segment_2.entry.js +3 -11
  79. package/dist/esm/ion-select_3.entry.js +5 -5
  80. package/dist/esm/ion-spinner.entry.js +30 -4
  81. package/dist/esm/ion-split-pane.entry.js +2 -2
  82. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  83. package/dist/esm/ion-tab_2.entry.js +3 -3
  84. package/dist/esm/ion-text.entry.js +2 -2
  85. package/dist/esm/ion-textarea.entry.js +2 -2
  86. package/dist/esm/ion-toast.entry.js +2 -2
  87. package/dist/esm/ion-toggle.entry.js +3 -3
  88. package/dist/esm/ionic.js +1 -1
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  91. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  92. package/dist/esm-es5/ion-input.entry.js +1 -1
  93. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  94. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  95. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  96. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  97. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  98. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  99. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  100. package/dist/esm-es5/ion-text.entry.js +1 -1
  101. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  102. package/dist/esm-es5/ion-toast.entry.js +1 -1
  103. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  104. package/dist/esm-es5/ionic.js +1 -1
  105. package/dist/esm-es5/loader.js +1 -1
  106. package/dist/html.html-data.json +25 -29
  107. package/dist/ionic/ionic.esm.js +1 -1
  108. package/dist/ionic/{p-29f4100d.entry.js → p-01ae1aa0.entry.js} +1 -1
  109. package/dist/ionic/p-1be0295f.entry.js +4 -0
  110. package/dist/ionic/p-201d8768.system.entry.js +4 -0
  111. package/dist/ionic/{p-062c1cb9.system.entry.js → p-223bc7dd.system.entry.js} +1 -1
  112. package/dist/ionic/{p-0595a36c.system.entry.js → p-24592a4d.system.entry.js} +1 -1
  113. package/dist/ionic/{p-2aa6a169.entry.js → p-28649e61.entry.js} +1 -1
  114. package/dist/ionic/{p-385a361b.entry.js → p-39a39279.entry.js} +1 -1
  115. package/dist/ionic/p-3ce954c7.entry.js +4 -0
  116. package/dist/ionic/p-40c14f53.system.entry.js +4 -0
  117. package/dist/ionic/{p-cd6d4c1d.entry.js → p-4346453b.entry.js} +1 -1
  118. package/dist/ionic/{p-1be0ed0e.system.entry.js → p-45ca3acb.system.entry.js} +2 -2
  119. package/dist/ionic/p-4b9c6418.system.entry.js +4 -0
  120. package/dist/ionic/p-563a8d3b.entry.js +4 -0
  121. package/dist/ionic/{p-b67ed806.system.entry.js → p-56c72f65.system.entry.js} +1 -1
  122. package/dist/ionic/{p-da668343.system.entry.js → p-7ab9c88c.system.entry.js} +1 -1
  123. package/dist/ionic/p-7b590e46.system.js +1 -1
  124. package/dist/ionic/{p-c0dace15.system.entry.js → p-7dad531c.system.entry.js} +1 -1
  125. package/dist/ionic/p-85ca50a9.system.entry.js +4 -0
  126. package/dist/ionic/p-8ac5efa9.entry.js +4 -0
  127. package/dist/ionic/p-a0b51978.system.entry.js +4 -0
  128. package/dist/ionic/p-a6bb62ea.entry.js +4 -0
  129. package/dist/ionic/p-ae79f1e2.entry.js +4 -0
  130. package/dist/ionic/{p-aaf1b71f.entry.js → p-b374abe2.entry.js} +1 -1
  131. package/dist/ionic/{p-61f51286.system.entry.js → p-b5cc6e57.system.entry.js} +1 -1
  132. package/dist/ionic/p-bbefc52b.system.entry.js +4 -0
  133. package/dist/ionic/{p-adb54d5b.entry.js → p-c23822f8.entry.js} +1 -1
  134. package/dist/ionic/{p-14ae725a.entry.js → p-d2a580db.entry.js} +1 -1
  135. package/dist/ionic/p-dc8a3888.entry.js +4 -0
  136. package/dist/ionic/{p-5cc8fa7f.system.entry.js → p-f84ea1e9.system.entry.js} +1 -1
  137. package/dist/types/components/avatar/avatar.d.ts +7 -4
  138. package/dist/types/components/segment/segment.d.ts +1 -1
  139. package/dist/types/components/spinner/spinner.d.ts +11 -0
  140. package/dist/types/components.d.ts +12 -30
  141. package/hydrate/index.js +77 -151
  142. package/package.json +1 -1
  143. package/components/ion-segment-content.d.ts +0 -11
  144. package/components/ion-segment-content.js +0 -38
  145. package/components/ion-segment-view.d.ts +0 -11
  146. package/components/ion-segment-view.js +0 -86
  147. package/dist/cjs/ion-segment-content.cjs.entry.js +0 -24
  148. package/dist/cjs/ion-segment-view.cjs.entry.js +0 -72
  149. package/dist/collection/components/segment-content/segment-content.css +0 -5
  150. package/dist/collection/components/segment-content/segment-content.js +0 -22
  151. package/dist/collection/components/segment-view/segment-view.css +0 -15
  152. package/dist/collection/components/segment-view/segment-view.js +0 -81
  153. package/dist/esm/ion-segment-content.entry.js +0 -20
  154. package/dist/esm/ion-segment-view.entry.js +0 -68
  155. package/dist/esm-es5/ion-segment-content.entry.js +0 -4
  156. package/dist/esm-es5/ion-segment-view.entry.js +0 -4
  157. package/dist/ionic/p-07b804ba.entry.js +0 -4
  158. package/dist/ionic/p-405559bd.entry.js +0 -4
  159. package/dist/ionic/p-5839776e.entry.js +0 -4
  160. package/dist/ionic/p-660cf6f3.system.entry.js +0 -4
  161. package/dist/ionic/p-6ced0cc0.entry.js +0 -4
  162. package/dist/ionic/p-6d4534cb.system.entry.js +0 -4
  163. package/dist/ionic/p-72944d53.system.entry.js +0 -4
  164. package/dist/ionic/p-7813dead.system.entry.js +0 -4
  165. package/dist/ionic/p-833593dd.entry.js +0 -4
  166. package/dist/ionic/p-8ef82205.entry.js +0 -4
  167. package/dist/ionic/p-9316e014.system.entry.js +0 -4
  168. package/dist/ionic/p-a2830649.system.entry.js +0 -4
  169. package/dist/ionic/p-aa246404.entry.js +0 -4
  170. package/dist/ionic/p-aa97948b.entry.js +0 -4
  171. package/dist/ionic/p-c6e43624.entry.js +0 -4
  172. package/dist/ionic/p-f1eb1152.system.entry.js +0 -4
  173. package/dist/ionic/p-f8a16486.system.entry.js +0 -4
  174. package/dist/types/components/segment-content/segment-content.d.ts +0 -5
  175. 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
- * Convert a pixels given value into rem
68
- *
69
- * @param pixels - Value in pixels to be converted (i.e. px)
70
- * @param context (optional) - Baseline value
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: var(--ion-color-base);
167
- color: var(--ion-color-contrast);
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
- --padding-start: var(--ionic-space-100, 4px);
176
- --padding-end: var(--ionic-space-100, 4px);
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
- // TODO(ROU-5474): add tests for ionic theme
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-400, #b9b9b9);
987
+ color: var(--ionic-color-neutral-500, #a2a2a2);
987
988
  }
988
989
 
989
990
  :host(.input-disabled.has-focus.ion-valid) {