voyager-ionic-core 8.0.0-beta.2 → 8.0.0-beta.3
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/helpers.js +1 -47
- package/components/index9.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +7 -6
- package/components/ion-fab-button.js +2 -2
- package/components/ion-fab-list.js +2 -2
- package/components/ion-fab.js +2 -2
- package/components/ion-footer.js +2 -2
- package/components/ion-grid.js +2 -2
- package/components/ion-header.js +3 -3
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +2 -2
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input.js +5 -5
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -3
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +11 -24
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +9 -9
- 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 +4 -4
- package/components/ion-thumbnail.js +1 -1
- 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/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/picker-column-option.js +2 -2
- package/components/picker-column.js +8 -4
- package/components/picker-column2.js +2 -2
- package/components/picker.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/css/palettes/dark.always.css.map +1 -0
- package/css/{themes → palettes}/dark.class.css +4 -4
- package/css/palettes/dark.class.css.map +1 -0
- package/css/palettes/dark.system.css.map +1 -0
- package/css/palettes/high-contrast-dark.always.css.map +1 -0
- package/css/{themes → palettes}/high-contrast-dark.class.css +10 -10
- package/css/palettes/high-contrast-dark.class.css.map +1 -0
- package/css/palettes/high-contrast-dark.system.css.map +1 -0
- package/css/palettes/high-contrast.always.css.map +1 -0
- package/css/{themes → palettes}/high-contrast.class.css +31 -31
- package/css/palettes/high-contrast.class.css.map +1 -0
- package/css/palettes/high-contrast.system.css.map +1 -0
- package/dist/cjs/{animation-3e7bb91e.js → animation-58ecfe20.js} +1 -1
- package/dist/cjs/{framework-delegate-0499d444.js → framework-delegate-df3a2b04.js} +1 -1
- package/dist/cjs/{helpers-668b3d95.js → helpers-71097d9c.js} +0 -47
- package/dist/cjs/{index-e4b6c97e.js → index-14ae0c27.js} +3 -3
- package/dist/cjs/{index-ba7ba0af.js → index-289297dc.js} +2 -2
- package/dist/cjs/{index-c49cb371.js → index-7479ea5a.js} +1 -1
- package/dist/cjs/{index-275cc12e.js → index-a91a3e24.js} +1 -1
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{input-shims-b419f083.js → input-shims-77b14f24.js} +2 -2
- package/dist/cjs/{input.utils-32c0a14a.js → input.utils-ca74d73a.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app_8.cjs.entry.js +18 -18
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +15 -14
- package/dist/cjs/ion-fab_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-input.cjs.entry.js +8 -8
- package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +13 -13
- package/dist/cjs/ion-loading.cjs.entry.js +6 -6
- package/dist/cjs/ion-menu_3.cjs.entry.js +11 -11
- package/dist/cjs/ion-modal.cjs.entry.js +9 -9
- package/dist/cjs/ion-nav_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +9 -5
- package/dist/cjs/ion-picker.cjs.entry.js +3 -3
- package/dist/cjs/ion-popover.cjs.entry.js +7 -7
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-range.cjs.entry.js +12 -25
- package/dist/cjs/ion-refresher_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +5 -5
- package/dist/cjs/ion-segment_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-select_3.cjs.entry.js +14 -14
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-tab_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +7 -7
- package/dist/cjs/ion-toast.cjs.entry.js +6 -6
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -4
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-3e119901.js → ios.transition-8e0ca8ed.js} +3 -3
- package/dist/cjs/{md.transition-c1392f92.js → md.transition-5d0f134b.js} +3 -3
- package/dist/cjs/{notch-controller-08a24f39.js → notch-controller-0042ad49.js} +1 -1
- package/dist/cjs/{overlays-44b8d0e0.js → overlays-30b83581.js} +2 -2
- package/dist/cjs/{status-tap-32430b3e.js → status-tap-dc3b8fda.js} +2 -2
- package/dist/cjs/{swipe-back-b8484483.js → swipe-back-49825f1f.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +1 -1
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +5 -1
- package/dist/collection/components/alert/test/basic/alert.e2e.js +1 -1
- package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +1 -1
- package/dist/collection/components/badge/test/a11y/badge.e2e.js +1 -1
- package/dist/collection/components/button/test/a11y/button.e2e.js +2 -2
- package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +1 -1
- package/dist/collection/components/datetime/datetime.js +7 -6
- package/dist/collection/components/datetime-button/datetime-button.js +1 -1
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-button/fab-button.js +2 -2
- package/dist/collection/components/fab-button/test/a11y/fab-button.e2e.js +1 -1
- package/dist/collection/components/fab-list/fab-list.js +2 -2
- package/dist/collection/components/footer/footer.js +2 -2
- package/dist/collection/components/grid/grid.js +2 -2
- package/dist/collection/components/header/header.ios.css +5 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/header/test/basic/header.e2e.js +77 -0
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
- package/dist/collection/components/input/input.ios.css +2 -2
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/input/input.md.css +2 -2
- package/dist/collection/components/input/test/a11y/input.e2e.js +1 -1
- package/dist/collection/components/input/test/slot/input.e2e.js +8 -0
- package/dist/collection/components/item/test/buttons/item.e2e.js +20 -4
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/label/test/a11y/label.e2e.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/loading/test/a11y/loading.e2e.js +1 -1
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +1 -1
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker/picker.js +2 -2
- package/dist/collection/components/picker-column/picker-column.js +8 -4
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio/test/a11y/radio.e2e.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +11 -24
- package/dist/collection/components/range/test/a11y/range.e2e.js +1 -1
- package/dist/collection/components/range/test/label/range.spec.js +24 -0
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-link/test/a11y/router-link.e2e.js +1 -1
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment/test/a11y/segment.e2e.js +1 -1
- package/dist/collection/components/segment-button/segment-button.js +3 -3
- package/dist/collection/components/select/select.ios.css +2 -2
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/select/select.md.css +2 -2
- package/dist/collection/components/select/test/a11y/select.e2e.js +1 -1
- package/dist/collection/components/select/test/select.spec.js +22 -0
- package/dist/collection/components/select/test/slot/select.e2e.js +8 -0
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/select-popover/test/a11y/select-popover.e2e.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- 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/test/a11y/textarea.e2e.js +1 -1
- package/dist/collection/components/textarea/test/slot/textarea.e2e.js +8 -0
- package/dist/collection/components/textarea/textarea.ios.css +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/textarea/textarea.md.css +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/test/a11y/toast.e2e.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +1 -1
- package/dist/collection/components/toggle/toggle.js +4 -4
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/css/test/a11y/typography.e2e.js +1 -1
- package/dist/collection/themes/test/colors/theme.e2e.js +2 -2
- package/dist/collection/utils/helpers.js +0 -46
- package/dist/collection/utils/test/playwright/generator.js +17 -17
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +6 -6
- package/dist/docs.json +3 -3
- package/dist/esm/{animation-9a23ed8d.js → animation-6a3c0abb.js} +1 -1
- package/dist/esm/{framework-delegate-3fd96df8.js → framework-delegate-3dede018.js} +1 -1
- package/dist/esm/{helpers-f51cf76f.js → helpers-eab4f597.js} +1 -47
- package/dist/esm/{index-86688780.js → index-044b5a86.js} +1 -1
- package/dist/esm/{index-6da05eef.js → index-136e99c8.js} +3 -3
- package/dist/esm/{index-9d7e5d3e.js → index-95a691d4.js} +2 -2
- package/dist/esm/{index-1262064c.js → index-fa221975.js} +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/{input-shims-2a4ad5a1.js → input-shims-196afa11.js} +2 -2
- package/dist/esm/{input.utils-d2dee48e.js → input.utils-426cc674.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +4 -4
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app_8.entry.js +18 -18
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-card_5.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +15 -14
- package/dist/esm/ion-fab_3.entry.js +7 -7
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
- package/dist/esm/ion-input.entry.js +8 -8
- package/dist/esm/ion-item-option_3.entry.js +6 -6
- package/dist/esm/ion-item_8.entry.js +13 -13
- package/dist/esm/ion-loading.entry.js +6 -6
- package/dist/esm/ion-menu_3.entry.js +11 -11
- package/dist/esm/ion-modal.entry.js +9 -9
- package/dist/esm/ion-nav_2.entry.js +6 -6
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +9 -5
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-popover.entry.js +7 -7
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +5 -5
- package/dist/esm/ion-range.entry.js +12 -25
- package/dist/esm/ion-refresher_2.entry.js +5 -5
- package/dist/esm/ion-reorder_2.entry.js +4 -4
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +5 -5
- package/dist/esm/ion-segment_2.entry.js +6 -6
- package/dist/esm/ion-select_3.entry.js +14 -14
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +5 -5
- package/dist/esm/ion-tab_2.entry.js +5 -5
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +7 -7
- package/dist/esm/ion-toast.entry.js +6 -6
- package/dist/esm/ion-toggle.entry.js +4 -4
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-fbde96b0.js → ios.transition-d1c8eea2.js} +3 -3
- package/dist/esm/{md.transition-76e0020b.js → md.transition-0d2de76d.js} +3 -3
- package/dist/esm/{notch-controller-00572cf8.js → notch-controller-cff691e5.js} +1 -1
- package/dist/esm/{overlays-b1ac1c63.js → overlays-d41f74ac.js} +2 -2
- package/dist/esm/{status-tap-84b41f36.js → status-tap-45595148.js} +2 -2
- package/dist/esm/{swipe-back-4f2e5d47.js → swipe-back-5aa5feeb.js} +1 -1
- package/dist/esm-es5/{animation-9a23ed8d.js → animation-6a3c0abb.js} +1 -1
- package/dist/esm-es5/{framework-delegate-3fd96df8.js → framework-delegate-3dede018.js} +1 -1
- package/dist/esm-es5/helpers-eab4f597.js +4 -0
- package/dist/esm-es5/{index-86688780.js → index-044b5a86.js} +1 -1
- package/dist/esm-es5/{index-6da05eef.js → index-136e99c8.js} +1 -1
- package/dist/esm-es5/{index-9d7e5d3e.js → index-95a691d4.js} +1 -1
- package/dist/esm-es5/index-fa221975.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{input-shims-2a4ad5a1.js → input-shims-196afa11.js} +1 -1
- package/dist/esm-es5/{input.utils-d2dee48e.js → input.utils-426cc674.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.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-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.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/{ios.transition-fbde96b0.js → ios.transition-d1c8eea2.js} +1 -1
- package/dist/esm-es5/md.transition-0d2de76d.js +4 -0
- package/dist/esm-es5/{notch-controller-00572cf8.js → notch-controller-cff691e5.js} +1 -1
- package/dist/esm-es5/{overlays-b1ac1c63.js → overlays-d41f74ac.js} +1 -1
- package/dist/esm-es5/{status-tap-84b41f36.js → status-tap-45595148.js} +1 -1
- package/dist/esm-es5/{swipe-back-4f2e5d47.js → swipe-back-5aa5feeb.js} +1 -1
- package/dist/html.html-data.json +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-bbc4f653.entry.js → p-0051ceb9.entry.js} +1 -1
- package/dist/ionic/{p-a7f788ec.entry.js → p-00a6f38d.entry.js} +1 -1
- package/dist/ionic/{p-1acaf641.entry.js → p-02a803dc.entry.js} +1 -1
- package/dist/ionic/{p-53c592ec.system.js → p-07759435.system.js} +1 -1
- package/dist/ionic/{p-04f9ce05.system.js → p-08a8971e.system.js} +1 -1
- package/dist/ionic/p-0e4c9e45.system.js +4 -0
- package/dist/ionic/{p-50d19fc7.system.entry.js → p-103ec049.system.entry.js} +1 -1
- package/dist/ionic/p-1685d81c.system.entry.js +4 -0
- package/dist/ionic/{p-49a205d0.system.js → p-17043350.system.js} +1 -1
- package/dist/ionic/{p-0afaf65b.system.entry.js → p-17ee2784.system.entry.js} +1 -1
- package/dist/ionic/{p-4d6ec139.entry.js → p-1807190c.entry.js} +1 -1
- package/dist/ionic/{p-ff740d68.system.entry.js → p-185db19b.system.entry.js} +2 -2
- package/dist/ionic/{p-e222fdd1.entry.js → p-1a8bbd2e.entry.js} +1 -1
- package/dist/ionic/{p-a37d4fe9.system.entry.js → p-1bb1ef31.system.entry.js} +1 -1
- package/dist/ionic/p-1c801dd4.entry.js +4 -0
- package/dist/ionic/{p-5054b3db.entry.js → p-2130b526.entry.js} +1 -1
- package/dist/ionic/p-22b5c888.system.entry.js +4 -0
- package/dist/ionic/{p-a5c33d6b.system.entry.js → p-23838a94.system.entry.js} +1 -1
- package/dist/ionic/p-23cff6c1.system.js +4 -0
- package/dist/ionic/{p-0b175848.entry.js → p-23efc001.entry.js} +1 -1
- package/dist/ionic/{p-51b1a6be.js → p-244f56fd.js} +1 -1
- package/dist/ionic/{p-373e757d.entry.js → p-27c668a0.entry.js} +1 -1
- package/dist/ionic/{p-d9dfdbb5.system.entry.js → p-282bd5f9.system.entry.js} +1 -1
- package/dist/ionic/{p-6d75fbe8.system.entry.js → p-2852c537.system.entry.js} +1 -1
- package/dist/ionic/{p-25648922.system.entry.js → p-294c47cd.system.entry.js} +1 -1
- package/dist/ionic/{p-7200f2da.entry.js → p-29ef3b9b.entry.js} +1 -1
- package/dist/ionic/{p-b996756b.entry.js → p-2bb65deb.entry.js} +1 -1
- package/dist/ionic/{p-3944820a.system.js → p-2cc2c631.system.js} +1 -1
- package/dist/ionic/{p-c34d1515.js → p-2f53c3eb.js} +1 -1
- package/dist/ionic/{p-07a0190a.system.entry.js → p-2f6bc4a9.system.entry.js} +1 -1
- package/dist/ionic/{p-4ba6d7d1.js → p-325c61a4.js} +1 -1
- package/dist/ionic/{p-4d7230bd.system.entry.js → p-34c50a42.system.entry.js} +1 -1
- package/dist/ionic/p-364044f0.js +4 -0
- package/dist/ionic/{p-29ecf879.entry.js → p-3785c067.entry.js} +1 -1
- package/dist/ionic/p-3ae4a2a2.entry.js +4 -0
- package/dist/ionic/p-3cd3214e.entry.js +4 -0
- package/dist/ionic/{p-e9412fe7.system.entry.js → p-3e6e53fe.system.entry.js} +1 -1
- package/dist/ionic/{p-7162350a.system.entry.js → p-40976b1c.system.entry.js} +1 -1
- package/dist/ionic/{p-d09c9468.system.entry.js → p-42fecf9c.system.entry.js} +1 -1
- package/dist/ionic/{p-b0850af6.system.entry.js → p-43c751c6.system.entry.js} +1 -1
- package/dist/ionic/{p-8dfe436d.system.js → p-4a3055ef.system.js} +1 -1
- package/dist/ionic/{p-f6db2e96.system.entry.js → p-4d325220.system.entry.js} +2 -2
- package/dist/ionic/p-4d361c89.entry.js +4 -0
- package/dist/ionic/p-54c31b4f.entry.js +4 -0
- package/dist/ionic/{p-063c093d.system.entry.js → p-5a277399.system.entry.js} +1 -1
- package/dist/ionic/{p-237b1791.system.entry.js → p-5ac63b19.system.entry.js} +1 -1
- package/dist/ionic/{p-c8675b7b.system.entry.js → p-5b2951c1.system.entry.js} +1 -1
- package/dist/ionic/{p-f5cb9689.js → p-5b52897c.js} +1 -1
- package/dist/ionic/{p-cada6331.entry.js → p-5e39b9d8.entry.js} +1 -1
- package/dist/ionic/{p-42d9f81e.entry.js → p-610f0e12.entry.js} +1 -1
- package/dist/ionic/p-668607c2.system.js +4 -0
- package/dist/ionic/{p-eb546888.entry.js → p-6a448415.entry.js} +1 -1
- package/dist/ionic/{p-696db6f4.system.js → p-6a62da36.system.js} +1 -1
- package/dist/ionic/p-6a888b39.system.entry.js +4 -0
- package/dist/ionic/{p-ea5173f9.system.js → p-6d9f8fac.system.js} +1 -1
- package/dist/ionic/{p-d3c1c23f.entry.js → p-7002bc75.entry.js} +1 -1
- package/dist/ionic/{p-2c560619.system.entry.js → p-70c278c4.system.entry.js} +1 -1
- package/dist/ionic/{p-65374504.entry.js → p-7680d0ec.entry.js} +1 -1
- package/dist/ionic/{p-f8dfae89.system.entry.js → p-7adde43c.system.entry.js} +1 -1
- package/dist/ionic/p-7d29dff0.system.entry.js +4 -0
- package/dist/ionic/p-7d4d9c40.system.entry.js +4 -0
- package/dist/ionic/p-7e7d534c.js +4 -0
- package/dist/ionic/{p-01171ead.system.js → p-853bd866.system.js} +1 -1
- package/dist/ionic/{p-5f9abba8.system.entry.js → p-85f43165.system.entry.js} +1 -1
- package/dist/ionic/p-86c17a09.entry.js +4 -0
- package/dist/ionic/p-8a881b39.entry.js +4 -0
- package/dist/ionic/{p-513abaf6.system.entry.js → p-8dd3d9c3.system.entry.js} +1 -1
- package/dist/ionic/{p-070cf7c3.entry.js → p-8ed900e4.entry.js} +1 -1
- package/dist/ionic/{p-f15b0bbc.system.entry.js → p-92b05b70.system.entry.js} +1 -1
- package/dist/ionic/{p-3a572692.js → p-976c7c54.js} +1 -1
- package/dist/ionic/{p-144ae947.js → p-978f4710.js} +1 -1
- package/dist/ionic/{p-eee87ebb.js → p-98c86cdd.js} +1 -1
- package/dist/ionic/{p-c834c535.system.entry.js → p-9b5d033a.system.entry.js} +1 -1
- package/dist/ionic/{p-a43fbe0a.system.entry.js → p-9e6a5e3d.system.entry.js} +1 -1
- package/dist/ionic/{p-de4c700f.entry.js → p-a0e8f913.entry.js} +1 -1
- package/dist/ionic/{p-314ae72a.js → p-a3dae2ce.js} +1 -1
- package/dist/ionic/{p-2070f8d8.entry.js → p-a4c287f9.entry.js} +1 -1
- package/dist/ionic/{p-4da2ae44.js → p-a600a3e3.js} +1 -1
- package/dist/ionic/{p-f15f8140.system.entry.js → p-a6b8342e.system.entry.js} +1 -1
- package/dist/ionic/{p-f012e8f2.system.entry.js → p-a88b41d1.system.entry.js} +2 -2
- package/dist/ionic/{p-9c970454.entry.js → p-a94092b9.entry.js} +1 -1
- package/dist/ionic/p-ac6db4c2.js +4 -0
- package/dist/ionic/{p-15e2ff5f.system.entry.js → p-af2e3481.system.entry.js} +1 -1
- package/dist/ionic/{p-d4be0d81.system.entry.js → p-b0aaa59a.system.entry.js} +1 -1
- package/dist/ionic/{p-48fef2f1.entry.js → p-b141e253.entry.js} +1 -1
- package/dist/ionic/{p-8c0b08db.entry.js → p-b1d9b078.entry.js} +1 -1
- package/dist/ionic/p-ba0290d1.entry.js +4 -0
- package/dist/ionic/{p-e5e492d8.entry.js → p-bb5eba12.entry.js} +1 -1
- package/dist/ionic/{p-c4390f10.system.entry.js → p-bb608006.system.entry.js} +1 -1
- package/dist/ionic/{p-d5ef3a0a.entry.js → p-c385e49d.entry.js} +1 -1
- package/dist/ionic/{p-1e5c0c49.js → p-c3f5d0e7.js} +1 -1
- package/dist/ionic/{p-739f8b95.system.entry.js → p-c41e0b5f.system.entry.js} +1 -1
- package/dist/ionic/{p-46a4e4e8.js → p-c6f9f3eb.js} +1 -1
- package/dist/ionic/{p-03f3ebd2.entry.js → p-c8383c20.entry.js} +1 -1
- package/dist/ionic/{p-acd64713.system.entry.js → p-cbf0a046.system.entry.js} +1 -1
- package/dist/ionic/{p-566818dd.system.entry.js → p-d0496c22.system.entry.js} +1 -1
- package/dist/ionic/{p-2028668d.system.entry.js → p-d286cfbe.system.entry.js} +1 -1
- package/dist/ionic/{p-45a2b1ee.system.entry.js → p-d372938e.system.entry.js} +1 -1
- package/dist/ionic/{p-de39f314.entry.js → p-d4d17d47.entry.js} +1 -1
- package/dist/ionic/{p-c8f7f923.entry.js → p-d5ab02f5.entry.js} +1 -1
- package/dist/ionic/{p-33e39575.system.js → p-d704f798.system.js} +1 -1
- package/dist/ionic/p-d8090ce4.entry.js +4 -0
- package/dist/ionic/{p-667290b0.system.js → p-d80b7e31.system.js} +1 -1
- package/dist/ionic/{p-2e2635b4.system.entry.js → p-d8ffe61c.system.entry.js} +1 -1
- package/dist/ionic/{p-824d44c5.system.entry.js → p-db7fcadb.system.entry.js} +2 -2
- package/dist/ionic/{p-95648db9.entry.js → p-dd9168f3.entry.js} +1 -1
- package/dist/ionic/{p-ce36d285.system.js → p-e0d52ee3.system.js} +2 -2
- package/dist/ionic/p-e3611c25.entry.js +4 -0
- package/dist/ionic/p-e4ca94bd.js +4 -0
- package/dist/ionic/p-e7b0b64d.system.js +4 -0
- package/dist/ionic/{p-75addf49.entry.js → p-ebc5b98f.entry.js} +1 -1
- package/dist/ionic/{p-ba9120fe.system.entry.js → p-ec34194e.system.entry.js} +1 -1
- package/dist/ionic/p-ec613387.entry.js +4 -0
- package/dist/ionic/{p-19243ae6.entry.js → p-ed3463be.entry.js} +1 -1
- package/dist/ionic/{p-0da58e53.entry.js → p-f1d1524c.entry.js} +1 -1
- package/dist/ionic/p-f7a1318d.system.entry.js +4 -0
- package/dist/ionic/{p-1d1394da.system.entry.js → p-f7af3144.system.entry.js} +2 -2
- package/dist/ionic/p-f8502e85.js +1 -1
- package/dist/ionic/{p-f3e8c505.system.js → p-f85a4df5.system.js} +1 -1
- package/dist/ionic/{p-66596659.entry.js → p-fa8ee4c3.entry.js} +1 -1
- package/dist/ionic/{p-d85eebc3.entry.js → p-fb870c48.entry.js} +1 -1
- package/dist/ionic/{p-4997d7dc.system.js → p-fe1fd531.system.js} +1 -1
- package/dist/ionic/{p-21e88629.entry.js → p-fe35b5c0.entry.js} +1 -1
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/utils/helpers.d.ts +0 -18
- package/dist/types/utils/test/playwright/generator.d.ts +3 -3
- package/hydrate/index.js +150 -204
- package/package.json +7 -2
- package/css/themes/dark.always.css.map +0 -1
- package/css/themes/dark.class.css.map +0 -1
- package/css/themes/dark.system.css.map +0 -1
- package/css/themes/high-contrast-dark.always.css.map +0 -1
- package/css/themes/high-contrast-dark.class.css.map +0 -1
- package/css/themes/high-contrast-dark.system.css.map +0 -1
- package/css/themes/high-contrast.always.css.map +0 -1
- package/css/themes/high-contrast.class.css.map +0 -1
- package/css/themes/high-contrast.system.css.map +0 -1
- package/dist/collection/utils/test/aria.spec.js +0 -80
- package/dist/esm-es5/helpers-f51cf76f.js +0 -4
- package/dist/esm-es5/index-1262064c.js +0 -4
- package/dist/esm-es5/md.transition-76e0020b.js +0 -4
- package/dist/ionic/p-06e951a9.entry.js +0 -4
- package/dist/ionic/p-0eb381c3.system.js +0 -4
- package/dist/ionic/p-234dc736.entry.js +0 -4
- package/dist/ionic/p-2f53f47a.entry.js +0 -4
- package/dist/ionic/p-355736ea.js +0 -4
- package/dist/ionic/p-39483fc9.js +0 -4
- package/dist/ionic/p-39860681.entry.js +0 -4
- package/dist/ionic/p-493bce1f.entry.js +0 -4
- package/dist/ionic/p-517b76cb.entry.js +0 -4
- package/dist/ionic/p-59e86adb.js +0 -4
- package/dist/ionic/p-6042920d.system.entry.js +0 -4
- package/dist/ionic/p-67dbcd3b.system.js +0 -4
- package/dist/ionic/p-69df28fd.entry.js +0 -4
- package/dist/ionic/p-6d0e7669.system.entry.js +0 -4
- package/dist/ionic/p-6d1f5de9.system.entry.js +0 -4
- package/dist/ionic/p-7d4f6f18.js +0 -4
- package/dist/ionic/p-a03c993e.entry.js +0 -4
- package/dist/ionic/p-b0d35de4.system.js +0 -4
- package/dist/ionic/p-bb78b64e.entry.js +0 -4
- package/dist/ionic/p-c962e9ea.entry.js +0 -4
- package/dist/ionic/p-cc19ecba.system.entry.js +0 -4
- package/dist/ionic/p-d10bbab7.entry.js +0 -4
- package/dist/ionic/p-d268f7e2.system.entry.js +0 -4
- package/dist/ionic/p-e01ebeba.system.js +0 -4
- package/dist/ionic/p-fcec3b7a.system.entry.js +0 -4
- package/css/{themes → palettes}/dark.always.css +0 -0
- package/css/{themes → palettes}/dark.css +0 -0
- package/css/{themes → palettes}/dark.css.map +0 -0
- package/css/{themes → palettes}/dark.system.css +0 -0
- package/css/{themes → palettes}/high-contrast-dark.always.css +1 -1
- package/css/{themes → palettes}/high-contrast-dark.css +0 -0
- package/css/{themes → palettes}/high-contrast-dark.css.map +0 -0
- package/css/{themes → palettes}/high-contrast-dark.system.css +1 -1
- package/css/{themes → palettes}/high-contrast.always.css +25 -25
- package/css/{themes → palettes}/high-contrast.css +0 -0
- package/css/{themes → palettes}/high-contrast.css.map +0 -0
- package/css/{themes → palettes}/high-contrast.system.css +25 -25
|
@@ -9,9 +9,13 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
9
9
|
await page.setContent(`
|
|
10
10
|
<ion-input label-placement="start" fill="solid" value="100" label="Weight" clear-input="true">
|
|
11
11
|
<ion-icon slot="start" name="barbell" aria-hidden="true"></ion-icon>
|
|
12
|
+
<ion-icon slot="start" name="heart" aria-hidden="true"></ion-icon>
|
|
12
13
|
<ion-button slot="end" aria-label="Show/hide password">
|
|
13
14
|
<ion-icon slot="icon-only" name="lock-closed" aria-hidden="true"></ion-icon>
|
|
14
15
|
</ion-button>
|
|
16
|
+
<ion-button slot="end">
|
|
17
|
+
<ion-icon slot="icon-only" name="trash" aria-hidden="true"></ion-icon>
|
|
18
|
+
</ion-button>
|
|
15
19
|
</ion-input>
|
|
16
20
|
`, config);
|
|
17
21
|
const input = page.locator('ion-input');
|
|
@@ -21,9 +25,13 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
21
25
|
await page.setContent(`
|
|
22
26
|
<ion-input label-placement="floating" fill="solid" value="100" label="Weight" clear-input="true">
|
|
23
27
|
<ion-icon slot="start" name="barbell" aria-hidden="true"></ion-icon>
|
|
28
|
+
<ion-icon slot="start" name="heart" aria-hidden="true"></ion-icon>
|
|
24
29
|
<ion-button slot="end" aria-label="Show/hide password">
|
|
25
30
|
<ion-icon slot="icon-only" name="lock-closed" aria-hidden="true"></ion-icon>
|
|
26
31
|
</ion-button>
|
|
32
|
+
<ion-button slot="end">
|
|
33
|
+
<ion-icon slot="icon-only" name="trash" aria-hidden="true"></ion-icon>
|
|
34
|
+
</ion-button>
|
|
27
35
|
</ion-input>
|
|
28
36
|
`, config);
|
|
29
37
|
const input = page.locator('ion-input');
|
|
@@ -18,12 +18,28 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
21
|
+
configs({ directions: ['ltr'], palettes: ['dark'] }).forEach(({ title, screenshot, config }) => {
|
|
22
22
|
test.describe(title('item: buttons dark'), () => {
|
|
23
23
|
test('should not have visual regressions in dark', async ({ page }) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
test.info().annotations.push({
|
|
25
|
+
type: 'issue',
|
|
26
|
+
description: 'https://github.com/ionic-team/ionic-framework/issues/27130',
|
|
27
|
+
});
|
|
28
|
+
await page.setContent(`
|
|
29
|
+
<ion-list>
|
|
30
|
+
<ion-item button="true">
|
|
31
|
+
<ion-label>Button Item</ion-label>
|
|
32
|
+
</ion-item>
|
|
33
|
+
<ion-item button="true" class="ion-activated">
|
|
34
|
+
<ion-label>Activated Button Item</ion-label>
|
|
35
|
+
</ion-item>
|
|
36
|
+
<ion-item button="true" class="ion-focused">
|
|
37
|
+
<ion-label>Focused Button Item</ion-label>
|
|
38
|
+
</ion-item>
|
|
39
|
+
</ion-list>
|
|
40
|
+
`, config);
|
|
41
|
+
const list = page.locator('ion-list');
|
|
42
|
+
await expect(list).toHaveScreenshot(screenshot(`item-buttons-dark-diff`));
|
|
27
43
|
});
|
|
28
44
|
});
|
|
29
45
|
});
|
|
@@ -18,11 +18,11 @@ export class ItemDivider {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const mode = getIonMode(this);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '669dfc87b2046b431539676ef99888a003989559', class: createColorClasses(this.color, {
|
|
22
22
|
[mode]: true,
|
|
23
23
|
'item-divider-sticky': this.sticky,
|
|
24
24
|
item: true,
|
|
25
|
-
}) }, h("slot", { key: '
|
|
25
|
+
}) }, h("slot", { key: 'ebf9e249bc490200d8d39fd83d60d2b7ee55cfdb', name: "start" }), h("div", { key: '492fb40aee6215ec450477dfd2eb2362ab3e6395', class: "item-divider-inner" }, h("div", { key: '7e0fe9b876612ae6363b0dc698e58c0577c6888a', class: "item-divider-wrapper" }, h("slot", { key: '5165aecc360ed102f62b2eafc108e926e63a958e' })), h("slot", { key: 'dd7c743e2c28f13412c1319219a75802d6264051', name: "end" }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "ion-item-divider"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ import { getIonMode } from "../../global/ionic-global";
|
|
|
6
6
|
export class ItemGroup {
|
|
7
7
|
render() {
|
|
8
8
|
const mode = getIonMode(this);
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '2406e238ec8ecf7a012922b054268c52ef4aaeae', role: "group", class: {
|
|
10
10
|
[mode]: true,
|
|
11
11
|
// Used internally for styling
|
|
12
12
|
[`item-group-${mode}`]: true,
|
|
@@ -44,12 +44,12 @@ export class ItemOption {
|
|
|
44
44
|
href: this.href,
|
|
45
45
|
target: this.target,
|
|
46
46
|
};
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '515775f7e2c5d8a58b96f1147307ab74d81e2485', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
48
48
|
[mode]: true,
|
|
49
49
|
'item-option-disabled': disabled,
|
|
50
50
|
'item-option-expandable': expandable,
|
|
51
51
|
'ion-activatable': true,
|
|
52
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
52
|
+
}) }, h(TagType, Object.assign({ key: 'f693d6ab5c7c6d2e2f9408d73c029dcf6abf07ed' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: '2ff80908f299daa20140be78ef9d82126b2706c0', class: "button-inner" }, h("slot", { key: '3e34d6564db8a9062ee05d4209c5dba5f90c5c67', name: "top" }), h("div", { key: '6bf1ace707675849f4bab1925531ee2fffc3a057', class: "horizontal-wrapper" }, h("slot", { key: 'd53ea0f90ea03224a021f141a628c7e226d1cbe2', name: "start" }), h("slot", { key: '114f0bfd8c8ffa26a927d02a185d772c77f31cd8', name: "icon-only" }), h("slot", { key: '6a432a9a7b780da5e6bea789185a4c9c46049059' }), h("slot", { key: 'd2c904f6006e4c101cc2cc8c854a6f6dfe015015', name: "end" })), h("slot", { key: '4bf61ad7ac392366c200243094bb8598293ad7ec', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", null))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "ion-item-option"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,7 +17,7 @@ export class ItemOptions {
|
|
|
17
17
|
render() {
|
|
18
18
|
const mode = getIonMode(this);
|
|
19
19
|
const isEnd = isEndSide(this.side);
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'c41b1f121563c51e6405d8b085ce5bb532ef8222', class: {
|
|
21
21
|
[mode]: true,
|
|
22
22
|
// Used internally for styling
|
|
23
23
|
[`item-options-${mode}`]: true,
|
|
@@ -386,7 +386,7 @@ export class ItemSliding {
|
|
|
386
386
|
}
|
|
387
387
|
render() {
|
|
388
388
|
const mode = getIonMode(this);
|
|
389
|
-
return (h(Host, { key: '
|
|
389
|
+
return (h(Host, { key: '827bb81f1d66efde0d20dda0360d5c2712ec6605', class: {
|
|
390
390
|
[mode]: true,
|
|
391
391
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
392
392
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -5,7 +5,7 @@ import AxeBuilder from "@axe-core/playwright";
|
|
|
5
5
|
import { expect } from "@playwright/test";
|
|
6
6
|
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
7
7
|
import { testSlidingItem } from "../test.utils";
|
|
8
|
-
configs({ directions: ['ltr'],
|
|
8
|
+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
9
9
|
test.describe(title('item-sliding: a11y for ion-color()'), () => {
|
|
10
10
|
test('should not have accessibility violations', async ({ page }) => {
|
|
11
11
|
await page.setContent(`
|
|
@@ -55,13 +55,13 @@ export class Label {
|
|
|
55
55
|
render() {
|
|
56
56
|
const position = this.position;
|
|
57
57
|
const mode = getIonMode(this);
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'baf8dbc49818749f4e3bfe797ee8cca7ae0db374', class: createColorClasses(this.color, {
|
|
59
59
|
[mode]: true,
|
|
60
60
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
61
61
|
[`label-${position}`]: position !== undefined,
|
|
62
62
|
[`label-no-animate`]: this.noAnimate,
|
|
63
63
|
'label-rtl': document.dir === 'rtl',
|
|
64
|
-
}) }, h("slot", { key: '
|
|
64
|
+
}) }, h("slot", { key: '6cf0ae428262ebd6c6999be7818a86d363e239ac' })));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "ion-label"; }
|
|
67
67
|
static get encapsulation() { return "scoped"; }
|
|
@@ -65,7 +65,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
configs({ directions: ['ltr'], modes: ['md'],
|
|
68
|
+
configs({ directions: ['ltr'], modes: ['md'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
69
69
|
test.describe(title('label: a11y for ion-color()'), () => {
|
|
70
70
|
test('should not have accessibility violations when focused', async ({ page }) => {
|
|
71
71
|
/**
|
|
@@ -27,7 +27,7 @@ export class List {
|
|
|
27
27
|
render() {
|
|
28
28
|
const mode = getIonMode(this);
|
|
29
29
|
const { lines, inset } = this;
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '47eead4d1ec73bedac86f8a8dce8db5e308ad12d', role: "list", class: {
|
|
31
31
|
[mode]: true,
|
|
32
32
|
// Used internally for styling
|
|
33
33
|
[`list-${mode}`]: true,
|
|
@@ -15,10 +15,10 @@ export class ListHeader {
|
|
|
15
15
|
render() {
|
|
16
16
|
const { lines } = this;
|
|
17
17
|
const mode = getIonMode(this);
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '93f1b0c39a26c48a845d5f367c66e76bf4167f05', class: createColorClasses(this.color, {
|
|
19
19
|
[mode]: true,
|
|
20
20
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
21
|
-
}) }, h("div", { key: '
|
|
21
|
+
}) }, h("div", { key: '6a1fc2e6f21c1bc4497797474d5b58011255b6d3', class: "list-header-inner" }, h("slot", { key: '1a2167142e719a48fe49bee51a0df25bc8ccbd59' }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "ion-list-header"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -158,9 +158,9 @@ export class Loading {
|
|
|
158
158
|
* Otherwise, don't set aria-labelledby.
|
|
159
159
|
*/
|
|
160
160
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
161
|
-
return (h(Host, Object.assign({ key: '
|
|
161
|
+
return (h(Host, Object.assign({ key: 'aac7cb449530a6d6f567e53c48f42a216d0f9b07', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
162
162
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
163
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
163
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '44e430f7a79745af164b1eb04ac8f94269a1bbda', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '72e42c320c4a69788fab0051a3a537ff8a2ac61d', tabindex: "0" }), h("div", { key: '7805fff86c4996317fba188ce21e42dd964b5a88', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { class: "loading-spinner" }, h("ion-spinner", { name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '733928417d9aef2eae34842bfa6836a2902bace8', tabindex: "0" })));
|
|
164
164
|
}
|
|
165
165
|
static get is() { return "ion-loading"; }
|
|
166
166
|
static get encapsulation() { return "scoped"; }
|
|
@@ -4,7 +4,7 @@
|
|
|
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
|
-
configs({ modes: ['ios'], directions: ['ltr'],
|
|
7
|
+
configs({ modes: ['ios'], directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
8
8
|
test.describe(title('loading: a11y'), () => {
|
|
9
9
|
test('should set aria-labelledby with a message', async ({ page }) => {
|
|
10
10
|
await page.setContent(`
|
|
@@ -586,14 +586,14 @@ export class Menu {
|
|
|
586
586
|
* the ionBackButton listener in the menu controller
|
|
587
587
|
* will handle closing the menu when Escape is pressed.
|
|
588
588
|
*/
|
|
589
|
-
return (h(Host, { key: '
|
|
589
|
+
return (h(Host, { key: 'e8d4e08518fb44c1b66271ef9cf41c188a6e8446', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
590
590
|
[mode]: true,
|
|
591
591
|
[`menu-type-${type}`]: true,
|
|
592
592
|
'menu-enabled': !disabled,
|
|
593
593
|
[`menu-side-${side}`]: true,
|
|
594
594
|
'menu-pane-visible': isPaneVisible,
|
|
595
595
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
596
|
-
} }, h("div", { key: '
|
|
596
|
+
} }, h("div", { key: '12dc0844cd577e514002a3936b488c0a69147644', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: 'ca93bc3b81a542a148b30b96afad92883af06709' })), h("ion-backdrop", { key: 'f887e38faa59a85ea6dcef92193ee68b8d0cc59c', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
597
597
|
}
|
|
598
598
|
static get is() { return "ion-menu"; }
|
|
599
599
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class MenuButton {
|
|
|
46
46
|
type: this.type,
|
|
47
47
|
};
|
|
48
48
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '74a9fa037fba7c8a6c0b2a63201ba47053eef181', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
|
|
50
50
|
[mode]: true,
|
|
51
51
|
button: true, // ion-buttons target .button
|
|
52
52
|
'menu-button-hidden': hidden,
|
|
@@ -55,7 +55,7 @@ export class MenuButton {
|
|
|
55
55
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
56
56
|
'ion-activatable': true,
|
|
57
57
|
'ion-focusable': true,
|
|
58
|
-
}) }, h("button", Object.assign({ key: '
|
|
58
|
+
}) }, h("button", Object.assign({ key: 'beea50b1748cb1932289eefa43f5b28bcf8757dd' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: 'cac396f4e92541a10bf94c2afcf6be515a2f3bb7', class: "button-inner" }, h("slot", { key: 'abad3080be6f8e16f6eb459165f69836f76df126' }, h("ion-icon", { key: '322d013bab64750e88899eefda6e3cc688029077', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { type: "unbounded" }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "ion-menu-button"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ import { configs, test } from "../../../../utils/test/playwright/index";
|
|
|
7
7
|
/**
|
|
8
8
|
* Only ios mode uses ion-color() for the menu button
|
|
9
9
|
*/
|
|
10
|
-
configs({ directions: ['ltr'], modes: ['ios'],
|
|
10
|
+
configs({ directions: ['ltr'], modes: ['ios'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
11
11
|
test.describe(title('menu-button: a11y for ion-color()'), () => {
|
|
12
12
|
test('should not have accessibility violations', async ({ page }) => {
|
|
13
13
|
await page.setContent(`
|
|
@@ -26,10 +26,10 @@ export class MenuToggle {
|
|
|
26
26
|
render() {
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
28
|
const hidden = this.autoHide && !this.visible;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '78202849633b083bb3310e1a8d7a43b0b9226764', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
30
30
|
[mode]: true,
|
|
31
31
|
'menu-toggle-hidden': hidden,
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: '9587bbb3a5315e11f57183e52f89609526e3879b' })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "ion-menu-toggle"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -562,9 +562,9 @@ export class Modal {
|
|
|
562
562
|
const mode = getIonMode(this);
|
|
563
563
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
564
564
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
565
|
-
return (h(Host, Object.assign({ key: '
|
|
565
|
+
return (h(Host, Object.assign({ key: '525f6464ddadb6991b9dfd6de21ae9b029abc96a', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
566
566
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
567
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '
|
|
567
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: 'a87ce56764b71e1244681f07d731e96f3b69b623', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { class: "modal-shadow" }), h("div", Object.assign({ key: '7a0438c07426b457a5b57ffeacdb91c4fd1641c6',
|
|
568
568
|
/*
|
|
569
569
|
role and aria-modal must be used on the
|
|
570
570
|
same element. They must also be set inside the
|
|
@@ -573,7 +573,7 @@ export class Modal {
|
|
|
573
573
|
*/
|
|
574
574
|
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { class: "modal-handle",
|
|
575
575
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
576
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '
|
|
576
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '08fafd53f6c4213ed28ba7f9de613052fefc810a' }))));
|
|
577
577
|
}
|
|
578
578
|
static get is() { return "ion-modal"; }
|
|
579
579
|
static get encapsulation() { return "shadow"; }
|
|
@@ -830,7 +830,7 @@ export class Nav {
|
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
render() {
|
|
833
|
-
return h("slot", { key: '
|
|
833
|
+
return h("slot", { key: 'aa21646aeb10e5006a825dd9c44e866f2f5c9c28' });
|
|
834
834
|
}
|
|
835
835
|
static get is() { return "ion-nav"; }
|
|
836
836
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class NavLink {
|
|
|
14
14
|
this.routerAnimation = undefined;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return h(Host, { key: '
|
|
17
|
+
return h(Host, { key: '147b615da688658f272037b3383d0402a3caf982', onClick: this.onClick });
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "ion-nav-link"; }
|
|
20
20
|
static get properties() {
|
|
@@ -13,9 +13,9 @@ export class Note {
|
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const mode = getIonMode(this);
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '9e7f4b8fdc9b0adda44cf716d454849730ed9c66', class: createColorClasses(this.color, {
|
|
17
17
|
[mode]: true,
|
|
18
|
-
}) }, h("slot", { key: '
|
|
18
|
+
}) }, h("slot", { key: '5bb30c6891649ec408acbd121a1294b3e93620d2' })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "ion-note"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -474,7 +474,7 @@ export class Picker {
|
|
|
474
474
|
this.emitInputModeChange();
|
|
475
475
|
}
|
|
476
476
|
render() {
|
|
477
|
-
return (h(Host, { key: '
|
|
477
|
+
return (h(Host, { key: '16c8d2d72dcbd64e2b2fb77200ead6a2107d24a6', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, h("input", { key: 'f7f4c77bde934813a18f221308277580c45715e3', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
|
|
478
478
|
var _a;
|
|
479
479
|
/**
|
|
480
480
|
* The "Enter" key represents
|
|
@@ -489,7 +489,7 @@ export class Picker {
|
|
|
489
489
|
if (ev.key === 'Enter') {
|
|
490
490
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
|
|
491
491
|
}
|
|
492
|
-
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), h("div", { key: '
|
|
492
|
+
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), h("div", { key: '0eead52707acfa004c83fe0acfd4f9162b19f09b', class: "picker-before" }), h("div", { key: '5b4b531e3ed4fd35f1380156cf5332a455433a19', class: "picker-after" }), h("div", { key: '2b478202ac99703e4f72b30906915c7058ca9b9f', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), h("slot", { key: '4a93ca36194ea1d2cec8bef8a0f402c14ee74576' })));
|
|
493
493
|
}
|
|
494
494
|
static get is() { return "ion-picker"; }
|
|
495
495
|
static get encapsulation() { return "shadow"; }
|
|
@@ -275,7 +275,11 @@ export class PickerColumn {
|
|
|
275
275
|
*/
|
|
276
276
|
const parentEl = (this.parentEl = this.el.closest('ion-picker'));
|
|
277
277
|
const visibleCallback = (entries) => {
|
|
278
|
-
|
|
278
|
+
/**
|
|
279
|
+
* Browsers will sometimes group multiple IO events into a single callback.
|
|
280
|
+
* As a result, we want to grab the last/most recent event in case there are multiple events.
|
|
281
|
+
*/
|
|
282
|
+
const ev = entries[entries.length - 1];
|
|
279
283
|
if (ev.isIntersecting) {
|
|
280
284
|
const { activeItem, el } = this;
|
|
281
285
|
this.isColumnVisible = true;
|
|
@@ -379,14 +383,14 @@ export class PickerColumn {
|
|
|
379
383
|
render() {
|
|
380
384
|
const { color, disabled, isActive, numericInput } = this;
|
|
381
385
|
const mode = getIonMode(this);
|
|
382
|
-
return (h(Host, { key: '
|
|
386
|
+
return (h(Host, { key: '20de89f624d0fdbb4eadf912a6a8a8c1f3c374bc', class: createColorClasses(color, {
|
|
383
387
|
[mode]: true,
|
|
384
388
|
['picker-column-active']: isActive,
|
|
385
389
|
['picker-column-numeric-input']: numericInput,
|
|
386
390
|
['picker-column-disabled']: disabled,
|
|
387
|
-
}) }, h("slot", { key: '
|
|
391
|
+
}) }, h("slot", { key: '39bd2171785e21aef935787d8222949a2d29a771', name: "prefix" }), h("div", { key: '97217b758b65913db869f322b8f127f0da3a1c28', class: "picker-opts", tabindex: disabled ? undefined : 0, ref: (el) => {
|
|
388
392
|
this.scrollEl = el;
|
|
389
|
-
} }, h("div", { key: '
|
|
393
|
+
} }, h("div", { key: '8cfd8f5de1c274f7b2b5b14c7f6f875d475edc5c', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'cfbf7e8abe54c4df98addb9a24e82dd803ba95c0', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '8049923186d8b5ce28da2ce90ad720c244395f9c', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("slot", { key: '180efa3b7874e2b4269fb150794eaeab9f648f2e' }), h("div", { key: '9161cc3e344b92354276981813e1d55ef9979dea', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'ce703fb3ea07d5ea2abf526d64ca85d2beed15f1', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '6ce6cb5de80ac316a664e9cfcecf1897c8f90e58', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0")), h("slot", { key: 'ecccfa6bd8f6d2d641109e74d0788081e3f29801', name: "suffix" })));
|
|
390
394
|
}
|
|
391
395
|
static get is() { return "ion-picker-column"; }
|
|
392
396
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,10 +76,10 @@ export class PickerColumnOption {
|
|
|
76
76
|
render() {
|
|
77
77
|
const { color, disabled, ariaLabel } = this;
|
|
78
78
|
const mode = getIonMode(this);
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '0d8327014cbc594992bf9a41c4fea5a4e45aac33', class: createColorClasses(color, {
|
|
80
80
|
[mode]: true,
|
|
81
81
|
['option-disabled']: disabled,
|
|
82
|
-
}) }, h("button", { key: '
|
|
82
|
+
}) }, h("button", { key: '3d9a87c2290d1f0a5ee0d03f6e050f5523d8cb90', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, h("slot", { key: 'cacda0d86d3eb7f531fcad5719e49bc203048d24' }))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "ion-picker-column-option"; }
|
|
85
85
|
static get encapsulation() { return "shadow"; }
|
|
@@ -182,11 +182,11 @@ export class Picker {
|
|
|
182
182
|
render() {
|
|
183
183
|
const { htmlAttributes } = this;
|
|
184
184
|
const mode = getIonMode(this);
|
|
185
|
-
return (h(Host, Object.assign({ key: '
|
|
185
|
+
return (h(Host, Object.assign({ key: '12511a31ebb68509a5a69ff6ef13015f6aa3ca64', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
186
186
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
187
187
|
}, class: Object.assign({ [mode]: true,
|
|
188
188
|
// Used internally for styling
|
|
189
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
189
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '3ecf735bc0887682c42e6d49bf367902a90a93db', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'bcaff5af935db35dace8904f05d2723184e6d195', tabindex: "0" }), h("div", { key: '3926b745393be7049cb330fdf830f40af8a842e2', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: 'a3dc1a2afad156118178b7a76826da2c5b15772b', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: '7cf9aed4a690148bf567afb05ce797d63b0510e8', class: "picker-columns" }, h("div", { key: 'eef6a100428c538ddf5f4c940177254cc7ae6311', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-legacy-column", { col: c })), h("div", { key: 'f5371f3cbecbb551ee8340ca7e0b09eb8ec91f5a', class: "picker-below-highlight" }))), h("div", { key: 'a6db977aaf5489fe0076a4c6f76237726b92b9c5', tabindex: "0" })));
|
|
190
190
|
}
|
|
191
191
|
static get is() { return "ion-picker-legacy"; }
|
|
192
192
|
static get encapsulation() { return "scoped"; }
|
|
@@ -336,9 +336,9 @@ export class PickerColumnCmp {
|
|
|
336
336
|
render() {
|
|
337
337
|
const col = this.col;
|
|
338
338
|
const mode = getIonMode(this);
|
|
339
|
-
return (h(Host, { key: '
|
|
339
|
+
return (h(Host, { key: '1889cd0a42d26d1ccbed8c4292883658c2388efe', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
340
340
|
'max-width': this.col.columnWidth,
|
|
341
|
-
} }, col.prefix && (h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '
|
|
341
|
+
} }, col.prefix && (h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: 'f5c2e4d4942dfcce5f801889b821c02f1f789ca2', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (h("div", { class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
342
342
|
}
|
|
343
343
|
static get is() { return "ion-picker-legacy-column"; }
|
|
344
344
|
static get originalStyleUrls() {
|
|
@@ -336,9 +336,9 @@ export class Popover {
|
|
|
336
336
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
337
337
|
const desktop = isPlatform('desktop');
|
|
338
338
|
const enableArrow = arrow && !parentPopover;
|
|
339
|
-
return (h(Host, Object.assign({ key: '
|
|
339
|
+
return (h(Host, Object.assign({ key: 'e8cc03cd7766a460172a1536d1498e63a0bf0b7f', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
340
340
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
341
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '
|
|
341
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: 'b24b30bc740796b3a5d9ea74e26e34e634c8cc9a', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { class: "popover-arrow", part: "arrow" }), h("div", { key: '04de0f983c074f945065705bf008fa96f8ce31eb', class: "popover-content", part: "content" }, h("slot", { key: 'dc56cb477ed4c891e425fdae256676791a1cf7c8' })))));
|
|
342
342
|
}
|
|
343
343
|
static get is() { return "ion-popover"; }
|
|
344
344
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class ProgressBar {
|
|
|
28
28
|
const mode = getIonMode(this);
|
|
29
29
|
// If the progress is displayed as a solid bar.
|
|
30
30
|
const progressSolid = buffer === 1;
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '9afb53853b0f805cee6de3311577bbae529d23a6', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses(color, {
|
|
32
32
|
[mode]: true,
|
|
33
33
|
[`progress-bar-${type}`]: true,
|
|
34
34
|
'progress-paused': paused,
|
|
@@ -4,7 +4,7 @@
|
|
|
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
|
-
configs({ directions: ['ltr'],
|
|
7
|
+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
8
8
|
test.describe(title('progress-bar: a11y'), () => {
|
|
9
9
|
test('should not have accessibility violations', async ({ page }) => {
|
|
10
10
|
/**
|
|
@@ -107,7 +107,7 @@ export class Radio {
|
|
|
107
107
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
108
108
|
const mode = getIonMode(this);
|
|
109
109
|
const inItem = hostContext('ion-item', el);
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '939b9f982252f986e80cfc4384b483268c147116', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses(color, {
|
|
111
111
|
[mode]: true,
|
|
112
112
|
'in-item': inItem,
|
|
113
113
|
'radio-checked': checked,
|
|
@@ -118,10 +118,10 @@ export class Radio {
|
|
|
118
118
|
// Focus and active styling should not apply when the radio is in an item
|
|
119
119
|
'ion-activatable': !inItem,
|
|
120
120
|
'ion-focusable': !inItem,
|
|
121
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '
|
|
121
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '40b54d34dc0d92aaf875ba6f523e786f38deb583', class: "radio-wrapper" }, h("div", { key: 'd7e8230729bda5c4f101662707509480934773dd', class: {
|
|
122
122
|
'label-text-wrapper': true,
|
|
123
123
|
'label-text-wrapper-hidden': !hasLabel,
|
|
124
|
-
}, part: "label" }, h("slot", { key: '
|
|
124
|
+
}, part: "label" }, h("slot", { key: '2e906be3e02467f8ad3469f0006f62cf9fde3036' })), h("div", { key: '6bbe0a60f552d9ba9e4fc55c626ff85f450e93e5', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
125
125
|
}
|
|
126
126
|
static get is() { return "ion-radio"; }
|
|
127
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@
|
|
|
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
|
-
configs({ directions: ['ltr'],
|
|
7
|
+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
8
8
|
test.describe(title('radio: a11y'), () => {
|
|
9
9
|
test('default layout should not have accessibility violations', async ({ page }) => {
|
|
10
10
|
await page.setContent(`
|
|
@@ -153,7 +153,7 @@ export class RadioGroup {
|
|
|
153
153
|
const { label, labelId, el, name, value } = this;
|
|
154
154
|
const mode = getIonMode(this);
|
|
155
155
|
renderHiddenInput(true, el, name, value, false);
|
|
156
|
-
return h(Host, { key: '
|
|
156
|
+
return h(Host, { key: '6e448f4e0fbc7867865bead79985608e59fe06f2', role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode });
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "ion-radio-group"; }
|
|
159
159
|
static get properties() {
|