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