112 Commits

Author SHA1 Message Date
b18a193684 chore(): sync with main 2022-12-08 12:39:38 -05:00
1b30fc97d3 feat(modal): data and role are passed to canDismiss (#26384)
resolves #26292
2022-12-02 10:46:41 -05:00
c943dff5a3 chore(overlays): generic for present/dismiss options (#26287) 2022-11-21 16:57:17 -05:00
34ca337b8a feat(loading): use loading overlay inline (#26153) 2022-10-24 16:49:17 -04:00
6bb9d8a5d7 Merge remote-tracking branch 'origin/main' into 7.0-sync-09-16-22 2022-09-16 15:20:33 -04:00
6cb5827d06 fix(overlays): focus trapping no longer includes disabled elements (#25949) 2022-09-16 11:45:45 -04:00
5c10f98ceb fix(overlays): focus trapping no longer includes hidden elements (#25948) 2022-09-15 16:36:45 -04:00
a1ec9aabd8 fix(overlays): dismiss on keydown to avoid chrome for windows and firefox bug (#25811)
resolves #25802

BREAKING CHANGE:

Ionic now listens on the `keydown` event instead of the `keyup` event when determining when to dismiss overlays via the "Escape" key. Any applications that were listening on `keyup` to suppress this behavior should listen on `keydown` instead.
2022-08-23 17:14:56 -04:00
f9ab9b54dd fix(datetime): closing time picker no longer changes month (#25478)
resolves #25438
2022-06-17 11:35:26 -04:00
dcc2da2800 fix(overlays): focus is not moved if active element is in overlay (#25481)
resolves #24127, resolves #24820 

Co-authored-by: MarkChrisLevy <MarkChrisLevy@users.noreply.github.com>
2022-06-16 10:04:11 -04:00
5676bab316 lint(eslint): migrate to eslint and prettier (#25046) 2022-04-04 11:12:53 -04:00
e4ec572043 fix(modal): sheet modal now allows input focusing when backdrop disabled (#24840)
resolves #24581
2022-02-28 13:27:12 -05:00
8246112ca1 fix(toast): toast is now correctly excluded from focus trapping (#24816)
resolves #24733
2022-02-22 08:56:30 -05:00
897ae4a454 fix(angular, react, vue): overlays no longer throw errors when used inside tests (#24681)
resolves #24549, resolves #24590
2022-02-02 15:25:51 -05:00
928c5fbfcb fix(modal, popover): quickly opening modal/popover no longer presents duplicates (#24697) 2022-02-02 13:38:17 -05:00
632dafcd57 fix(menu): focus trapping with menu and overlays no longer results in errors (#24611)
resolves #24361, #24481
2022-01-25 10:09:37 -05:00
29f1140384 fix(toast): allow input focus while toast is visible (#24572)
Resolves #24571
2022-01-19 12:01:14 -05:00
f5b4382fd5 fix(overlays): getTop now returns the top-most presented overlay (#24547)
Resolves #19111
2022-01-11 15:13:35 -05:00
77f8412b74 fix(react,vue): backdrop for inline modal/popover overlay (#24453)
Resolves #24449
2022-01-07 13:21:20 -05:00
4715b83abb fix(overlays): define custom element children (#24439)
Closes #24393
2021-12-17 13:48:17 -05:00
7c700b4caa fix(overlays): define children custom elements (#24372)
Resolves #24366
2021-12-10 16:32:12 -05:00
5a2a335784 fix(all): Ionic components that use child Ionic components are now correctly defined (#24191)
resolves #23571, #24116, #24129

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
2021-11-11 12:18:38 -05:00
da339a8a74 fix(modal, popover): opening modal and popover now works even if overlay was added to ion-app directly (#24174)
resolves #23728
2021-11-08 10:19:23 -05:00
b3759aed5b fix(overlays): declarative modals now work properly with the hardware back button (#24165) 2021-11-05 10:04:13 -04:00
2497a53255 fix(select): focus selected item in popovers (#23991) 2021-10-01 13:33:53 -05:00
12216d378d feat(modal): add bottom sheet functionality (#23828)
resolves #21039
2021-08-31 15:19:19 -04:00
a212eb5259 fix(overlays): thrown errors are no longer suppressed (#23831)
resolves #22724
2021-08-27 12:51:17 -04:00
2c07a1566b feat(select): update popover interface to match MD spec on desktop, allow multiple values in popover interface (#23474)
resolves #23657
resolves #15500
resolves #12310
2021-07-20 11:23:00 -04:00
8dbe8ba7bc fix(modal, popover): overlays now automatically determine if they are inline (#23434) 2021-06-08 14:25:06 -04:00
3be1c3dcd7 feat(modal): modals can now be used inline (#23341)
resolves #20117, resolves #20263
2021-06-01 11:09:40 -04:00
7d47c91641 chore(): sync next with main branch 2021-05-26 10:14:38 -04:00
a9b12a5aa4 fix(overlays): screen readers no longer read content behind overlays (#23284)
resolves #22714
2021-05-11 09:51:37 -04:00
a67a0fabb8 feat(popover): add desktop support (#23258)
resolves #21599
2021-05-10 17:37:52 -04:00
308fa1c0dd feat(popover): popover can now be used inline (#23231)
BREAKING CHANGE: Converted `ion-popover` to use the Shadow DOM.
2021-05-03 12:02:22 -04:00
0de75afbef feat(custom-elements): add experimental custom elements build (#22863)
Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
2021-02-11 12:08:00 -05:00
9659ad6334 fix(item): only add click event listener to items with inputs (#22352)
This stops screen readers, such as NVDA, from reading every item as clickable even when it is text only.

fixes #22011
2020-11-04 16:19:38 -05:00
18ad9efa4b chore(): sync vue branch with master 2020-10-08 11:38:58 -04:00
cc45ad815c fix(overlays): return focus to presenting element after dismissal (#22167)
resolves #21768
2020-09-24 18:07:25 -04:00
ea0e0499e2 fix(radio): update to follow accessibility guidelines outlined by wai-aria (#22113)
This also fixes the Select "popover" interface as it is made up of radio buttons

WAI-ARIA Guidelines:

- Tab and Shift + Tab: Move focus into and out of the radio group. When focus moves into a radio group :
  - If a radio button is checked, focus is set on the checked button.
  - If none of the radio buttons are checked, focus is set on the first radio button in the group.
- Space: checks the focused radio button if it is not already checked.
- Right Arrow and Down Arrow: move focus to the next radio button in the group, uncheck the previously focused button, and check the newly focused button. If focus is on the last button, focus moves to the first button.
- Left Arrow and Up Arrow: move focus to the previous radio button in the group, uncheck the previously focused button, and check the newly focused button. If focus is on the first button, focus moves to the last button.

Closes #21743
2020-09-24 14:33:27 -04:00
5ffa65f84a feat(vue): add ionic vue beta (#22062) 2020-09-10 15:20:49 -04:00
5c177d756f fix(overlays): prevent focus from being stolen when presenting another overlay from within a modal (#21856)
resolves #21840
2020-08-21 12:55:04 -04:00
bcbe8cbb8d fix(overlay): do not try to trap focus on hidden inputs (#21799) 2020-07-23 11:19:31 -04:00
fff4aec6cf fix(overlays): trap focus inside overlay components except toast (#21716)
fixes #21647
2020-07-22 12:09:31 -04:00
79518468dd fix(overlays): move prepareOverlay to connectedCallback
For custom elements builds, overlays cannot use hasAttribute() in the constructor, so moving it to connectedCallback instead.
2020-07-21 13:07:54 -05:00
9d0dcbbd31 fix(overlays): respect keyboardClose property when opening overlays (#21240) 2020-05-08 11:56:40 -04:00
fc2be8d08b fix(overlays): focus overlay when presented (#20997)
fixes #19882, fixes #17126
2020-04-28 16:43:00 -04:00
671802f9a2 fix(overlays): prevent accidental clicks when dismissing overlays (#21093)
fixes #21092
2020-04-27 11:33:23 -04:00
976e68da5b refactor(): minor updates for next stencil version (#20787) 2020-03-24 11:59:07 -04:00
6b2a929cd7 fix(menu): hardware back button now dismisses side menu if open (#20558)
fixes #20559
2020-02-24 11:37:51 -05:00
8d3ce8d29c fix(modal): allow swipe to close animation to be overridden (#20585)
fixes #20577
2020-02-24 11:22:07 -05:00