@ionic/core 7.6.7-dev.11706894781.1cd59fde → 7.6.7-dev.11707156611.1b43b9ec

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 (354) hide show
  1. package/components/action-sheet.js +2 -2
  2. package/components/alert.js +2 -2
  3. package/components/checkbox.js +2 -2
  4. package/components/ion-breadcrumb.js +2 -2
  5. package/components/ion-card-subtitle.js +2 -2
  6. package/components/ion-card-title.js +1 -1
  7. package/components/ion-card.js +2 -2
  8. package/components/ion-datetime-button.js +2 -2
  9. package/components/ion-datetime.js +2 -2
  10. package/components/ion-fab-list.js +1 -1
  11. package/components/ion-infinite-scroll-content.js +2 -2
  12. package/components/ion-input.js +4 -8
  13. package/components/ion-item-divider.js +2 -2
  14. package/components/ion-item-options.js +2 -2
  15. package/components/ion-loading.js +2 -2
  16. package/components/ion-menu.js +2 -2
  17. package/components/ion-modal.js +2 -2
  18. package/components/ion-picker-legacy.js +2 -2
  19. package/components/ion-range.js +2 -2
  20. package/components/ion-refresher-content.js +1 -1
  21. package/components/ion-refresher.js +2 -2
  22. package/components/ion-searchbar.js +2 -2
  23. package/components/ion-segment-button.js +1 -1
  24. package/components/ion-select.js +2 -2
  25. package/components/ion-split-pane.js +2 -2
  26. package/components/ion-tab-bar.js +2 -2
  27. package/components/ion-tab-button.js +2 -2
  28. package/components/ion-textarea.js +2 -2
  29. package/components/ion-title.js +1 -1
  30. package/components/ion-toast.js +2 -2
  31. package/components/ion-toggle.js +2 -2
  32. package/components/ion-toolbar.js +2 -2
  33. package/components/item.js +2 -2
  34. package/components/label.js +2 -2
  35. package/components/list-header.js +2 -2
  36. package/components/list.js +1 -1
  37. package/components/note.js +2 -2
  38. package/components/picker-column2.js +2 -2
  39. package/components/picker.js +2 -2
  40. package/components/popover.js +1 -1
  41. package/components/radio.js +2 -2
  42. package/css/core.css.map +1 -1
  43. package/css/display.css.map +1 -1
  44. package/css/float-elements.css.map +1 -1
  45. package/css/global.bundle.css.map +1 -1
  46. package/css/ionic-swiper.css.map +1 -1
  47. package/css/ionic.bundle.css.map +1 -1
  48. package/css/padding.css.map +1 -1
  49. package/css/structure.css.map +1 -1
  50. package/css/text-alignment.css.map +1 -1
  51. package/css/text-transformation.css.map +1 -1
  52. package/css/themes/dark.always.css +41 -79
  53. package/css/themes/dark.always.css.map +1 -1
  54. package/css/themes/dark.class.css +41 -79
  55. package/css/themes/dark.class.css.map +1 -1
  56. package/css/themes/dark.system.css +41 -79
  57. package/css/themes/dark.system.css.map +1 -1
  58. package/css/typography.css.map +1 -1
  59. package/css/utils.bundle.css.map +1 -1
  60. package/dist/cjs/ion-action-sheet.cjs.entry.js +2 -2
  61. package/dist/cjs/ion-alert.cjs.entry.js +2 -2
  62. package/dist/cjs/ion-app_8.cjs.entry.js +3 -3
  63. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  64. package/dist/cjs/ion-card_5.cjs.entry.js +5 -5
  65. package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
  66. package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
  67. package/dist/cjs/ion-datetime_3.cjs.entry.js +6 -6
  68. package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
  69. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
  70. package/dist/cjs/ion-input.cjs.entry.js +4 -6
  71. package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
  72. package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
  73. package/dist/cjs/ion-loading.cjs.entry.js +2 -2
  74. package/dist/cjs/ion-menu_3.cjs.entry.js +2 -2
  75. package/dist/cjs/ion-modal.cjs.entry.js +2 -2
  76. package/dist/cjs/ion-picker.cjs.entry.js +2 -2
  77. package/dist/cjs/ion-popover.cjs.entry.js +1 -1
  78. package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
  79. package/dist/cjs/ion-range.cjs.entry.js +2 -2
  80. package/dist/cjs/ion-refresher_2.cjs.entry.js +3 -3
  81. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  82. package/dist/cjs/ion-segment_2.cjs.entry.js +1 -1
  83. package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
  84. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  85. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  86. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  87. package/dist/cjs/ion-toast.cjs.entry.js +2 -2
  88. package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
  89. package/dist/cjs/ionic.cjs.js +1 -1
  90. package/dist/cjs/loader.cjs.js +1 -1
  91. package/dist/collection/components/action-sheet/action-sheet.ios.css +4 -4
  92. package/dist/collection/components/action-sheet/action-sheet.md.css +1 -1
  93. package/dist/collection/components/alert/alert.ios.css +10 -58
  94. package/dist/collection/components/alert/alert.md.css +19 -115
  95. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +9 -9
  96. package/dist/collection/components/breadcrumb/breadcrumb.md.css +9 -9
  97. package/dist/collection/components/card/card.ios.css +1 -1
  98. package/dist/collection/components/card/card.md.css +1 -1
  99. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +1 -1
  100. package/dist/collection/components/card-subtitle/card-subtitle.md.css +1 -1
  101. package/dist/collection/components/card-title/card-title.md.css +1 -1
  102. package/dist/collection/components/checkbox/checkbox.ios.css +3 -21
  103. package/dist/collection/components/checkbox/checkbox.md.css +3 -21
  104. package/dist/collection/components/datetime/datetime.ios.css +10 -32
  105. package/dist/collection/components/datetime/datetime.md.css +11 -33
  106. package/dist/collection/components/datetime-button/datetime-button.css +1 -1
  107. package/dist/collection/components/fab-list/fab-list.css +4 -42
  108. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +3 -3
  109. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +3 -3
  110. package/dist/collection/components/input/input.ios.css +7 -31
  111. package/dist/collection/components/input/input.js +2 -41
  112. package/dist/collection/components/input/input.md.css +19 -86
  113. package/dist/collection/components/item/item.ios.css +2 -2
  114. package/dist/collection/components/item/item.md.css +11 -30
  115. package/dist/collection/components/item-divider/item-divider.ios.css +3 -3
  116. package/dist/collection/components/item-divider/item-divider.md.css +3 -3
  117. package/dist/collection/components/item-options/item-options.ios.css +1 -1
  118. package/dist/collection/components/item-options/item-options.md.css +1 -1
  119. package/dist/collection/components/label/label.ios.css +1 -1
  120. package/dist/collection/components/label/label.md.css +1 -1
  121. package/dist/collection/components/list/list.md.css +2 -26
  122. package/dist/collection/components/list-header/list-header.ios.css +2 -2
  123. package/dist/collection/components/list-header/list-header.md.css +1 -1
  124. package/dist/collection/components/loading/loading.ios.css +2 -2
  125. package/dist/collection/components/loading/loading.md.css +2 -2
  126. package/dist/collection/components/menu/menu.ios.css +8 -50
  127. package/dist/collection/components/menu/menu.md.css +8 -50
  128. package/dist/collection/components/modal/modal.ios.css +1 -1
  129. package/dist/collection/components/modal/modal.md.css +1 -1
  130. package/dist/collection/components/note/note.ios.css +1 -1
  131. package/dist/collection/components/note/note.md.css +1 -1
  132. package/dist/collection/components/picker/picker.ios.css +5 -43
  133. package/dist/collection/components/picker/picker.md.css +4 -42
  134. package/dist/collection/components/picker-legacy/picker.ios.css +7 -74
  135. package/dist/collection/components/picker-legacy/picker.md.css +9 -76
  136. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +2 -26
  137. package/dist/collection/components/picker-legacy-column/picker-column.md.css +2 -26
  138. package/dist/collection/components/popover/popover.ios.css +3 -27
  139. package/dist/collection/components/radio/radio.ios.css +5 -42
  140. package/dist/collection/components/radio/radio.md.css +5 -42
  141. package/dist/collection/components/range/range.ios.css +11 -80
  142. package/dist/collection/components/range/range.md.css +16 -132
  143. package/dist/collection/components/refresher/refresher.ios.css +4 -27
  144. package/dist/collection/components/refresher/refresher.md.css +5 -28
  145. package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +2 -1
  146. package/dist/collection/components/refresher-content/refresher-content.js +1 -1
  147. package/dist/collection/components/searchbar/searchbar.ios.css +7 -55
  148. package/dist/collection/components/searchbar/searchbar.md.css +10 -82
  149. package/dist/collection/components/segment-button/segment-button.ios.css +3 -3
  150. package/dist/collection/components/select/select.ios.css +5 -23
  151. package/dist/collection/components/select/select.md.css +18 -79
  152. package/dist/collection/components/split-pane/split-pane.ios.css +1 -1
  153. package/dist/collection/components/split-pane/split-pane.md.css +1 -1
  154. package/dist/collection/components/tab-bar/tab-bar.ios.css +3 -3
  155. package/dist/collection/components/tab-bar/tab-bar.md.css +2 -2
  156. package/dist/collection/components/tab-button/tab-button.ios.css +10 -93
  157. package/dist/collection/components/tab-button/tab-button.md.css +10 -93
  158. package/dist/collection/components/textarea/textarea.ios.css +6 -30
  159. package/dist/collection/components/textarea/textarea.md.css +18 -85
  160. package/dist/collection/components/title/title.ios.css +2 -21
  161. package/dist/collection/components/toast/test/a11y/toast.e2e.js +0 -33
  162. package/dist/collection/components/toast/toast.ios.css +7 -54
  163. package/dist/collection/components/toast/toast.md.css +8 -55
  164. package/dist/collection/components/toggle/toggle.ios.css +3 -21
  165. package/dist/collection/components/toggle/toggle.md.css +3 -21
  166. package/dist/collection/components/toolbar/toolbar.ios.css +2 -2
  167. package/dist/collection/components/toolbar/toolbar.md.css +1 -1
  168. package/dist/collection/themes/test/colors/theme.e2e.js +0 -56
  169. package/dist/docs.json +1 -54
  170. package/dist/esm/ion-action-sheet.entry.js +2 -2
  171. package/dist/esm/ion-alert.entry.js +2 -2
  172. package/dist/esm/ion-app_8.entry.js +3 -3
  173. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  174. package/dist/esm/ion-card_5.entry.js +5 -5
  175. package/dist/esm/ion-checkbox.entry.js +2 -2
  176. package/dist/esm/ion-datetime-button.entry.js +2 -2
  177. package/dist/esm/ion-datetime_3.entry.js +6 -6
  178. package/dist/esm/ion-fab_3.entry.js +1 -1
  179. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  180. package/dist/esm/ion-input.entry.js +4 -6
  181. package/dist/esm/ion-item-option_3.entry.js +2 -2
  182. package/dist/esm/ion-item_8.entry.js +11 -11
  183. package/dist/esm/ion-loading.entry.js +2 -2
  184. package/dist/esm/ion-menu_3.entry.js +2 -2
  185. package/dist/esm/ion-modal.entry.js +2 -2
  186. package/dist/esm/ion-picker.entry.js +2 -2
  187. package/dist/esm/ion-popover.entry.js +1 -1
  188. package/dist/esm/ion-radio_2.entry.js +2 -2
  189. package/dist/esm/ion-range.entry.js +2 -2
  190. package/dist/esm/ion-refresher_2.entry.js +3 -3
  191. package/dist/esm/ion-searchbar.entry.js +2 -2
  192. package/dist/esm/ion-segment_2.entry.js +1 -1
  193. package/dist/esm/ion-select_3.entry.js +2 -2
  194. package/dist/esm/ion-split-pane.entry.js +2 -2
  195. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  196. package/dist/esm/ion-textarea.entry.js +2 -2
  197. package/dist/esm/ion-toast.entry.js +2 -2
  198. package/dist/esm/ion-toggle.entry.js +2 -2
  199. package/dist/esm/ionic.js +1 -1
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  202. package/dist/esm-es5/ion-alert.entry.js +1 -1
  203. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  204. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  205. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  206. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  207. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  208. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  209. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  210. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  211. package/dist/esm-es5/ion-input.entry.js +1 -1
  212. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  213. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  214. package/dist/esm-es5/ion-loading.entry.js +1 -1
  215. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  216. package/dist/esm-es5/ion-modal.entry.js +1 -1
  217. package/dist/esm-es5/ion-picker.entry.js +1 -1
  218. package/dist/esm-es5/ion-popover.entry.js +1 -1
  219. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  220. package/dist/esm-es5/ion-range.entry.js +1 -1
  221. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  222. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  223. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  224. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  225. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  226. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  227. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  228. package/dist/esm-es5/ion-toast.entry.js +1 -1
  229. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  230. package/dist/esm-es5/ionic.js +1 -1
  231. package/dist/esm-es5/loader.js +1 -1
  232. package/dist/html.html-data.json +0 -8
  233. package/dist/ionic/ionic.esm.js +1 -1
  234. package/dist/ionic/{p-3cf67784.entry.js → p-029891a2.entry.js} +1 -1
  235. package/dist/ionic/p-05266a75.entry.js +4 -0
  236. package/dist/ionic/p-055aee88.system.entry.js +4 -0
  237. package/dist/ionic/p-0b27e3f9.entry.js +4 -0
  238. package/dist/ionic/p-127ff448.entry.js +4 -0
  239. package/dist/ionic/p-18858f40.entry.js +4 -0
  240. package/dist/ionic/p-1a5f0313.system.js +1 -1
  241. package/dist/ionic/p-26976bfc.system.entry.js +4 -0
  242. package/dist/ionic/p-2e93a307.system.entry.js +4 -0
  243. package/dist/ionic/p-359da6bc.entry.js +4 -0
  244. package/dist/ionic/p-39af44bb.entry.js +4 -0
  245. package/dist/ionic/p-3bb8dba2.system.entry.js +4 -0
  246. package/dist/ionic/p-4210519e.entry.js +4 -0
  247. package/dist/ionic/p-4565aa49.system.entry.js +4 -0
  248. package/dist/ionic/p-467ec026.entry.js +4 -0
  249. package/dist/ionic/p-4b890ea2.entry.js +4 -0
  250. package/dist/ionic/{p-32b129a2.entry.js → p-4b94c354.entry.js} +1 -1
  251. package/dist/ionic/p-4f18d611.system.entry.js +4 -0
  252. package/dist/ionic/p-567ba50a.system.entry.js +4 -0
  253. package/dist/ionic/p-598bd8e2.entry.js +4 -0
  254. package/dist/ionic/{p-0d850325.entry.js → p-5a85d71d.entry.js} +1 -1
  255. package/dist/ionic/p-673614dd.system.entry.js +4 -0
  256. package/dist/ionic/{p-b8fbc01d.entry.js → p-67c1996d.entry.js} +1 -1
  257. package/dist/ionic/p-6ba863b1.system.entry.js +4 -0
  258. package/dist/ionic/{p-14196559.entry.js → p-7178018d.entry.js} +1 -1
  259. package/dist/ionic/p-731c9b0c.system.entry.js +4 -0
  260. package/dist/ionic/p-735807f6.system.entry.js +4 -0
  261. package/dist/ionic/p-77166522.system.entry.js +4 -0
  262. package/dist/ionic/{p-f003e500.system.entry.js → p-7751def0.system.entry.js} +1 -1
  263. package/dist/ionic/p-7a15321a.entry.js +4 -0
  264. package/dist/ionic/{p-b6e4e9ce.system.entry.js → p-7a1ef06a.system.entry.js} +1 -1
  265. package/dist/ionic/p-7a2c6bb5.entry.js +4 -0
  266. package/dist/ionic/p-85897798.entry.js +4 -0
  267. package/dist/ionic/p-85cb3f46.entry.js +4 -0
  268. package/dist/ionic/{p-c6a6ffe6.entry.js → p-85e04029.entry.js} +1 -1
  269. package/dist/ionic/{p-cd6a60d2.entry.js → p-870453fd.entry.js} +1 -1
  270. package/dist/ionic/{p-8aaade76.entry.js → p-8a66c00e.entry.js} +1 -1
  271. package/dist/ionic/p-92453558.entry.js +4 -0
  272. package/dist/ionic/{p-0f55b1b0.entry.js → p-95d8071f.entry.js} +1 -1
  273. package/dist/ionic/{p-69926b34.entry.js → p-9928b546.entry.js} +1 -1
  274. package/dist/ionic/{p-97657f32.system.entry.js → p-a11e45fe.system.entry.js} +1 -1
  275. package/dist/ionic/p-b0ab5300.entry.js +4 -0
  276. package/dist/ionic/p-b3196337.system.entry.js +4 -0
  277. package/dist/ionic/p-bad61026.system.entry.js +4 -0
  278. package/dist/ionic/p-c9b8f9e5.system.entry.js +4 -0
  279. package/dist/ionic/p-cb304e5f.system.entry.js +4 -0
  280. package/dist/ionic/p-d05259ce.system.entry.js +4 -0
  281. package/dist/ionic/p-d5d46104.system.entry.js +4 -0
  282. package/dist/ionic/{p-659086a2.system.entry.js → p-dc5a71e3.system.entry.js} +1 -1
  283. package/dist/ionic/{p-5186ff3f.system.entry.js → p-e0909061.system.entry.js} +1 -1
  284. package/dist/ionic/p-e1635f65.entry.js +4 -0
  285. package/dist/ionic/p-e219aec9.system.entry.js +4 -0
  286. package/dist/ionic/p-e28a6fd5.entry.js +4 -0
  287. package/dist/ionic/{p-381ca6f8.system.entry.js → p-ea90bf85.system.entry.js} +1 -1
  288. package/dist/ionic/p-ee1214e0.system.entry.js +4 -0
  289. package/dist/ionic/p-f065a07b.entry.js +4 -0
  290. package/dist/ionic/{p-16e781a6.system.entry.js → p-f3478ed6.system.entry.js} +1 -1
  291. package/dist/ionic/p-f62739dd.system.entry.js +4 -0
  292. package/dist/ionic/p-ffaba024.system.entry.js +4 -0
  293. package/dist/types/components/input/input.d.ts +0 -6
  294. package/dist/types/components.d.ts +0 -12
  295. package/dist/types/utils/test/playwright/generator.d.ts +1 -3
  296. package/hydrate/index.js +77 -81
  297. package/package.json +1 -1
  298. package/css/themes/high-contrast-dark.always.css +0 -180
  299. package/css/themes/high-contrast-dark.always.css.map +0 -1
  300. package/css/themes/high-contrast-dark.class.css +0 -180
  301. package/css/themes/high-contrast-dark.class.css.map +0 -1
  302. package/css/themes/high-contrast-dark.css +0 -3
  303. package/css/themes/high-contrast-dark.css.map +0 -1
  304. package/css/themes/high-contrast-dark.system.css +0 -182
  305. package/css/themes/high-contrast-dark.system.css.map +0 -1
  306. package/css/themes/high-contrast-light.always.css +0 -101
  307. package/css/themes/high-contrast-light.always.css.map +0 -1
  308. package/css/themes/high-contrast-light.class.css +0 -101
  309. package/css/themes/high-contrast-light.class.css.map +0 -1
  310. package/css/themes/high-contrast-light.css +0 -3
  311. package/css/themes/high-contrast-light.css.map +0 -1
  312. package/css/themes/high-contrast-light.system.css +0 -103
  313. package/css/themes/high-contrast-light.system.css.map +0 -1
  314. package/dist/ionic/p-0055506a.entry.js +0 -4
  315. package/dist/ionic/p-07d725a7.entry.js +0 -4
  316. package/dist/ionic/p-0ac49b0c.system.entry.js +0 -4
  317. package/dist/ionic/p-14b8100f.system.entry.js +0 -4
  318. package/dist/ionic/p-15878390.system.entry.js +0 -4
  319. package/dist/ionic/p-1c445de9.entry.js +0 -4
  320. package/dist/ionic/p-2800e6d5.system.entry.js +0 -4
  321. package/dist/ionic/p-283d8f5e.system.entry.js +0 -4
  322. package/dist/ionic/p-2aa29487.system.entry.js +0 -4
  323. package/dist/ionic/p-305423e0.entry.js +0 -4
  324. package/dist/ionic/p-327211c1.entry.js +0 -4
  325. package/dist/ionic/p-34f05cec.entry.js +0 -4
  326. package/dist/ionic/p-3587df88.system.entry.js +0 -4
  327. package/dist/ionic/p-3f3ae637.system.entry.js +0 -4
  328. package/dist/ionic/p-438b6002.system.entry.js +0 -4
  329. package/dist/ionic/p-4eaf5dcd.system.entry.js +0 -4
  330. package/dist/ionic/p-6793b96e.system.entry.js +0 -4
  331. package/dist/ionic/p-6b0c8263.entry.js +0 -4
  332. package/dist/ionic/p-7e8ef0bb.system.entry.js +0 -4
  333. package/dist/ionic/p-89c5f8ba.system.entry.js +0 -4
  334. package/dist/ionic/p-8a1d33e3.system.entry.js +0 -4
  335. package/dist/ionic/p-97e39972.system.entry.js +0 -4
  336. package/dist/ionic/p-9b930e4f.entry.js +0 -4
  337. package/dist/ionic/p-a114831c.entry.js +0 -4
  338. package/dist/ionic/p-ae8747aa.entry.js +0 -4
  339. package/dist/ionic/p-b13f5e6a.entry.js +0 -4
  340. package/dist/ionic/p-b8213f04.entry.js +0 -4
  341. package/dist/ionic/p-d0291fe9.entry.js +0 -4
  342. package/dist/ionic/p-d5a21de8.entry.js +0 -4
  343. package/dist/ionic/p-db00f04e.entry.js +0 -4
  344. package/dist/ionic/p-ddf79d90.system.entry.js +0 -4
  345. package/dist/ionic/p-def451e2.system.entry.js +0 -4
  346. package/dist/ionic/p-df5134fa.entry.js +0 -4
  347. package/dist/ionic/p-df7aaa62.entry.js +0 -4
  348. package/dist/ionic/p-dfd21411.system.entry.js +0 -4
  349. package/dist/ionic/p-e9a36c6f.entry.js +0 -4
  350. package/dist/ionic/p-ef6ec008.system.entry.js +0 -4
  351. package/dist/ionic/p-ef9e6f77.system.entry.js +0 -4
  352. package/dist/ionic/p-f27b18ba.system.entry.js +0 -4
  353. package/dist/ionic/p-f62122bb.system.entry.js +0 -4
  354. package/dist/ionic/p-fdc3ff96.entry.js +0 -4
@@ -84,7 +84,7 @@
84
84
  --placeholder-color: initial;
85
85
  --placeholder-font-style: initial;
86
86
  --placeholder-font-weight: initial;
87
- --placeholder-opacity: var(--ion-placeholder-opacity, 0.6);
87
+ --placeholder-opacity: 0.6;
88
88
  --padding-top: 0;
89
89
  --padding-end: 0;
90
90
  --padding-bottom: 0;
@@ -275,32 +275,8 @@
275
275
  position: absolute;
276
276
  pointer-events: none;
277
277
  }
278
- @supports (inset-inline-start: 0) {
279
- .cloned-input {
280
- inset-inline-start: 0;
281
- }
282
- }
283
- @supports not (inset-inline-start: 0) {
284
- .cloned-input {
285
- left: 0;
286
- }
287
- :host-context([dir=rtl]) .cloned-input {
288
- left: unset;
289
- right: unset;
290
- right: 0;
291
- }
292
- [dir=rtl] .cloned-input {
293
- left: unset;
294
- right: unset;
295
- right: 0;
296
- }
297
- @supports selector(:dir(rtl)) {
298
- .cloned-input:dir(rtl) {
299
- left: unset;
300
- right: unset;
301
- right: 0;
302
- }
303
- }
278
+ .cloned-input {
279
+ inset-inline-start: 0;
304
280
  }
305
281
 
306
282
  /**
@@ -490,7 +466,7 @@
490
466
 
491
467
  .textarea-bottom .helper-text {
492
468
  display: block;
493
- color: var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));
469
+ color: var(--ion-color-step-550, #737373);
494
470
  }
495
471
 
496
472
  :host(.ion-touched.ion-invalid) .textarea-bottom .error-text {
@@ -509,7 +485,7 @@
509
485
  */
510
486
  -webkit-margin-start: auto;
511
487
  margin-inline-start: auto;
512
- color: var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));
488
+ color: var(--ion-color-step-550, #737373);
513
489
  white-space: nowrap;
514
490
  padding-inline-start: 16px;
515
491
  }
@@ -941,7 +917,7 @@
941
917
  */
942
918
  :host {
943
919
  --border-width: 0.55px;
944
- --border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));
920
+ --border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));
945
921
  --padding-top: 10px;
946
922
  --padding-end: 0px;
947
923
  --padding-bottom: 8px;
@@ -84,7 +84,7 @@
84
84
  --placeholder-color: initial;
85
85
  --placeholder-font-style: initial;
86
86
  --placeholder-font-weight: initial;
87
- --placeholder-opacity: var(--ion-placeholder-opacity, 0.6);
87
+ --placeholder-opacity: 0.6;
88
88
  --padding-top: 0;
89
89
  --padding-end: 0;
90
90
  --padding-bottom: 0;
@@ -275,32 +275,8 @@
275
275
  position: absolute;
276
276
  pointer-events: none;
277
277
  }
278
- @supports (inset-inline-start: 0) {
279
- .cloned-input {
280
- inset-inline-start: 0;
281
- }
282
- }
283
- @supports not (inset-inline-start: 0) {
284
- .cloned-input {
285
- left: 0;
286
- }
287
- :host-context([dir=rtl]) .cloned-input {
288
- left: unset;
289
- right: unset;
290
- right: 0;
291
- }
292
- [dir=rtl] .cloned-input {
293
- left: unset;
294
- right: unset;
295
- right: 0;
296
- }
297
- @supports selector(:dir(rtl)) {
298
- .cloned-input:dir(rtl) {
299
- left: unset;
300
- right: unset;
301
- right: 0;
302
- }
303
- }
278
+ .cloned-input {
279
+ inset-inline-start: 0;
304
280
  }
305
281
 
306
282
  /**
@@ -490,7 +466,7 @@
490
466
 
491
467
  .textarea-bottom .helper-text {
492
468
  display: block;
493
- color: var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));
469
+ color: var(--ion-color-step-550, #737373);
494
470
  }
495
471
 
496
472
  :host(.ion-touched.ion-invalid) .textarea-bottom .error-text {
@@ -509,7 +485,7 @@
509
485
  */
510
486
  -webkit-margin-start: auto;
511
487
  margin-inline-start: auto;
512
- color: var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));
488
+ color: var(--ion-color-step-550, #737373);
513
489
  white-space: nowrap;
514
490
  padding-inline-start: 16px;
515
491
  }
@@ -995,8 +971,8 @@
995
971
  * }
996
972
  */
997
973
  :host(.textarea-fill-solid) {
998
- --background: var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));
999
- --border-color: var(--ion-color-step-500, var(--ion-background-color-step-500, gray));
974
+ --background: var(--ion-color-step-50, #f2f2f2);
975
+ --border-color: var(--ion-color-step-500, gray);
1000
976
  --border-radius: 4px;
1001
977
  --padding-start: 16px;
1002
978
  --padding-end: 16px;
@@ -1032,8 +1008,8 @@
1032
1008
  */
1033
1009
  @media (any-hover: hover) {
1034
1010
  :host(.textarea-fill-solid:hover) {
1035
- --background: var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));
1036
- --border-color: var(--ion-color-step-750, var(--ion-background-color-step-750, #404040));
1011
+ --background: var(--ion-color-step-100, #e6e6e6);
1012
+ --border-color: var(--ion-color-step-750, #404040);
1037
1013
  }
1038
1014
  }
1039
1015
  /**
@@ -1041,8 +1017,8 @@
1041
1017
  * much darker on focus.
1042
1018
  */
1043
1019
  :host(.textarea-fill-solid.has-focus) {
1044
- --background: var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));
1045
- --border-color: var(--ion-color-step-750, var(--ion-background-color-step-750, #404040));
1020
+ --background: var(--ion-color-step-150, #d9d9d9);
1021
+ --border-color: var(--ion-color-step-750, #404040);
1046
1022
  }
1047
1023
 
1048
1024
  :host(.textarea-fill-solid) .textarea-wrapper {
@@ -1135,7 +1111,7 @@
1135
1111
  * }
1136
1112
  */
1137
1113
  :host(.textarea-fill-outline) {
1138
- --border-color: var(--ion-color-step-300, var(--ion-background-color-step-300, #b3b3b3));
1114
+ --border-color: var(--ion-color-step-300, #b3b3b3);
1139
1115
  --border-radius: 4px;
1140
1116
  --padding-start: 16px;
1141
1117
  --padding-end: 16px;
@@ -1163,7 +1139,7 @@
1163
1139
  */
1164
1140
  @media (any-hover: hover) {
1165
1141
  :host(.textarea-fill-outline:hover) {
1166
- --border-color: var(--ion-color-step-750, var(--ion-background-color-step-750, #404040));
1142
+ --border-color: var(--ion-color-step-750, #404040);
1167
1143
  }
1168
1144
  }
1169
1145
  /**
@@ -1405,7 +1381,7 @@
1405
1381
 
1406
1382
  :host {
1407
1383
  --border-width: 1px;
1408
- --border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));
1384
+ --border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));
1409
1385
  --padding-top: 18px;
1410
1386
  --padding-end: 0px;
1411
1387
  --padding-bottom: 8px;
@@ -1466,32 +1442,8 @@
1466
1442
  transition: transform 200ms;
1467
1443
  background: var(--highlight-color);
1468
1444
  }
1469
- @supports (inset-inline-start: 0) {
1470
- .textarea-highlight {
1471
- inset-inline-start: 0;
1472
- }
1473
- }
1474
- @supports not (inset-inline-start: 0) {
1475
- .textarea-highlight {
1476
- left: 0;
1477
- }
1478
- :host-context([dir=rtl]) .textarea-highlight {
1479
- left: unset;
1480
- right: unset;
1481
- right: 0;
1482
- }
1483
- [dir=rtl] .textarea-highlight {
1484
- left: unset;
1485
- right: unset;
1486
- right: 0;
1487
- }
1488
- @supports selector(:dir(rtl)) {
1489
- .textarea-highlight:dir(rtl) {
1490
- left: unset;
1491
- right: unset;
1492
- right: 0;
1493
- }
1494
- }
1445
+ .textarea-highlight {
1446
+ inset-inline-start: 0;
1495
1447
  }
1496
1448
 
1497
1449
  :host(.has-focus) .textarea-highlight {
@@ -1506,27 +1458,8 @@
1506
1458
  :host(.in-item) .textarea-highlight {
1507
1459
  bottom: 0;
1508
1460
  }
1509
- @supports (inset-inline-start: 0) {
1510
- :host(.in-item) .textarea-highlight {
1511
- inset-inline-start: 0;
1512
- }
1513
- }
1514
- @supports not (inset-inline-start: 0) {
1515
- :host(.in-item) .textarea-highlight {
1516
- left: 0;
1517
- }
1518
- :host-context([dir=rtl]):host(.in-item) .textarea-highlight, :host-context([dir=rtl]).in-item .textarea-highlight {
1519
- left: unset;
1520
- right: unset;
1521
- right: 0;
1522
- }
1523
- @supports selector(:dir(rtl)) {
1524
- :host(.in-item:dir(rtl)) .textarea-highlight {
1525
- left: unset;
1526
- right: unset;
1527
- right: 0;
1528
- }
1529
- }
1461
+ :host(.in-item) .textarea-highlight {
1462
+ inset-inline-start: 0;
1530
1463
  }
1531
1464
 
1532
1465
  :host(.textarea-shape-round) {
@@ -100,27 +100,8 @@
100
100
  box-sizing: border-box;
101
101
  pointer-events: none;
102
102
  }
103
- @supports (inset-inline-start: 0) {
104
- :host {
105
- inset-inline-start: 0;
106
- }
107
- }
108
- @supports not (inset-inline-start: 0) {
109
- :host {
110
- left: 0;
111
- }
112
- :host-context([dir=rtl]) {
113
- left: unset;
114
- right: unset;
115
- right: 0;
116
- }
117
- @supports selector(:dir(rtl)) {
118
- :host(:dir(rtl)) {
119
- left: unset;
120
- right: unset;
121
- right: 0;
122
- }
123
- }
103
+ :host {
104
+ inset-inline-start: 0;
124
105
  }
125
106
 
126
107
  :host(.title-small) {
@@ -175,36 +175,3 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
175
175
  });
176
176
  });
177
177
  });
178
- /**
179
- * High contrast mode tests
180
- */
181
- configs({ directions: ['ltr'], themes: ['high-contrast-dark', 'high-contrast-light'] }).forEach(({ title, config, screenshot }) => {
182
- test.describe(title('toast: high contrast: buttons'), () => {
183
- test.beforeEach(async ({ page }) => {
184
- await page.setContent(`
185
- <ion-toast is-open="true" header="Testing" message="Hello world"></ion-toast>
186
- <script>
187
- const toast = document.querySelector('ion-toast');
188
- toast.buttons = [
189
- { text: 'Cancel', role: 'cancel' },
190
- { text: 'OK' }
191
- ];
192
- </script>
193
- `, config);
194
- });
195
- test('should not have visual regressions', async ({ page }) => {
196
- const toast = page.locator('ion-toast');
197
- await expect(toast).toBeVisible();
198
- const toastWrapper = toast.locator('.toast-wrapper');
199
- await expect(toastWrapper).toHaveScreenshot(screenshot(`toast-high-contrast-buttons`));
200
- });
201
- test('should pass AAA guidelines', async ({ page }) => {
202
- const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent');
203
- await ionToastDidPresent.next();
204
- const results = await new AxeBuilder({ page })
205
- .options({ rules: { 'color-contrast-enhanced': { enabled: true } } })
206
- .analyze();
207
- expect(results.violations).toEqual([]);
208
- });
209
- });
210
- });
@@ -102,27 +102,8 @@
102
102
  z-index: 1001;
103
103
  pointer-events: none;
104
104
  }
105
- @supports (inset-inline-start: 0) {
106
- :host {
107
- inset-inline-start: 0;
108
- }
109
- }
110
- @supports not (inset-inline-start: 0) {
111
- :host {
112
- left: 0;
113
- }
114
- :host-context([dir=rtl]) {
115
- left: unset;
116
- right: unset;
117
- right: 0;
118
- }
119
- @supports selector(:dir(rtl)) {
120
- :host(:dir(rtl)) {
121
- left: unset;
122
- right: unset;
123
- right: 0;
124
- }
125
- }
105
+ :host {
106
+ inset-inline-start: 0;
126
107
  }
127
108
 
128
109
  :host(.overlay-hidden) {
@@ -156,37 +137,9 @@
156
137
  background: var(--background);
157
138
  box-shadow: var(--box-shadow);
158
139
  }
159
- @supports (inset-inline-start: 0) {
160
- .toast-wrapper {
161
- inset-inline-start: var(--start);
162
- inset-inline-end: var(--end);
163
- }
164
- }
165
- @supports not (inset-inline-start: 0) {
166
- .toast-wrapper {
167
- left: var(--start);
168
- right: var(--end);
169
- }
170
- :host-context([dir=rtl]) .toast-wrapper {
171
- left: unset;
172
- right: unset;
173
- left: var(--end);
174
- right: var(--start);
175
- }
176
- [dir=rtl] .toast-wrapper {
177
- left: unset;
178
- right: unset;
179
- left: var(--end);
180
- right: var(--start);
181
- }
182
- @supports selector(:dir(rtl)) {
183
- .toast-wrapper:dir(rtl) {
184
- left: unset;
185
- right: unset;
186
- left: var(--end);
187
- right: var(--start);
188
- }
189
- }
140
+ .toast-wrapper {
141
+ inset-inline-start: var(--start);
142
+ inset-inline-end: var(--end);
190
143
  }
191
144
 
192
145
  .toast-wrapper.toast-top {
@@ -321,10 +274,10 @@
321
274
  * }
322
275
  */
323
276
  :host {
324
- --background: var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));
277
+ --background: var(--ion-color-step-50, #f2f2f2);
325
278
  --border-radius: 14px;
326
279
  --button-color: var(--ion-color-primary, #0054e9);
327
- --color: var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));
280
+ --color: var(--ion-color-step-850, #262626);
328
281
  --max-width: 700px;
329
282
  --max-height: 478px;
330
283
  --start: 10px;
@@ -102,27 +102,8 @@
102
102
  z-index: 1001;
103
103
  pointer-events: none;
104
104
  }
105
- @supports (inset-inline-start: 0) {
106
- :host {
107
- inset-inline-start: 0;
108
- }
109
- }
110
- @supports not (inset-inline-start: 0) {
111
- :host {
112
- left: 0;
113
- }
114
- :host-context([dir=rtl]) {
115
- left: unset;
116
- right: unset;
117
- right: 0;
118
- }
119
- @supports selector(:dir(rtl)) {
120
- :host(:dir(rtl)) {
121
- left: unset;
122
- right: unset;
123
- right: 0;
124
- }
125
- }
105
+ :host {
106
+ inset-inline-start: 0;
126
107
  }
127
108
 
128
109
  :host(.overlay-hidden) {
@@ -156,37 +137,9 @@
156
137
  background: var(--background);
157
138
  box-shadow: var(--box-shadow);
158
139
  }
159
- @supports (inset-inline-start: 0) {
160
- .toast-wrapper {
161
- inset-inline-start: var(--start);
162
- inset-inline-end: var(--end);
163
- }
164
- }
165
- @supports not (inset-inline-start: 0) {
166
- .toast-wrapper {
167
- left: var(--start);
168
- right: var(--end);
169
- }
170
- :host-context([dir=rtl]) .toast-wrapper {
171
- left: unset;
172
- right: unset;
173
- left: var(--end);
174
- right: var(--start);
175
- }
176
- [dir=rtl] .toast-wrapper {
177
- left: unset;
178
- right: unset;
179
- left: var(--end);
180
- right: var(--start);
181
- }
182
- @supports selector(:dir(rtl)) {
183
- .toast-wrapper:dir(rtl) {
184
- left: unset;
185
- right: unset;
186
- left: var(--end);
187
- right: var(--start);
188
- }
189
- }
140
+ .toast-wrapper {
141
+ inset-inline-start: var(--start);
142
+ inset-inline-end: var(--end);
190
143
  }
191
144
 
192
145
  .toast-wrapper.toast-top {
@@ -321,11 +274,11 @@
321
274
  * }
322
275
  */
323
276
  :host {
324
- --background: var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));
277
+ --background: var(--ion-color-step-800, #333333);
325
278
  --border-radius: 4px;
326
279
  --box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
327
280
  --button-color: var(--ion-color-primary, #0054e9);
328
- --color: var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));
281
+ --color: var(--ion-color-step-50, #f2f2f2);
329
282
  --max-width: 700px;
330
283
  --start: 8px;
331
284
  --end: 8px;
@@ -404,7 +357,7 @@
404
357
  }
405
358
 
406
359
  .toast-button-cancel {
407
- color: var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6));
360
+ color: var(--ion-color-step-100, #e6e6e6);
408
361
  }
409
362
 
410
363
  .toast-button-icon-only {
@@ -129,28 +129,10 @@
129
129
  opacity: 0;
130
130
  pointer-events: none;
131
131
  }
132
- @supports (inset-inline-start: 0) {
133
- :host(.legacy-toggle) label {
134
- inset-inline-start: 0;
135
- }
136
- }
137
- @supports not (inset-inline-start: 0) {
138
- :host(.legacy-toggle) label {
139
- left: 0;
140
- }
141
- :host-context([dir=rtl]):host(.legacy-toggle) label, :host-context([dir=rtl]).legacy-toggle label {
142
- left: unset;
143
- right: unset;
144
- right: 0;
145
- }
146
- @supports selector(:dir(rtl)) {
147
- :host(.legacy-toggle:dir(rtl)) label {
148
- left: unset;
149
- right: unset;
150
- right: 0;
151
- }
152
- }
132
+ :host(.legacy-toggle) label {
133
+ inset-inline-start: 0;
153
134
  }
135
+
154
136
  :host(.legacy-toggle) label::-moz-focus-inner {
155
137
  border: 0;
156
138
  }
@@ -129,28 +129,10 @@
129
129
  opacity: 0;
130
130
  pointer-events: none;
131
131
  }
132
- @supports (inset-inline-start: 0) {
133
- :host(.legacy-toggle) label {
134
- inset-inline-start: 0;
135
- }
136
- }
137
- @supports not (inset-inline-start: 0) {
138
- :host(.legacy-toggle) label {
139
- left: 0;
140
- }
141
- :host-context([dir=rtl]):host(.legacy-toggle) label, :host-context([dir=rtl]).legacy-toggle label {
142
- left: unset;
143
- right: unset;
144
- right: 0;
145
- }
146
- @supports selector(:dir(rtl)) {
147
- :host(.legacy-toggle:dir(rtl)) label {
148
- left: unset;
149
- right: unset;
150
- right: 0;
151
- }
152
- }
132
+ :host(.legacy-toggle) label {
133
+ inset-inline-start: 0;
153
134
  }
135
+
154
136
  :host(.legacy-toggle) label::-moz-focus-inner {
155
137
  border: 0;
156
138
  }
@@ -198,9 +198,9 @@
198
198
  * }
199
199
  */
200
200
  :host {
201
- --background: var(--ion-toolbar-background, var(--ion-color-step-50, var(--ion-background-color-step-50, #f7f7f7)));
201
+ --background: var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));
202
202
  --color: var(--ion-toolbar-color, var(--ion-text-color, #000));
203
- --border-color: var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.2)))));
203
+ --border-color: var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));
204
204
  --padding-top: 3px;
205
205
  --padding-bottom: 3px;
206
206
  --padding-start: 4px;
@@ -200,7 +200,7 @@
200
200
  :host {
201
201
  --background: var(--ion-toolbar-background, var(--ion-background-color, #fff));
202
202
  --color: var(--ion-toolbar-color, var(--ion-text-color, #424242));
203
- --border-color: var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, #c1c4cd))));
203
+ --border-color: var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));
204
204
  --padding-top: 0;
205
205
  --padding-bottom: 0;
206
206
  --padding-start: 0;
@@ -4,15 +4,10 @@
4
4
  import AxeBuilder from "@axe-core/playwright";
5
5
  import { expect } from "@playwright/test";
6
6
  import { configs, test } from "../../../utils/test/playwright/index";
7
- /**
8
- * Small text is defined as 14pt (~18.5px)
9
- * when computing color contrast: https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
10
- */
11
7
  const styleTestHelpers = `
12
8
  <style>
13
9
  main {
14
10
  background: var(--ion-color-contrast);
15
- font-size: 14pt;
16
11
  }
17
12
  .ion-background {
18
13
  background: var(--ion-color-base);
@@ -117,54 +112,3 @@ configs({ modes: ['md'], directions: ['ltr'], themes: ['light', 'dark'] }).forEa
117
112
  }
118
113
  });
119
114
  });
120
- configs({ modes: ['md'], directions: ['ltr'], themes: ['high-contrast-light', 'high-contrast-dark'] }).forEach(({ config, title }) => {
121
- const colors = ['primary', 'secondary', 'tertiary', 'success', 'warning', 'danger', 'light', 'medium', 'dark'];
122
- test.describe(title('theme'), () => {
123
- test.beforeEach(({ skip }) => {
124
- skip.browser('firefox', 'Color contrast ratio is consistent across browsers');
125
- skip.browser('webkit', 'Color contrast ratio is consistent across browsers');
126
- });
127
- for (const color of colors) {
128
- test(`color "${color}" should pass AAA guidelines`, async ({ page }) => {
129
- await page.setContent(`${styleTestHelpers}
130
- <main class="ion-color-${color}">
131
- <p class="ion-color">Hello World</p>
132
- </main>`, config);
133
- const results = await new AxeBuilder({ page })
134
- .options({ rules: { 'color-contrast-enhanced': { enabled: true } } })
135
- .analyze();
136
- expect(results.violations).toEqual([]);
137
- });
138
- test(`contrast color on "${color}" background should pass AAA guidelines`, async ({ page }) => {
139
- await page.setContent(`${styleTestHelpers}
140
- <main class="ion-color-${color}">
141
- <p class="ion-color-contrast ion-background">Hello World</p>
142
- </main>`, config);
143
- const results = await new AxeBuilder({ page })
144
- .options({ rules: { 'color-contrast-enhanced': { enabled: true } } })
145
- .analyze();
146
- expect(results.violations).toEqual([]);
147
- });
148
- test(`contrast color on "${color}" background shade should pass AAA guidelines`, async ({ page }) => {
149
- await page.setContent(`${styleTestHelpers}
150
- <main class="ion-color-${color}">
151
- <p class="ion-color-contrast ion-background-shade">Hello World</p>
152
- </main>`, config);
153
- const results = await new AxeBuilder({ page })
154
- .options({ rules: { 'color-contrast-enhanced': { enabled: true } } })
155
- .analyze();
156
- expect(results.violations).toEqual([]);
157
- });
158
- test(`contrast color on "${color}" background tint should pass AAA guidelines`, async ({ page }) => {
159
- await page.setContent(`${styleTestHelpers}
160
- <main class="ion-color-${color}">
161
- <p class="ion-color-contrast ion-background-tint">Hello World</p>
162
- </main>`, config);
163
- const results = await new AxeBuilder({ page })
164
- .options({ rules: { 'color-contrast-enhanced': { enabled: true } } })
165
- .analyze();
166
- expect(results.violations).toEqual([]);
167
- });
168
- }
169
- });
170
- });