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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Host, h } from "@stencil/core";
|
|
5
5
|
import { findClosestIonContent, disableContentScrollY, resetContentScrollY } from "../../utils/content/index";
|
|
6
|
-
import { inheritAriaAttributes, clamp, debounceEvent,
|
|
6
|
+
import { inheritAriaAttributes, clamp, debounceEvent, renderHiddenInput } from "../../utils/helpers";
|
|
7
7
|
import { printIonWarning } from "../../utils/logging/index";
|
|
8
8
|
import { isRTL } from "../../utils/rtl/index";
|
|
9
9
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -421,16 +421,7 @@ export class Range {
|
|
|
421
421
|
}
|
|
422
422
|
renderRangeSlider() {
|
|
423
423
|
var _a;
|
|
424
|
-
const { min, max, step,
|
|
425
|
-
/**
|
|
426
|
-
* Look for external label, ion-label, or aria-labelledby.
|
|
427
|
-
* If none, see if user placed an aria-label on the host
|
|
428
|
-
* and use that instead.
|
|
429
|
-
*/
|
|
430
|
-
let { labelText } = getAriaLabel(el, rangeId);
|
|
431
|
-
if (labelText === undefined || labelText === null) {
|
|
432
|
-
labelText = inheritedAttributes['aria-label'];
|
|
433
|
-
}
|
|
424
|
+
const { min, max, step, handleKeyboard, pressedKnob, disabled, pin, ratioLower, ratioUpper, pinFormatter, inheritedAttributes, } = this;
|
|
434
425
|
let barStart = `${ratioLower * 100}%`;
|
|
435
426
|
let barEnd = `${100 - ratioUpper * 100}%`;
|
|
436
427
|
const rtl = isRTL(this.el);
|
|
@@ -490,10 +481,6 @@ export class Range {
|
|
|
490
481
|
ticks.push(tick);
|
|
491
482
|
}
|
|
492
483
|
}
|
|
493
|
-
let labelledBy;
|
|
494
|
-
if (this.hasLabel) {
|
|
495
|
-
labelledBy = 'range-label';
|
|
496
|
-
}
|
|
497
484
|
return (h("div", { class: "range-slider", ref: (rangeEl) => (this.rangeSlider = rangeEl),
|
|
498
485
|
/**
|
|
499
486
|
* Since the gesture has a threshold, the value
|
|
@@ -541,8 +528,7 @@ export class Range {
|
|
|
541
528
|
handleKeyboard,
|
|
542
529
|
min,
|
|
543
530
|
max,
|
|
544
|
-
|
|
545
|
-
labelledBy,
|
|
531
|
+
inheritedAttributes,
|
|
546
532
|
}), this.dualKnobs &&
|
|
547
533
|
renderKnob(rtl, {
|
|
548
534
|
knob: 'B',
|
|
@@ -555,8 +541,7 @@ export class Range {
|
|
|
555
541
|
handleKeyboard,
|
|
556
542
|
min,
|
|
557
543
|
max,
|
|
558
|
-
|
|
559
|
-
labelledBy,
|
|
544
|
+
inheritedAttributes,
|
|
560
545
|
})));
|
|
561
546
|
}
|
|
562
547
|
render() {
|
|
@@ -576,7 +561,7 @@ export class Range {
|
|
|
576
561
|
const needsEndAdjustment = inItem && !hasEndContent;
|
|
577
562
|
const mode = getIonMode(this);
|
|
578
563
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
579
|
-
return (h(Host, { key: '
|
|
564
|
+
return (h(Host, { key: '2ddcec5645566b2581a9c45891926722e903487e', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses(this.color, {
|
|
580
565
|
[mode]: true,
|
|
581
566
|
'in-item': inItem,
|
|
582
567
|
'range-disabled': disabled,
|
|
@@ -585,10 +570,10 @@ export class Range {
|
|
|
585
570
|
[`range-label-placement-${labelPlacement}`]: true,
|
|
586
571
|
'range-item-start-adjustment': needsStartAdjustment,
|
|
587
572
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
588
|
-
}) }, h("label", { key: '
|
|
573
|
+
}) }, h("label", { key: '87ca3578203144d6543f4b7cb4145e99a2a56445', class: "range-wrapper", id: "range-label" }, h("div", { key: '9acb1a0778f816d6054443f58fedca219b6fef41', class: {
|
|
589
574
|
'label-text-wrapper': true,
|
|
590
575
|
'label-text-wrapper-hidden': !hasLabel,
|
|
591
|
-
}, part: "label" }, label !== undefined ? h("div", { class: "label-text" }, label) : h("slot", { name: "label" })), h("div", { key: '
|
|
576
|
+
}, part: "label" }, label !== undefined ? h("div", { class: "label-text" }, label) : h("slot", { name: "label" })), h("div", { key: '0c0ca9e634ff1ff257e077630ed46aab599c4087', class: "native-wrapper" }, h("slot", { key: '99f5f6c4e3323cbe0d09b7d18fcda2fcf29951e1', name: "start" }), this.renderRangeSlider(), h("slot", { key: 'f525b2c755c1287e23d9e1920617518fa2d08e05', name: "end" })))));
|
|
592
577
|
}
|
|
593
578
|
static get is() { return "ion-range"; }
|
|
594
579
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1055,13 +1040,15 @@ export class Range {
|
|
|
1055
1040
|
}];
|
|
1056
1041
|
}
|
|
1057
1042
|
}
|
|
1058
|
-
const renderKnob = (rtl, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard,
|
|
1043
|
+
const renderKnob = (rtl, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard, pinFormatter, inheritedAttributes }) => {
|
|
1059
1044
|
const start = rtl ? 'right' : 'left';
|
|
1060
1045
|
const knobStyle = () => {
|
|
1061
1046
|
const style = {};
|
|
1062
1047
|
style[start] = `${ratio * 100}%`;
|
|
1063
1048
|
return style;
|
|
1064
1049
|
};
|
|
1050
|
+
// The aria label should be preferred over visible text if both are specified
|
|
1051
|
+
const ariaLabel = inheritedAttributes['aria-label'];
|
|
1065
1052
|
return (h("div", { onKeyDown: (ev) => {
|
|
1066
1053
|
const key = ev.key;
|
|
1067
1054
|
if (key === 'ArrowLeft' || key === 'ArrowDown') {
|
|
@@ -1083,7 +1070,7 @@ const renderKnob = (rtl, { knob, value, ratio, min, max, disabled, pressed, pin,
|
|
|
1083
1070
|
'range-knob-max': value === max,
|
|
1084
1071
|
'ion-activatable': true,
|
|
1085
1072
|
'ion-focusable': true,
|
|
1086
|
-
}, style: knobStyle(), role: "slider", tabindex: disabled ? -1 : 0, "aria-label":
|
|
1073
|
+
}, style: knobStyle(), role: "slider", tabindex: disabled ? -1 : 0, "aria-label": ariaLabel !== undefined ? ariaLabel : null, "aria-labelledby": ariaLabel === undefined ? 'range-label' : null, "aria-valuemin": min, "aria-valuemax": max, "aria-disabled": disabled ? 'true' : null, "aria-valuenow": value }, pin && (h("div", { class: "range-pin", role: "presentation", part: "pin" }, pinFormatter(value))), h("div", { class: "range-knob", role: "presentation", part: "knob" })));
|
|
1087
1074
|
};
|
|
1088
1075
|
const ratioToValue = (ratio, min, max, step) => {
|
|
1089
1076
|
let value = (max - min) * ratio;
|
|
@@ -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('range: a11y'), () => {
|
|
9
9
|
test('should not have accessibility violations', async ({ page }) => {
|
|
10
10
|
await page.setContent(`
|
|
@@ -20,4 +20,28 @@ describe('range: label', () => {
|
|
|
20
20
|
expect(propEl).not.toBeNull();
|
|
21
21
|
expect(slotEl).toBeNull();
|
|
22
22
|
});
|
|
23
|
+
it('should prefer aria label if both attribute and visible text provided', async () => {
|
|
24
|
+
const page = await newSpecPage({
|
|
25
|
+
components: [Range],
|
|
26
|
+
html: `
|
|
27
|
+
<ion-range aria-label="Aria Label Text" label="Label Prop Text"></ion-range>
|
|
28
|
+
`,
|
|
29
|
+
});
|
|
30
|
+
const range = page.body.querySelector('ion-range');
|
|
31
|
+
const nativeSlider = range.shadowRoot.querySelector('.range-knob-handle');
|
|
32
|
+
expect(nativeSlider.getAttribute('aria-label')).toBe('Aria Label Text');
|
|
33
|
+
expect(nativeSlider.getAttribute('aria-labelledby')).toBe(null);
|
|
34
|
+
});
|
|
35
|
+
it('should prefer visible label if only visible text provided', async () => {
|
|
36
|
+
const page = await newSpecPage({
|
|
37
|
+
components: [Range],
|
|
38
|
+
html: `
|
|
39
|
+
<ion-range label="Label Prop Text"></ion-range>
|
|
40
|
+
`,
|
|
41
|
+
});
|
|
42
|
+
const range = page.body.querySelector('ion-range');
|
|
43
|
+
const nativeSlider = range.shadowRoot.querySelector('.range-knob-handle');
|
|
44
|
+
expect(nativeSlider.getAttribute('aria-label')).toBe(null);
|
|
45
|
+
expect(nativeSlider.getAttribute('aria-labelledby')).toBe('range-label');
|
|
46
|
+
});
|
|
23
47
|
});
|
|
@@ -594,7 +594,7 @@ export class Refresher {
|
|
|
594
594
|
}
|
|
595
595
|
render() {
|
|
596
596
|
const mode = getIonMode(this);
|
|
597
|
-
return (h(Host, { key: '
|
|
597
|
+
return (h(Host, { key: 'a0de60286257949f47ce80fccc7d35477a0cbfa1', slot: "fixed", class: {
|
|
598
598
|
[mode]: true,
|
|
599
599
|
// Used internally for styling
|
|
600
600
|
[`refresher-${mode}`]: true,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import AxeBuilder from "@axe-core/playwright";
|
|
5
5
|
import { expect } from "@playwright/test";
|
|
6
6
|
import { configs, test, dragElementBy } from "../../../../utils/test/playwright/index";
|
|
7
|
-
configs({ directions: ['ltr'], modes: ['md'],
|
|
7
|
+
configs({ directions: ['ltr'], modes: ['md'], palettes: ['light', 'dark'] }).forEach(({ config, title }) => {
|
|
8
8
|
test.describe(title('refresher: a11y for ion-color()'), () => {
|
|
9
9
|
test('should not have accessibility violations', async ({ page }) => {
|
|
10
10
|
await page.setContent(`
|
|
@@ -52,7 +52,7 @@ export class RefresherContent {
|
|
|
52
52
|
const pullingIcon = this.pullingIcon;
|
|
53
53
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
54
54
|
const mode = getIonMode(this);
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '09b538ace5a850e4cfd206e13a3c04ecb6c383e1', class: mode }, h("div", { key: '13c564d2970939f250ff8d2ec6bab2c6ad20ea88', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (h("div", { class: "refresher-pulling-icon" }, h("div", { class: "spinner-arrow-container" }, h("ion-spinner", { name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (h("div", { class: "arrow-container" }, h("ion-icon", { icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (h("div", { class: "refresher-pulling-icon" }, h("ion-icon", { icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), h("div", { key: '21e7d4014f5779238ecf9fee4b9d492232835753', class: "refresher-refreshing" }, this.refreshingSpinner && (h("div", { class: "refresher-refreshing-icon" }, h("ion-spinner", { name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "ion-refresher-content"; }
|
|
58
58
|
static get properties() {
|
|
@@ -20,7 +20,7 @@ export class Reorder {
|
|
|
20
20
|
render() {
|
|
21
21
|
const mode = getIonMode(this);
|
|
22
22
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '0a7ac59a7c42bce0b76a13a5e03a0e2f13539cea', class: mode }, h("slot", { key: 'cd9c737ec8dfd0afe0bd558141f9f7b66bca66cf' }, h("ion-icon", { key: '3dc8fb3478bd2be7f99c1e15b51a41f18b421dbb', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "ion-reorder"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -238,7 +238,7 @@ export class ReorderGroup {
|
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
240
|
const mode = getIonMode(this);
|
|
241
|
-
return (h(Host, { key: '
|
|
241
|
+
return (h(Host, { key: '1fe29e61375e3c7fa810b49cf55fb17fd6d9ec82', class: {
|
|
242
242
|
[mode]: true,
|
|
243
243
|
'reorder-enabled': !this.disabled,
|
|
244
244
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -59,7 +59,7 @@ export class RippleEffect {
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
const mode = getIonMode(this);
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '2bf24209bf2e1f0ba43e2c38357a54a2a17a4565', role: "presentation", class: {
|
|
63
63
|
[mode]: true,
|
|
64
64
|
unbounded: this.unbounded,
|
|
65
65
|
} }));
|
|
@@ -23,10 +23,10 @@ export class RouterLink {
|
|
|
23
23
|
rel: this.rel,
|
|
24
24
|
target: this.target,
|
|
25
25
|
};
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '95f4eb3b6292a5525db6d3ed6111d4fbce48fd8b', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
27
27
|
[mode]: true,
|
|
28
28
|
'ion-activatable': true,
|
|
29
|
-
}) }, h("a", Object.assign({ key: '
|
|
29
|
+
}) }, h("a", Object.assign({ key: '19178223d3927ed9cc6ef423050691f80e01e115' }, attrs), h("slot", { key: '0e046007427a5bc096c89c4d1a596d19cd8f89ab' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "ion-router-link"; }
|
|
32
32
|
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('router-link: a11y'), () => {
|
|
9
9
|
test('should not have accessibility violations', async ({ page }) => {
|
|
10
10
|
/**
|
|
@@ -178,7 +178,7 @@ export class RouterOutlet {
|
|
|
178
178
|
return true;
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
|
-
return h("slot", { key: '
|
|
181
|
+
return h("slot", { key: '87dd3d8fb9a9a2cbf8564c56daf317cb94329186' });
|
|
182
182
|
}
|
|
183
183
|
static get is() { return "ion-router-outlet"; }
|
|
184
184
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
|
|
|
5
5
|
import { getIonMode } from "../../global/ionic-global";
|
|
6
6
|
export class Row {
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'd4895f57cf37c2669ed5f6dbe422854afb84284f', class: getIonMode(this) }, h("slot", { key: 'd9899b3c0402a8bc6388ed45132c41c9b3959c20' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ion-row"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -378,8 +378,8 @@ export class Searchbar {
|
|
|
378
378
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
379
379
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
380
380
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
381
|
-
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '
|
|
382
|
-
return (h(Host, { key: '
|
|
381
|
+
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '5b5b1f76c164a3d06c24cc4e8caf831355063a3d', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, h("div", { key: '8dbe0a644441d7c02053183f214847766ac0ef2b', "aria-hidden": "true" }, mode === 'md' ? (h("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
382
|
+
return (h(Host, { key: '2741c301a182cc20cb0c828b75b3dca9c9e3a3f5', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses(this.color, {
|
|
383
383
|
[mode]: true,
|
|
384
384
|
'searchbar-animated': animated,
|
|
385
385
|
'searchbar-disabled': this.disabled,
|
|
@@ -389,14 +389,14 @@ export class Searchbar {
|
|
|
389
389
|
'searchbar-has-focus': this.focused,
|
|
390
390
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
391
391
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
392
|
-
}) }, h("div", { key: '
|
|
392
|
+
}) }, h("div", { key: '380ad3d3ce925d0fe826318aad1f73892f7817a8', class: "searchbar-input-container" }, h("input", Object.assign({ key: '50f51e3c3d71cbbceeee2196c3ac033ef77e8a77', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), mode === 'md' && cancelButton, h("ion-icon", { key: '6eb4cfbbad36cf31d134fc3d8221111dc10a35ae', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), h("button", { key: 'b0ac8e45b69c4337dfc86d24c7e953f9d4b428c2', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
393
393
|
/**
|
|
394
394
|
* This prevents mobile browsers from
|
|
395
395
|
* blurring the input when the clear
|
|
396
396
|
* button is activated.
|
|
397
397
|
*/
|
|
398
398
|
ev.preventDefault();
|
|
399
|
-
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: '
|
|
399
|
+
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: 'f41efbb052f98c3c67e926d95e4b299794d3d012', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
400
400
|
}
|
|
401
401
|
static get is() { return "ion-searchbar"; }
|
|
402
402
|
static get encapsulation() { return "scoped"; }
|
|
@@ -420,14 +420,14 @@ export class Segment {
|
|
|
420
420
|
}
|
|
421
421
|
render() {
|
|
422
422
|
const mode = getIonMode(this);
|
|
423
|
-
return (h(Host, { key: '
|
|
423
|
+
return (h(Host, { key: '78c3072c35c9f62f62cd88e6a9d8eba52a09b030', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
|
|
424
424
|
[mode]: true,
|
|
425
425
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
426
426
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
427
427
|
'segment-activated': this.activated,
|
|
428
428
|
'segment-disabled': this.disabled,
|
|
429
429
|
'segment-scrollable': this.scrollable,
|
|
430
|
-
}) }, h("slot", { key: '
|
|
430
|
+
}) }, h("slot", { key: '11985d112b9a0d3a973d8b94408c793269f88225' })));
|
|
431
431
|
}
|
|
432
432
|
static get is() { return "ion-segment"; }
|
|
433
433
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ import { configs, test } from "../../../../utils/test/playwright/index";
|
|
|
7
7
|
/**
|
|
8
8
|
* Only md mode uses ion-color() for the segment button
|
|
9
9
|
*/
|
|
10
|
-
configs({ directions: ['ltr'], modes: ['md'],
|
|
10
|
+
configs({ directions: ['ltr'], modes: ['md'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
|
|
11
11
|
test.describe(title('segment: a11y for ion-color()'), () => {
|
|
12
12
|
test('should not have accessibility violations', async ({ page }) => {
|
|
13
13
|
await page.setContent(`
|
|
@@ -78,7 +78,7 @@ export class SegmentButton {
|
|
|
78
78
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
79
79
|
const mode = getIonMode(this);
|
|
80
80
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'b81255f116704fa84b0a3a57b16c6ab65ae07476', class: {
|
|
82
82
|
[mode]: true,
|
|
83
83
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
84
84
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -94,10 +94,10 @@ export class SegmentButton {
|
|
|
94
94
|
'ion-activatable': true,
|
|
95
95
|
'ion-activatable-instant': true,
|
|
96
96
|
'ion-focusable': true,
|
|
97
|
-
} }, h("button", Object.assign({ key: '
|
|
97
|
+
} }, h("button", Object.assign({ key: '3d1a946472d5be4ec2d3ae897e795fdc8de18317', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), h("span", { key: 'e4ea2923bde903c79deb7f4f9608a37f05f62941', class: "button-inner" }, h("slot", { key: '2df19fbc41e1fb03ca2416ff2050c8225b0a5ce5' })), mode === 'md' && h("ion-ripple-effect", null)), h("div", { key: '4cb31e2f3d78086d489f31ec072dad91bbfaae0e', part: "indicator", class: {
|
|
98
98
|
'segment-button-indicator': true,
|
|
99
99
|
'segment-button-indicator-animated': true,
|
|
100
|
-
} }, h("div", { key: '
|
|
100
|
+
} }, h("div", { key: '6444409904e159e32c3901c1a0857a5558a6af55', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "ion-segment-button"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -563,12 +563,12 @@ button {
|
|
|
563
563
|
flex-shrink: 0;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
::slotted([slot=start]) {
|
|
566
|
+
::slotted([slot=start]:last-of-type) {
|
|
567
567
|
margin-inline-end: 16px;
|
|
568
568
|
margin-inline-start: 0;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
::slotted([slot=end]) {
|
|
571
|
+
::slotted([slot=end]:first-of-type) {
|
|
572
572
|
margin-inline-start: 16px;
|
|
573
573
|
margin-inline-end: 0;
|
|
574
574
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Host, h, forceUpdate } from "@stencil/core";
|
|
5
5
|
import { compareOptions, createNotchController, isOptionSelected } from "../../utils/forms/index";
|
|
6
|
-
import { focusVisibleElement,
|
|
6
|
+
import { focusVisibleElement, renderHiddenInput, inheritAttributes } from "../../utils/helpers";
|
|
7
7
|
import { actionSheetController, alertController, popoverController } from "../../utils/overlays";
|
|
8
8
|
import { isRTL } from "../../utils/rtl/index";
|
|
9
9
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -551,11 +551,11 @@ export class Select {
|
|
|
551
551
|
return h("ion-icon", { class: "select-icon", part: "icon", "aria-hidden": "true", icon: icon });
|
|
552
552
|
}
|
|
553
553
|
get ariaLabel() {
|
|
554
|
-
var _a
|
|
555
|
-
const { placeholder,
|
|
554
|
+
var _a;
|
|
555
|
+
const { placeholder, inheritedAttributes } = this;
|
|
556
556
|
const displayValue = this.getText();
|
|
557
|
-
|
|
558
|
-
const definedLabel = (
|
|
557
|
+
// The aria label should be preferred over visible text if both are specified
|
|
558
|
+
const definedLabel = (_a = inheritedAttributes['aria-label']) !== null && _a !== void 0 ? _a : this.labelText;
|
|
559
559
|
/**
|
|
560
560
|
* If developer has specified a placeholder
|
|
561
561
|
* and there is nothing selected, the selectText
|
|
@@ -610,7 +610,7 @@ export class Select {
|
|
|
610
610
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
611
611
|
*/
|
|
612
612
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
613
|
-
return (h(Host, { key: '
|
|
613
|
+
return (h(Host, { key: '289b0bc809a87a8f66e2578f7b0155f4a8525637', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
614
614
|
[mode]: true,
|
|
615
615
|
'in-item': inItem,
|
|
616
616
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -626,7 +626,7 @@ export class Select {
|
|
|
626
626
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
627
627
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
628
628
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
629
|
-
}) }, h("label", { key: '
|
|
629
|
+
}) }, h("label", { key: '37267c3b9e9171ff5467b9ed8f5052e9a93cbbea', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: 'd783e3394fa1219f858f1ff33ad982cb6732ae6d', class: "select-wrapper-inner" }, h("slot", { key: '8e274d4c6ad8d0ad876c35d3ecbeec56fa32c8b2', name: "start" }), h("div", { key: 'ed2259dfb409a45cee5ac674867699a27205d159', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '30ed3b3e19e6e9fdddbcb61dc4c84d60f90164ac', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { class: "select-highlight" }))));
|
|
630
630
|
}
|
|
631
631
|
static get is() { return "ion-select"; }
|
|
632
632
|
static get encapsulation() { return "shadow"; }
|
|
@@ -563,12 +563,12 @@ button {
|
|
|
563
563
|
flex-shrink: 0;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
::slotted([slot=start]) {
|
|
566
|
+
::slotted([slot=start]:last-of-type) {
|
|
567
567
|
margin-inline-end: 16px;
|
|
568
568
|
margin-inline-start: 0;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
::slotted([slot=end]) {
|
|
571
|
+
::slotted([slot=end]:first-of-type) {
|
|
572
572
|
margin-inline-start: 16px;
|
|
573
573
|
margin-inline-end: 0;
|
|
574
574
|
}
|
|
@@ -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('textarea: a11y'), () => {
|
|
9
9
|
test('default layout should not have accessibility violations', async ({ page }) => {
|
|
10
10
|
await page.setContent(`
|
|
@@ -56,6 +56,28 @@ describe('ion-select', () => {
|
|
|
56
56
|
expect(propEl).not.toBe(null);
|
|
57
57
|
expect(slotEl).toBe(null);
|
|
58
58
|
});
|
|
59
|
+
it('should prefer aria label if both attribute and visible text provided', async () => {
|
|
60
|
+
const page = await newSpecPage({
|
|
61
|
+
components: [Select],
|
|
62
|
+
html: `
|
|
63
|
+
<ion-select aria-label="Aria Label Text" label="Label Prop Text"></ion-select>
|
|
64
|
+
`,
|
|
65
|
+
});
|
|
66
|
+
const select = page.body.querySelector('ion-select');
|
|
67
|
+
const nativeButton = select.shadowRoot.querySelector('button');
|
|
68
|
+
expect(nativeButton.getAttribute('aria-label')).toBe('Aria Label Text');
|
|
69
|
+
});
|
|
70
|
+
it('should prefer visible label if only visible text provided', async () => {
|
|
71
|
+
const page = await newSpecPage({
|
|
72
|
+
components: [Select],
|
|
73
|
+
html: `
|
|
74
|
+
<ion-select label="Label Prop Text"></ion-select>
|
|
75
|
+
`,
|
|
76
|
+
});
|
|
77
|
+
const select = page.body.querySelector('ion-select');
|
|
78
|
+
const nativeButton = select.shadowRoot.querySelector('button');
|
|
79
|
+
expect(nativeButton.getAttribute('aria-label')).toBe('Label Prop Text');
|
|
80
|
+
});
|
|
59
81
|
});
|
|
60
82
|
describe('select: slot interactivity', () => {
|
|
61
83
|
test('should not prevent click handlers from firing', async () => {
|
|
@@ -9,9 +9,13 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
9
9
|
await page.setContent(`
|
|
10
10
|
<ion-select label-placement="start" fill="solid" placeholder="Select weight" label="Weight">
|
|
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-select>
|
|
16
20
|
`, config);
|
|
17
21
|
const select = page.locator('ion-select');
|
|
@@ -21,9 +25,13 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
21
25
|
await page.setContent(`
|
|
22
26
|
<ion-select label-placement="floating" fill="solid" placeholder="Select weight" label="Weight">
|
|
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-select>
|
|
28
36
|
`, config);
|
|
29
37
|
const select = page.locator('ion-select');
|
|
@@ -10,7 +10,7 @@ export class SelectOption {
|
|
|
10
10
|
this.value = undefined;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return h(Host, { key: '
|
|
13
|
+
return h(Host, { key: '808e4cf8c5778604cfecc6f218d1d24ba06f0a87', role: "option", id: this.inputId, class: getIonMode(this) });
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "ion-select-option"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,7 +102,7 @@ export class SelectPopover {
|
|
|
102
102
|
render() {
|
|
103
103
|
const { header, message, options, subHeader } = this;
|
|
104
104
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
105
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: 'cc49bc02396957ee92f8cf63b363ad491d05c8d9', class: getIonMode(this) }, h("ion-list", { key: '99ef366c7a8211b7ccf8847259ed113544db6a31' }, header !== undefined && h("ion-list-header", null, header), hasSubHeaderOrMessage && (h("ion-item", null, h("ion-label", { class: "ion-text-wrap" }, subHeader !== undefined && h("h3", null, subHeader), message !== undefined && h("p", null, message)))), this.renderOptions(options))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "ion-select-popover"; }
|
|
108
108
|
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({ directions: ['ltr'],
|
|
7
|
+
configs({ directions: ['ltr'], palettes: ['dark', 'light'] }).forEach(({ config, title }) => {
|
|
8
8
|
test.describe(title('select-popover: a11y'), () => {
|
|
9
9
|
test('should not have accessibility violations when header is defined', async ({ page }) => {
|
|
10
10
|
await page.setContent(`
|
|
@@ -25,11 +25,11 @@ export class SkeletonText {
|
|
|
25
25
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
26
26
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '57a8669d26c07a5200c221be455c38d7463077ad', class: {
|
|
29
29
|
[mode]: true,
|
|
30
30
|
'skeleton-text-animated': animated,
|
|
31
31
|
'in-media': inMedia,
|
|
32
|
-
} }, h("span", { key: '
|
|
32
|
+
} }, h("span", { key: 'a3c5ba1d02f32b81c3427c38908c0527d07edaff' }, "\u00A0")));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "ion-skeleton-text"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class Spinner {
|
|
|
39
39
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '794ae74de8e94b2d8877712362c0a24ccb7e87f2', class: createColorClasses(self.color, {
|
|
43
43
|
[mode]: true,
|
|
44
44
|
[`spinner-${spinnerName}`]: true,
|
|
45
45
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -118,12 +118,12 @@ export class SplitPane {
|
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
120
|
const mode = getIonMode(this);
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'ba9cf1cd2963611627c841ccfbbf396bbf677de5', class: {
|
|
122
122
|
[mode]: true,
|
|
123
123
|
// Used internally for styling
|
|
124
124
|
[`split-pane-${mode}`]: true,
|
|
125
125
|
'split-pane-visible': this.visible,
|
|
126
|
-
} }, h("slot", { key: '
|
|
126
|
+
} }, h("slot", { key: '0f4cf2471e100df2f35dc429fabba1cd264db480' })));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "ion-split-pane"; }
|
|
129
129
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,10 +48,10 @@ export class Tab {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const { tab, active, component } = this;
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '84b23a0a736aa6d060c2a7756bbc96b72ef53984', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
52
52
|
'ion-page': component === undefined,
|
|
53
53
|
'tab-hidden': !active,
|
|
54
|
-
} }, h("slot", { key: '
|
|
54
|
+
} }, h("slot", { key: '102092dedc7cd1eabc7f1fe0ac5d8880a6cda85f' })));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "ion-tab"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,11 +51,11 @@ export class TabBar {
|
|
|
51
51
|
const { color, translucent, keyboardVisible } = this;
|
|
52
52
|
const mode = getIonMode(this);
|
|
53
53
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '7939a97d199bf8298684e87be6a8340b4e8d63df', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses(color, {
|
|
55
55
|
[mode]: true,
|
|
56
56
|
'tab-bar-translucent': translucent,
|
|
57
57
|
'tab-bar-hidden': shouldHide,
|
|
58
|
-
}) }, h("slot", { key: '
|
|
58
|
+
}) }, h("slot", { key: '275e4051d3c58904fb0870e3feb918d3777b1288' })));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "ion-tab-bar"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|