157 KiB
5.9.3 (2021-12-15)
Bug Fixes
- vue: improve query params handling in tabs (#24355) (1c28750), closes #24353
- vue: tabs no longer get unmounted when navigating back to a tabs context (#24337) (4aab72b), closes #24332
Performance Improvements
- content: remove global click listener to improve interaction performance (#24360) (9c9e28c), closes #24359
5.9.2 (2021-12-07)
Bug Fixes
- angular: improve typing when compiling with legacy View Engine (#24221) (816096f)
- content: ensure fixed slot renders on top of content in iOS (#24300) (e41b0e0), closes #24286
- popover: improve scrolling in popover when using header and footer (#24294) (f6a00ea)
- react: present and dismiss hooks return promises (#24299) (4b26fea), closes #24293
- react: properly check for custom elements to avoid errors in unit tests (#24156) (8f188ea), closes #24149
- router: popping route now accounts for route params (#24315) (5e5054d), closes #24223
- slides: update swiper instance after initialization (#24257) (89e4bc5), closes #19638
- vue: ionic lifecycle hooks now run when using vue 3.2 setup syntax (#24253) (fb96ab5), closes #23824
- vue: switching between tabs preserves query string (#24297) (047d3c7), closes #23699
5.9.1 (2021-11-17)
Bug Fixes
5.9.0 (2021-11-17)
Bug Fixes
- action-sheet: safe area is now accounted for in MD mode (#24176) (642255e), closes #24175
- input: date type in ion-input now aligns correctly on iOS 15 (#24217) (0566ec0)
- vue: canGoBack method now works correctly (#24188) (7c43589), closes #24109
Features
5.8.5 (2021-10-27)
Bug Fixes
- menu: added focus trapping, improved compatibility with screen readers (#24076) (bdb268a)
- vue: back button now selects correct route when navigating from view multiple times (#24060) (a09d7d4), closes #23987
- vue: mount correct views when navigating (#24056) (24659a5), closes #23914
5.8.4 (2021-10-11)
Bug Fixes
- angular: setup config properly (#24054) (e001f24), closes #24051 #24052
- back-button: pass aria-label to native element (#24027) (68a7e43)
5.8.3 (2021-10-07)
Bug Fixes
5.8.2 (2021-10-06)
Bug Fixes
- alert: made it easier to tell if alert is scrollable in MD mode (#23976) (a262753)
- angular: use initialize function when setting up ionic angular to avoid config errors (#24004) (f112ad4), closes #22853
- item-sliding: closing an item can no longer be interrupted (#23973) (3ca0419), closes #23969
- react: overlay hooks memorised properly to prevent re-renders (#24010) (2c97712), closes #23741
- select-popover: non-scrollable popovers no longer have forced overscroll (#23972) (aa4ba89), closes #23971
- status-bar: tapping status bar correctly scrolls content to top (#24001) (25eb8cd), closes #20423
5.8.1 (2021-09-22)
Bug Fixes
- angular: select method now has correct types (#23953) (3c1be89), closes #23952
- item-sliding: item-sliding accounts for multiple ion-item elements (#23943) (8108edd), closes #19312
- label: only inherit color if color property is set on ion-item (#23944) (ae1325c), closes #20125
5.8.0 Calcium (2021-09-15)
Bug Fixes
- angular: nested tabs now go to correct page (#23902) (1ed9f07), closes #23897
- header: role attribute can now be customized (#23888) (8888e2b), closes #21327
- react: modal now mounts child component independently of other modals (#23903) (1e13429), closes #23904
- tab-bar: safe area padding now added when slot="top" (#23895) (4782969), closes #23893
Features
- action-sheet, loading, modal, picker, popover: pass HTML attributes to host element (#23929) (bd96a81)
- alert, toast: pass arbitrary HTML attributes to host element (#23891) (73a1daf), closes #23825
5.7.0 Potassium (2021-09-01)
Bug Fixes
- alert: AlertButton role now has correct types (#23791) (864212b)
- label: label now only takes up as much space as needed when slotted (#23807) (9932e26), closes #23806
- reorder-group: dragging reorder item to bottom no longer gives out of bounds index (#23797) (02409f2), closes #23796
- vue: router guards are now fire correctly when written in a component (#23821) (3c44222), closes #23820
Features
- slides: add IonicSlides module for Swiper migration, deprecate ion-slides (#23844) (11fda41), closes #23447
Code Refactoring
- virtual-scroll: deprecated virtual scroll in favor of solutions provided by JS frameworks (#23854) (a0229bc)
5.6.14 (2021-08-18)
Bug Fixes
- back-button: MD ripple now accounts for --ripple-color (#23749) (6b18a89), closes #23748
- img: correctly determine when to load image when scrolling quickly on slower devices (#23704) (067e621), closes #23703
- item-sliding: prevent scrolling during slide gesture (#23774) (e0c4ad3), closes #19564
- nav: custom animation is now used correctly (#23779) (f9415ef), closes #23777
- vue: using router.go now shows correct view (#23773) (621f4fa), closes #22563
5.6.13 (2021-08-04)
Bug Fixes
- checkbox, radio: change event interfaces correctly use TypeScript generics for value (#23044) (8a941fd)
- gesture: onEnd now correctly fires even if the event target was removed from the DOM (#23713) (4edb5e2), closes #22819
- item-sliding: opening item while other items are open no longer requires multiple swipes (#23683) (792864f), closes #21579
- react: IonTabs no longer causes SSR to fail (#23696) (f2a05be), closes #23651
- vue: improve accuracy of ion-page dev warning (#23677) (fb260a9), closes #23675
- vue: tabs warning about user-provided router outlet change is now correctly logged (#23724) (4a64e97), closes #23719
5.6.12 (2021-07-21)
Bug Fixes
- action-sheet: header, subheader, and icon alignment better matches native ios (#23322) (39315bc), closes #23317
- button: buttons are now disabled during page transitions (#23589) (3b803eb), closes #23588
- item: mirror disabled prop to aria attribute (#23544) (9021e7c), closes #23513
- menu-button: custom aria-label can now be set (#23608) (c08345d), closes #23604
- overlays: overlay interfaces are now exported from framework packages and documented (#23619) (773bbcb), closes #22790
- router-outlet: improve reliability of swipe back gesture when quickly swiping back (#23527) (fa06942), closes #22895
5.6.11 (2021-07-01)
Bug Fixes
- animation: typescript interface has correct return value for progress methods (#23536) (f3d6abb)
- ios, md: double tapping back button no longer causes app to go back 2 pages (#23526) (69be51d), closes #18455
5.6.10 (2021-06-22)
Bug Fixes
- button: buttons using fill and color properties now account for hover and focused opacity variables (#23442) (68c0e71), closes #23441
- item: using multiple items with inputs no longer results in console warnings (#23429) (e27b5b6), closes #23427
- vue: IonTabs can now accept IonRouterOutlet, deprecated default router outlet in tabs (#23477) (a2a4cff), closes #23321
5.6.9 (2021-06-08)
Bug Fixes
- modal: swipe to close modal is no longer swipeable on footer (#23401) (ae96563), closes #23398
- title: inherit padding for iOS title in a toolbar (#23343) (82cfa55), closes #23072
- vue: improve v-model integration for Vue 3.1.0+ (#23420) (f008628)
- vue: prevent error from being thrown when testing on certain jest runners (#23421) (60bedb5), closes #23397
5.6.8 (2021-05-27)
Bug Fixes
- action-sheet: subheader no longer overlaps action sheet buttons (#23318) (d473a53), closes #23316
- all: reflect color property as an attribute for vue (#23345) (dc430af), closes #23323
- range: knob can now have an accessible name (#23338) (881dcff), closes #23295
- react: remove @ionic/core dependency in @ionic/react-router to resolve yarn install warning (#23351) (36bfa33), closes #23346
- react: support history@5 in preparation for react router 6 (#23297) (4da5216), closes #23294
- router: guards are now triggered on initial navigation (#23123) (56f6f56), closes #22936
- router: redirects now account for query string (#23337) (08a9f3a), closes #23136
- skeleton-text: animation no longer jumps on large skeleton text elements (#22697) (1a36922), closes #22694
- slides: resolve prototype pollution in swiper v5 (#23344) (a708c41), closes #23342
- title: large title scale animation is now correct in rtl mode (#23372) (3d474ec), closes #23371
5.6.7 (2021-05-13)
Bug Fixes
- angular: warnings are no longer generated when running tests with ng test (#23292) (9cb6c80), closes #19926
- overlays: screen readers no longer read content behind overlays (#23284) (a9b12a5), closes #22714
- refresher: refresher now only activates when pulling down on MD (#23283) (1e1596f), closes #23245
- vue: use correct history mode when doing ssr to avoid errors (#23255) (2e00dab), closes #23254
5.6.6 (2021-04-29)
Bug Fixes
- angular: back button goes back to proper tab on angular 11.2.10 (#23238) (e436439), closes #23230
- react: remove hardware back button event listener when NavManager is unmounted (#23224) (c501da7), closes #23170
- slides: undefined error is no longer thrown after destroying and quickly re-creating ion-slides (#23239) (2ccaabb), closes #22289
- vue: components inside of ion-nav are now unmounted properly (#23240) (f2f41e2), closes #23233
- vue: overlay events can now be listened for without the "on" prefix, deprecated "on" prefix event listeners (#23227) (dab927d)
5.6.5 (2021-04-22)
Bug Fixes
- content: only render a main element when content is being used in primary view (#23160) (2d07d82)
- datetime, input, textarea: only add aria-labelledby if there is an adjacent label (#23211) (a31fb55)
- radio-group: pressing spacebar correctly unselects radio with allow-empty-selection (#23194) (7139b3f), closes #22734
- react: callback refs now work correctly with ionic components (#23152) (0dd189e), closes #23153
- segment, segment-button: use tablist and tab roles (#23145) (91ac340)
- vue: dynamic tabs are now correctly recognized (#23212) (004885b), closes #22847
- vue: update props when navigating to new parameterized route (#23189) (35c8802)
5.6.4 (2021-04-08)
Bug Fixes
- angular: swiping back quickly no longer causes app to get stuck (#23125) (28c52fd), closes #15154
- input: inherit aria-label to input (#23159) (61f094d)
- react: overlays now correctly unmount any child components after dismissing (#23149) (dee6eb3), closes #23140
- react, vue: correct view now chosen when going back inside tabs (#23154) (7203190), closes #23087 #23101
- toggle: prevent click event from firing twice (#23146) (42e6c90), closes #23041
- vue: account for event name changes in vue 3.0.6+ for overlay components (#23100) (27318cf)
- vue: components now integrate properly with vee-validate (#23114) (ba51daf), closes #22886
5.6.3 (2021-03-23)
Bug Fixes
- all: update tslib to resolve export errors (#23092) (0cdd326), closes #23090
- react: correctly show ion-back-button when going back (#23069) (1c93b75), closes #22692
5.6.2 (2021-03-22)
Bug Fixes
5.6.1 (2021-03-17)
Bug Fixes
- custom-elements: overlays now present correctly when using custom elements build (#23039) (e4bf052), closes #23029
- item: detail icon is no longer announced by screen readers (#23055) (c877061), closes #23054
- label: properly float labels for non-input items (#23060) (c8a3999)
- react: only pass tab event props from IonTabs to IonTabBar if defined (#23024) (f94e618), closes #23023
- refresher: progressEnd no longer errors when pulling quickly in MD native refresher (#23056) (67617fb)
- virtual-scroll: allow null in items property (#23047) (2a253a1)
- vue: passing params as props are correctly updated when switching pages (#23049) (2f54bc1), closes #23043
5.6.0 Argon (2021-03-04)
Bug Fixes
- all: improve support for ids with special characters when getting label element (#22680) (19d63f6), closes #22678
- header: collapsed toolbar is no longer incorrectly shown when using ion-refresher (#22937) (5300dcc), closes #22829
- label: only show placeholder with floating label when focused (#22958) (9282aa6), closes #17571
- progress-bar: use correct theme colors in dark mode (#22965) (b6b2714), closes #20098
- radio-group: pressing space no longer jumps screen to bottom of page (#22892) (3a0465e), closes #22716
- react: IonRouterOutlet now respects animated={false} prop (#22905) (da1b7a0), closes #22903
- react: onIonTabsWillChange and onIonTabsDidChange event handlers are now properly bound to IonTabs (#22233) (b064fde)
- react, vue: navigating using ion-back-button now selects correct page (#22974) (cd8ffd8), closes #22830
- react, vue: tab buttons no longer throw an error if href is undefined (#22998) (943e3f6), closes #22997
- refresher: add correct dark mode styles (#22639) (c05476b), closes #22637
- vue: correctly remove active state from tab button when navigating away from tab (#23000) (a2763af), closes #22597
- vue: prevent race conditions when opening overlays (#22883) (68a9b80), closes #22880
Features
- custom-elements: add experimental custom elements build (#22863) (0de75af)
- progress-bar: add parts for more design customization (#22938) (e256d3f), closes #20062 #21820
- react: add react hooks to control overlay components (#22484) (b83e009)
- searchbar: add showClearIcon property (#22759) (215eb5d), closes #22738
- vue: add composition API ionic lifecycle hooks (#22970) (dd1c8db), closes #22769
5.5.5 (2021-02-26)
Bug Fixes
5.5.4 (2021-02-04)
Bug Fixes
- angular: update ngAdd schematic (#22858) (487349f)
- app: keyboard no longer hides when using contenteditable (#22857) (b6b2d34), closes #22856
- ios: scroll assist no longer prevents first click event from firing (#22845) (f7d4c21), closes #21871
- select: class on component now indicates when select is open (#22846) (1a5accc), closes #22801
- vue: ionChange events now propagate correctly (#22872) (ff0f1da), closes #22870
5.5.3 (2021-01-28)
Bug Fixes
- react: do not unmount overlay inner component until overlay is dismissed (#22813) (ab1fc8f), closes #22761
- react: adding dynamic class to ion-page no longer hides component (#22666) (a01bdb8), closes #22631
- react: improve view matching logic (#22569) (f891f66)
- react, vue: do not show back button when replacing to root page (#22750) (9e9a372), closes #22528
- refresher: correctly detect spinner when using native refresher (#22800) (e2d8e5c), closes #22706
- title: only add large title transition when using collapsible header (#22762) (348c50b), closes #22760
- vue: all ionic vue components can now use router link (#22743) (3d6ac13)
- vue: correctly determine leaving view when transitioning to a new instance of a previous page (#22655) (e3a05bf), closes #22654 #22658
- vue: ensure v-model value is properly synced before ionChange event (#22749) (e1d6627), closes #22610
- vue: improve path matching with tabs, deprecated adding additional pages as children of tabs without a router outlet (#22807) (2a3ce9a), closes #22519
- vue: improve v-model binding sync between vue wrappers and web components (#22745) (64719f4), closes #22731
- vue: output commonjs format for node environments (#22766) (7ecae2e)
- vue: tab bar is now correctly hidden when keyboard is open (#22687) (5c27dd8)
5.5.2 (2020-12-09)
Bug Fixes
- android: setting hardwareBackButton: false in config now disables default webview behavior (#22555) (dc9faa6), closes #18237
- button: allow aria-label to be inherited on inner button (#22632) (818e387), closes #22629
- react: hardware back button now navigates correctly (36939e1)
- react: setting a ref now allows other props to be passed in (31f45cd), closes #22609
- refresher: clean up old css if calling refresh method before native refresher is setup (#22640) (8d5ed47), closes #22636
- refresher: refresher correctly detects native refresher when shown asynchronously (#22623) (5ed73cd), closes #22616
- vue: adding non tab button elements inside ion-tab-bar no longer causes errors (#22643) (61cf0c5), closes #22642
- vue: correctly handle navigation failures (#22621) (216f51b), closes #22591
- vue: correctly remove old view when replacing route (#22566) (4f4f31b), closes #22492
- vue: pass in correct route to props function (#22605) (01afdc4), closes #22602
- vue: query strings are now correctly handled when navigating back (#22615) (a94e2a8), closes #22517
- vue: swipe back gesture is properly disabled when swipeBackEnabled config is false (#22568) (9d04c12), closes #22567
For Ionic Vue Developers
Vue Router 4 has been released! Be sure to update from the release candidate to the latest stable version of Vue Router.
For more information on the changes in Vue Router 4, see https://github.com/vuejs/vue-router-next/releases/tag/v4.0.0.
npm install vue-router@4
5.5.1 (2020-11-25)
Bug Fixes
- checkbox: click handler now fires properly (#22573) (0786835), closes #22557
- radio: properly announce radios on screen readers and resolve axe errors (#22507) (afcc46e)
- react: eliminate use of deprecated
findDOMNode, resolves #20972 (5275332) - router: navigation guards now fire when navigating to a page with params (#22521) (1956f98), closes #22516
- select: fix a11y issues with axe and screen readers (#22494) (04b874e), closes #21552 #21548
- select: improvements for announcing placeholder and value on screenreaders (#22556) (ea52db6)
- vue: onBeforeRouteLeave and onBeforeRouteUpdate hooks now fire properly (#22542) (8002114), closes #22540
- vue: tabs now correctly fire lifecycle events (#22479) (cdc2fb6), closes #22466
- vue: unit testing a routerLink-capable component no longer warns of missing router dependency (#22532) (4e23aad), closes #22506
For Ionic Vue Developers
When updating to Ionic Vue v5.5.1 make sure you are on the latest version of vue-router@next to take advantage of the bug fixes in this release:
npm install vue-router@next
5.5.0 Chlorine (2020-11-18)
Bug Fixes
- backdrop: nvda no longer incorrectly announces backdrop (#22481) (2d878fc), closes #22102
- checkbox: use a native input to fix a11y issues with axe and screen readers (#22402) (7214a84), closes #21644 #20517 #17796
- input: title attribute is now automatically inherited (#22493) (abad12f), closes #22055
- refresher: ios native refresher now works in side menu (#22449) (a4a6453)
- refresher: md native refresher now works in side menu (#22446) (6b817f2), closes #20832
- toggle: use a native input to fix a11y issues with axe and screen readers (#22477) (813611a), closes #22011 #21552
- vue: correctly pass route props to components (#22476) (0956f8b), closes #22472
- vue: tab bar now works with slot="top" (#22461) (e17c822), closes #22456
Features
- chip: add disabled property (#20658) (0a0cbd8), closes #19510
- segment: add swipeGesture property to allow for disabling of the swipe gesture (#22087) (65bc995), closes #22048
- vue: composition api lifecycle methods (#22241) (f5b0299)
- vue: vetur support (#22403) (e76f79d)
- vue: web-types support (#22428) (639314a), closes #19522
Performance Improvements
- ios: move content to stacking context while preserving position: fixed behavior (#22489) (d77a9d5), closes #22473
5.4.4 (2020-11-12)
Bug Fixes
- build: add missing es5 output (228d349)
5.4.3 (2020-11-06)
Bug Fixes
- all add missing vendor prefixes to css (0989ea5)
5.4.2 (2020-11-05)
Bug Fixes
- alert: correctly position alert when keyboard is open (#22425) (9752cd6)
- ios: contenteditable elements are now selectable on iOS (#22404) (023fb18), closes #18368
- item: only add click event listener to items with inputs (#22352) (9659ad6), closes #22011
- range: gesture is now properly re-created on connectedCallback (#22407) (2fea36f), closes #22335
- refresher: work properly in modal by waiting for content to be ready (#22390) (91d0414), closes #22256
- segment-button: color property is now reactive if previously undefined (#22405) (04161c9), closes #20831
- vue: correctly switch tabs after going back (#22309) (daf6a92), closes #22307
- vue: ensure view is updated correctly when replacing a route outside of a nav guard (#22429) (5a4d0c0), closes #22412
Performance Improvements
- ios: move content to stacking context to improve scrolling performance on iOS devices (#22180) (9f44966)
5.4.1 (2020-10-22)
Bug Fixes
- select: properly align label with select in item in MD mode (#22330) (1a2e532), closes #19887
- vue: going back with query params now goes to correct view (#22350) (561a4ac), closes #22324
- vue: improve compatibility with route guards (#22371) (31f9bc8), closes #22344
- vue: improve handling of parameterized urls (#22360) (6fad0fe), closes #22359
- vue: lifecycle events are now fired in component context (#22348) (bcef804), closes #22338
5.4.0 Sulfur (2020-10-15)
This is the first stable release of Ionic Vue.
Enjoy the Vue! 🎉
New to Ionic Vue?
Check out our Quickstart Guide to get up and running. Then be sure to check out our Building Your First App Guide to learn how build a cross platform Ionic Vue application from start to finish!
5.4.0-rc.3 (2020-10-14)
This version is dedicated to our upcoming Ionic Vue release.
Bug Fixes
Upgrade Steps
npm install @ionic/vue@5.4.0-rc.3 @ionic/vue-router@5.4.0-rc.3 --save-exact
New to Ionic Vue?
Check out our Quickstart Guide to get up and running. Then be sure to check out our Building Your First App Guide to learn how build a cross platform Ionic Vue application from start to finish!
5.4.0-rc.2 (2020-10-13)
This version is dedicated to our upcoming Ionic Vue release.
Bug Fixes
- vue: do not hide page content when using ion-page in non-routing contexts (#22302) (fff82d0), closes #22300
- vue: going back from tabs page to a non-tabs page now selects correct page (#22275) (b06ae16), closes #22258
- vue: improve swipe to go back reliability (#22288) (c74fd41), closes #22237
- vue: modal, popover, and nav are now created within application context (#22282) (6026c65), closes #22079
- vue: pages now render in correct outlet when using multiple nested outlets (#22301) (52f655c), closes #22286
Upgrade Steps
npm install @ionic/vue@5.4.0-rc.2 @ionic/vue-router@5.4.0-rc.2 --save-exact
New to Ionic Vue?
Check out our Quickstart Guide to get up and running. Then be sure to check out our Building Your First App Guide to learn how build a cross platform Ionic Vue application from start to finish!
5.4.0-rc.1 (2020-10-08)
This version is dedicated to our upcoming Ionic Vue release.
Bug Fixes
- vue: correctly handle query params (#22253) (6849dd3), closes #22229
- vue: correctly show ion-back-button when going back (#22260) (39d2530), closes #22217
- vue: hide layout shift on ion-page components (#22254) (2bad1bb), closes #22052
- vue: ion-tab-bar no longer throws undefined error when re-creating tabs (#22261) (d746561), closes #22255
Upgrade Steps
npm install @ionic/vue@5.4.0-rc.1 @ionic/vue-router@5.4.0-rc.1 --save-exact
New to Ionic Vue?
Check out our Quickstart Guide to get up and running. Then be sure to check out our Building Your First App Guide to learn how build a cross platform Ionic Vue application from start to finish!
5.3.5 (2020-10-07)
Bug Fixes
- button: allow any element type to use the "icon-only" slot (#22168) (c454c84)
- datetime: do not set ampm when the column doesn't exist (#22220) (18fb885), closes #22149
- datetime: remove the automatic switching from am to pm (#22207) (f81d18c), closes #18924 #22171 #22199
- item: properly align datetime and select with fixed or no labels (#22221) (f42c688), closes #18773 #18761 #18779
- label: keep color when focused on a floating or stacked label (#18576) (992580a), closes #18531
- select: do not close popover or set value when switching with arrow keys (#22210) (1878c8e), closes #22179
5.3.4 (2020-09-25)
Bug Fixes
- alert: follow accessibility guidelines outlined by wai-aria (#22159) (e9b2cc8), closes #21744
- overlays: return focus to presenting element after dismissal (#22167) (cc45ad8), closes #21768
- picker-column: add cancelable check to avoid intervention error in chrome (#22140) (a24a041), closes #22137
- radio: follow accessibility guidelines outlined by wai-aria (#22113) (ea0e049), closes #21743
- reorder: allow click event propagation when reorder group is disabled (#21947) (baafe08), closes #21017
- segment: do not allow text selection on desktop (#22158) (1526bdf)
Performance Improvements
5.3.3 (2020-09-17)
Bug Fixes
- datetime: do not reset to am when changing hour and pm is set (#21997) (8b85fe0), closes #19175 #19260 #20026 #16630
- input: only focus the first input / textarea when clicking on the parent item (#22049) (99f2532), closes #22037 #22032
- react: Keep a hold of previous routes when doing a redirect, closes #22053 (74af3cb)
- react: redirect routes should unmount leaving component, fixes #22022 (#22029) (b11e06c)
- textarea: do not generate duplicate IDs between ion-input and ion-textarea (#22074) (c72c7ff), closes #21542
5.3.2 (2020-08-27)
Bug Fixes
- input: improve reliability of scroll assist when accessory bar is enabled (#21936) (22477fb), closes #21912
- input: properly focus the input when clicking the item padding in WebKit (#21930) (e4964ff), closes #21509
- input: remain focused in the input after pressing the clear button (#21985) (6878fb9), closes #21549
- label: use translateY so input caret shows up due to webkit issue (#21949) (00eac33), closes #21943
- overlays: prevent focus from being stolen when presenting another overlay from within a modal (#21856) (5c177d7), closes #21840
- range: properly display stacked labels in an item with a range (#21944) (9f4b01e), closes #21625
- react: export correct animation types (#21950) (36e4bf7)
- react: removed exporting of ionRenderToString to decrease bundle size, closes #21917 (#21928) (434befe)
- react: setting active tab properly on mount, closes #21830 (#21833) (f58424f)
- react: fix tab currentHref when changing tabs, closes #21834 (#21835) (74468ab)
5.3.1 (2020-07-27)
Bug Fixes
5.3.0 Phosphorus (2020-07-23)
Bug Fixes
- angular: per-page animations now work with swipe to go back (#21706) (2664587), closes #21692
- datetime: remove unneeded combobox role (#21708) (f00ad8a)
- input: clear button can now be tabbed to (#21633) (1dcd9de)
- ios: improve scroll assist reliability on password inputs (#21703) (3cbf9e7), closes #21688
- keyboard: keyboard events now consistently fire on android (#21741) (020f3cc), closes #21734
- nav: insertPages method correctly inserts multiple pages with props (#21725) (eb592b8), closes #21724
- overlays: trap focus inside overlay components except toast (#21716) (fff4aec), closes #21647
- segment-button: allow min-width to be overridden (#21722) (88f1828), closes #21105
- title: allow overriding of large title transform-origin (#21770) (dbe6853), closes #21761
- virtual-scroll: properly calculate top offset when nested (#21581) (d297ecb)
Features
- card: expose global card css variables (#21756) (096eef4), closes #21694
- input: accept datetime-local, month, and week type values (#21758) (fa93dff), closes #21757
- input, textarea: expose native events for ionBlur and ionFocus (#21777) (a625c83), closes #17363
- react: add custom history to IonReactRouter (#21775) (d4a5fbd), closes #20297
- react: add new react router (#21693) (c171ccb)
- router: add navigation hooks (#21709) (77464ef)
- segment-button, toast: expose additional shadow parts (#21532) (a5e4669)
- select: add optional generic typings (#21514) (7c2d0c9)
5.2.3 (2020-07-01)
Bug Fixes
- angular: expose createAnimation in addition to AnimationController (#21616) (a5b3750), closes #21615
- select: change role to listbox (#21609) (8c79e2c)
- slides: enable keyboard integration (#21608) (26674f1), closes #21554
- textarea: add aria-labelledby to native textarea (#21606) (88f23b1), closes #21600
5.2.2 (2020-06-17)
Bug Fixes
- action-sheet, alert: resolve double click issue when running in iOS mode on chrome (#21506) (bcccc21), closes #21503
- angular: fix issue where navAnimation was being incorrectly overridden (#21508) (e968bd0), closes #21495
- input: add aria-label to clear button (#21538) (d8b377f), closes #21537
- ios: respect toolbar opacity when doing nav transition (#21512) (24cfdc3)
- segment: ensure checked classes get set after not having a value (#21547) (17308f2), closes #21546
5.2.1 (2020-06-11)
Bug Fixes
- angular: resolve error when not using ngModel on components (4083e32)
5.2.0 Silicon (2020-06-10)
Bug Fixes
- action-sheet, toast: allow button handler to return
Promise<void>(#21259) (7703da2) - angular: patch FormControl methods to properly sync Ionic form classes (#21429) (e95b481)
- datetime: ensure year-only values are not affected by timezone when parsing (#21309) (3937101)
- header: large title transition now works on older versions of iOS (#21339) (2dac12c)
- img: use setTimeout fallback on older versions of chrome (#21358) (0bf9449)
- ios: add haptic drag gesture for action sheet and alert components (#21060) (33be1f0)
- item: inherit align-items from parent item (#19278) (882f8fe), closes #18703
- item: input-wrapper now inherits overflow (#21282) (29d208d)
- menu-button: screen readers now properly announce menu button (#21324) (eaf4fb6)
- modal: card style modal no longer gets stuck when swiping quickly (#21224) (448dfa0)
- modal: set card-style modal height using the --height css variable (#21453) (a4f0bdb)
- reorder-group: revert item to original position when passing false to complete (#21396) (5f2001c), closes #19128
- router: use correct nav transition when going back (#21301) (c8db0d5)
- scroll-assist: improve scroll detection accuracy (#21416) (137c49d)
- slides: update Swiper dependency to resolve error when doing SSR (#21350) (3290604)
- textarea: native textarea inherits max/min width and height (#21333) (2377480)
Features
- alert: add destructive role to alert buttons (#21269) (e53f024)
- alert: add support for custom input attributes (#21365) (1ed8169)
- all: add all autocomplete values to input and searchbar (#21297) (4fd7c0c)
- all: add optional generic typings for overlay component methods (#21393) (5bf83b8)
- all: add shadow parts to missing components (#21436) (17375d2)
- all: add support for configuring animations on a per-page basis (#21433) (f34d375)
- angular: expose activatedView (#21302) (829a0d9)
- angular: expose getPlatforms and isPlatform (#21308) (4af54a2)
- angular: add strongly typed Ionic lifecycle hooks (#18044) (53fc8e3), closes #18043
- fab-button: add close icon font size css variable (#19628) (df408f9)
- fab-button: add closeIcon property (#19626) (698e526)
- select-option: pass class from the option to the interface for individual styling (#21304) (5285824)
5.1.1 (2020-05-13)
Bug Fixes
- all: improve scroll assist reliability for below the fold inputs (#21206) (7166a29)
- all: overlay components no longer display outline when focused (#21226) (bb62023)
- display: remove 1px gap between mutually exclusive breakpoints (#21276) (703ef5c), closes #20993 #20743
- header: do not error on collapsible header on devices that do not support IntersectionObserve (#21222) (0c13f25)
- input: check for tabindex and pass it properly to native input (#21170) (dd4cb70), closes #17515
- ios: position page transition shadow properly under footer (#21095) (50678c0)
- md: do not hide page when swipe gesture is cancelled (#21247) (f334e83)
- overlays: respect keyboardClose property when opening overlays (#21240) (9d0dcbb)
- picker: haptics now work properly (#21268) (8e11ecc)
- refresher: correctly select shadow root on older browsers (#21237) (f23f1cb)
- refresher: refresher completes even after switching to a new tab (#21236) (1e6f923)
- segment-button: screen readers now announce selected state properly (#21273) (85cc35e)
- toggle: screen readers now announce toggle properly (#21168) (1fbdb22)
5.1.0 Aluminum (2020-04-30)
Bug Fixes
- action-sheet: show correct cancel button background on dark mode (#21084) (e442324), closes #21082
- all: correctly default gestures to use a passive listener (#21038) (dea9248)
- angular: do not navigate to the same tab if already active (#21085) (15203de), closes #21074 #19943
- back-button: announce back button text correctly by screen readers (#21053) (14c226c), closes #21043
- datetime: locale inputs are now reactive (#20826) (a75e8f3), closes #20367
- ios: account for nested tabs with page transition (#20955) (e23dec5), closes #20948
- ios: properly animate content when navigating from a tabbed page (#20918) (8a02b28), closes #20912
- loading: correctly announce spinner by screen readers (#21116) (63d8f62), closes #21107
- md: do not display blank screen when using MD page transition and swipe gesture (#21058) (4973807), closes #21056
- modal: properly inherit border radius for modals on Safari (#20887) (bd64509), closes #20878
- modal: swipeToClose property is now reactive (#21073) (4bd9134), closes #21072
- overlays: focus overlay when presented (#20997) (fc2be8d), closes #19882 #17126
- overlays: prevent accidental clicks when dismissing overlays (#21093) (671802f), closes #21092
- react: IonTabBar properly extends IonicReactProps (#21009) (102a842), closes #21006
- refresher: properly check for Haptics plugin on web (#21156) (c53b136), closes #21148
- refresher: properly calculate content dimensions in native ion-refresher (#21157) (83dcc71)
- router: account for query string when pushing page (#21071) (eab3373)
- searchbar: correctly announce the cancel button text by screen readers (#21049) (15a603b), closes #21013
- select: account for MutationObserver when performing SSR (#21068) (66e8e64), closes #21063
- slides: slides no longer break with Angular Ivy enabled (#20899) (3123a31), closes #20356
- split-pane: properly show border in rtl mode (#20995) (7a21708), closes #20994
- textarea: height is set correctly when using autoGrow in modals (#20971) (32ee040), closes #18993
Features
- all: add ability to continue processing hardware back button events (#20613) (3821c04), closes #17824
- all: add ability to eject from Ionic sanitizer (#20457) (fa9ddc9), closes #18277
- angular: support multi-app for ng-add schematic (#20768) (39e6c8f)
- animation: add option to clean up old animation stylesheets (#20940) (5b98405), closes #20610
- app: add keyboard open and close events (ionKeyboardDidShow and ionKeyboardDidHide) (#18478) (ae5f1dd)
- back-button: add backButtonDefaultHref property to Ionic Config (#20491) (1b11ff7), closes #19305
- checkbox: add parts support for container, mark (#20950) (d4b9151)
- content: add parts support for background, scroll (#20929) (578ab93)
- datetime: add parts support for placeholder, text (#20930) (76ca475)
- gesture: add option to run inside NgZone for Angular apps (#20685) (429edb0), closes #20529
- gesture: add support for blurring active inputs on gesture start (#20638) (32ecdd6), closes #20588
- img: add parts support for image (#20943) (63c75ed)
- input: add support for enterkeyhint (#21035) (3efaf43), closes #21034
- item: add parts support for detail-icon (#20979) (6414496)
- menu: add parts support for backdrop, container (#20978) (50bc212)
- radio: add parts support for container, mark (#20952) (228ca2b)
- range: add parts support for bar, bar-active, knob, pin, tick, tick-active (#20961) (619f67a)
- react: expose selectTab method and activeTab, closes #19935 (#21171) (43f9d24)
- reorder: add parts support for icon (#20960) (ba20209)
- searchbar: add border-radius css variable (#20662) (acaa1d9), closes #17426 #18247
- searchbar: add support for enterkeyhint (#21036) (e90683a), closes #21034
- select: add parts support for placeholder, icon, text (#21108) (30a1c89)
- slides: update to swiper 5 (#20917) (4e28445), closes #20033
- textarea: add support for inputmode and enterkeyhint (#21106) (1622d9b)
- toast: add white-space variable for toast message (#20729) (e5e02d4), closes #20727
- toggle: add parts support for handle, track (#20962) (d2b772f)
- toggle: improve customization with css vars and auto-adjust handle width and height (#21050) (04ace4c), closes #19868 #20474
Performance Improvements
5.0.7 (2020-03-26)
Bug Fixes
5.0.6 (2020-03-25)
Bug Fixes
- all only warn invalid mode if used on an ionic component (#20828) (6ed1c51), closes #20055
- all properly scroll to input with scroll assist (#20742) (e24060e), closes #19589
- angular: export Animation and Gesture related types (#20766) (2ece194)
- angular: respect animation property for ion-router-outlet (#20767) (f2dbe1f), closes #20764
- content: apply --offset-top and --offset-bottom values correctly (#20790) (2707289), closes #20735
- content: set overscroll-behavior based on the scroll direction (#20011) (a3fc77b), closes #20010
- item-divider: update design to match native iOS (#20854) (d91e22d)
- item-sliding: account for swipe to go back gesture when opening item-options (#20777) (f23ac44), closes #20773
- list: show bottom border on last item in a list followed by a list (#20798) (7bc5191)
- modal: backdrop and box shadows no longer stack when opening multiple modals (#20801) (253cd96), closes #20800
- modal: backdrop is no longer tappable on card-style modal on smaller screens (#20802) (12932dd), closes #20783
- modal: properly apply border radius on card-style modal (#20852) (dff3816), closes #20851
- modal: properly remove safe area padding on card-modal (#20853) (71f1182), closes #20799
- modal: respect card-style modal spec for iPadOS (#20750) (75bae40), closes #20700
- react: expose correct type for CreateAnimation (#20775) (0897c3f), closes #20771
- refresher: properly dismiss refresher when completed synchronously (#20815) (b1a87c8), closes #20803
- segment: automatically expand width for scrollable segment buttons (#20763) (cdfd50b), closes #20566
- segment: scrollable segments only show scrollbar if they overflow (#20760) (ab146c9), closes #20758
- slides: check that mutation observer is defined for ssr (#20791) (2d5d251)
- textarea: properly adjust auto-grow textarea in scrolled content (#19776) (8bd5bac), closes #19193
- title: improve reliability of large title ios nav transition (#20861) (3bd6b5d)
- title: large title now inherits global color styling during nav transition (#20862) (321140f)
5.0.5 (2020-03-11)
Bug Fixes
- button: allow overflow to be overridden by the CSS variable (#20738) (7ecde36), closes #20726
- datetime: account for max property when hour, minute, or second is set to 0 (#20665) (2177461), closes #20652
- header: collapsable header should default to using content background (#20736) (f6c3ba7), closes #20691
- header: resolve undefined error on collapsible header when navigating quickly (#20728) (87a2721), closes #20725
- ios: large title animation now works properly in a modal (#20703) (ec4878a), closes #20696
- item: apply proper margin left for slotted icon in RTL (#20684) (d53595e), closes #20653
- label: text overflow for slotted headings (#20690) (4d34ce6), closes #17087
- modal: leave animation transitions modal completely out of viewport on ipad (#20702) (22d5256), closes #20697
- angular exclude components from ssr (#20674) (f64b142)
- modal: swipeable modal now works in firefox (#20714) (7d260b9), closes #20706
- overlays: prevent accidental dismiss of overlays when tapping screen twice (#20683) (b6c2a77), closes #20608
- segment: allow routerLink to work on segment buttons (#20682) (314dbb1), closes #20678
- segment: iOS mode segment now works on older Android devices (#20673) (44993b7), closes #20648
5.0.4 (2020-02-27)
Bug Fixes
- animation: reset all temporary flags when interrupting an animation (#20627) (0e0e401), closes #20602
- buttons: use proper button colors based on CSS variables when inside of a toolbar (#20633) (c1d7bf2)
5.0.3 (2020-02-26)
Bug Fixes
5.0.2 (2020-02-26)
Bug Fixes
- ios: large title transition works properly in tabbed applications (#20555) (7187541), closes #20482
- menu: hardware back button now dismisses side menu if open in Cordova/Capacitor app (#20558) (6b2a929), closes #20559
- modal: allow swipe to close animation to be overridden (#20585) (8d3ce8d), closes #20577
- modal: card style modal now adds appropriate contrast (#20604) (b5310ef)
- modal: allow swipeable modal background to be overridden (#20584) (ad6fac8), closes #20572
- modal: swipeable modal styles only apply to ios (#20571) (3a2d828), closes #20569
- refresher: ensure that translate is cleaned up to avoid stacking context (#20621) (e3e5c69), closes #17949
- segment: segment functions properly on older versions of Android (#20554) (0224bed), closes #20466
- select: properly align text, add icon-inner and placeholder part (#20605) (926ac3f)
- slides: set height to 100% for vertical slides (#20603) (20af652), closes #17341
5.0.1 (2020-02-19)
Bug Fixes
- button: reduce font size of icon only button in toolbar on iOS (#20547) (59fa340)
- card: inherit background in inner button (#20461) (c16de96), closes #20458
- fab: add close icon to internal icons for react (#20490) (c4fb314), closes #20489
- fab: show close icon on hover, focused, activated (#20497) (e42c85d)
- input: do not clear input if "Enter" key pressed (#20462) (89bf08b), closes #20442
- ios: clamp out of bounds values for swipe to go back (#20540) (dd32a5e), closes #20505
- menu: swipe gesture should not open menu when a modal is displayed (#20546) (3252c2f), closes #20467
- modal: presenting multiple card-style modals now adds border radius properly (#20476) (abf594a), closes #20475
- modal: prevent card style modal styles from being overridden (#20470) (86ab77a), closes #20469
- react: do a better job matching up route to sync (#20446) (c0aadd6), closes #20363
- react: do not remove pages when navigating between tabs (#20431) (b6fbe98), closes #20398
- react: icons with MD set should work in browser (#20463) (82670fe)
- react: update paths of tab buttons when href changes in ion buttons (#20480) (45d03ba), closes #20321
- searchbar: properly align placeholder (#20460) (4d6e15a), closes #20456
- segment: border radius applies to indicator on ios (#20541) (9b5854d), closes #20539
- segment: do not show ripple effect if disabled via config (#20542) (7a461c5), closes #20533
- segment: inner div no longer interferes with click events (#20522) (06b828b), closes #20381
- segment: only emit ionChange when user releases pointer from screen (#20495) (4d50064), closes #20500 #20257
- tab-bar: update ios icon and label design to match native (#20548) (34f8576)
5.0.0 Magnesium (2020-02-11)
Enjoy! 🔥
We recommend updating to version
4.11.10before updating to this version in order to see deprecation warnings related to your app in the developer console.
Run the following commands based on your project type:
# for an angular app
npm i @ionic/angular@latest --save
# for a react app
npm i @ionic/react@latest --save
npm i @ionic/react-router@latest --save
npm i ionicons@latest --save
# for a stencil / vanilla JS app
npm i @ionic/core@latest --save
Then take a look at the Breaking Changes file for API changes.
5.0.0-rc.5 (2020-02-11)
Bug Fixes
5.0.0-rc.4 (2020-02-10)
Bug Fixes
- content: only emit scroll events if enabled (#20401) (fd1b44a)
- header: backdrop filter no longer distorts content with collapsible header (#20388) (11d3945), closes #20385
- item: remove unneeded box-shadow CSS variable (#20412) (a6764c4), closes #20392
- label: remove subpixel font-size to prevent visual glitches (#20415) (3d6f287), closes #20407
- segment: add activated class directly to segment button (#20400) (e8886e9)
5.0.0-rc.3 (2020-02-05)
Bug Fixes
- refresher: ensure gesture does not interfere with item-sliding (#20380) (8983c70), closes #20379
- refresher: translate background content when refreshing (#20378) (cf70916), closes #20377
- segment: allow background to be set on iOS segment in a toolbar (#20350) (0f31624)
- toolbar: properly apply safe area and border (#20375) (4971499), closes #20354
5.0.0-rc.2 (2020-01-30)
Bug Fixes
- header: fix race condition in collapsible header (#20334) (215d55f)
- ios: translucent toolbar blur no longer obscures entering page toolbar content (#20314) (e580b88), closes #19158
- radio: do not clear radio group value from radio (#20343) (ff78e6e), closes #20323
- radio: set default radio value if undefined (#20329) (eb57723)
- refresher: add correct fallbacks for native refreshers (#20333) (fd55427)
- refresher: resolve undefined issues when updating component (#20322) (59d8687), closes #20320
5.0.0-rc.1 (2020-01-27)
Bug Fixes
- components: use proper colors for button states and add back input highlight (#20278) (628db18), closes #20276
- components: inherit text indent in all components with text inherit (#20300) (767b005), closes #17786
- content: resolve height inheritance issues (#20309) (09bef71), closes #20305
- picker: include showBackdrop in interface (#20301) (33186ba), closes #18893
- react: export proper types of animations and gestures (#20311) (0034088)
- refresher: update animation for dashed property values (#20310) (44211c1)
- toast: inherit color in cancel button for a toast with color (#20299) (7b44ae2), closes #20139
5.0.0-rc.0 (2020-01-23)
Release Candidate is here! 🎉
5.0.0-beta.6 (2020-01-23)
Bug Fixes
- animation: add property conversions for CSS Animations (#20252), fixes #20251 (32a7401)
- content: set min-height to allow for sticky headers (#20265), fixes #20258 (e613f63)
- modal: card-style modal now opens at full width on larger devices (#20256), fixes #20255 (443cbd9)
- segment: clicking disabled button no longer adds ripple to active button (#20254), fixes #20253 (f896821)
Features
- components: improve button states and add new css properties (#19440) (9415929), closes #20213 #19965
- react: add Ionic Animations wrapper (experimental) (#20273) (b59d764)
- segment-button: add --indicator-height property to segment button (#19653) (d76a503)
BREAKING CHANGES
We recommend updating to the latest version of 4.x before trying out version 5 in order to see deprecation warnings related to your app in the developer console.
Activated Class
The activated class that is automatically added to buttons on press has been renamed to ion-activated. This will be more consistent with our ion-focused class we add and also will reduce conflicts with users' CSS.
CSS Variables
The --background-hover, --background-focused and --background-activated CSS variables on components that render native buttons will now have an opacity automatically set. If you are setting any of these like the following:
--background-hover: rgba(44, 44, 44, 0.08);
You will likely not see a hover state anymore. It should be updated to only set the desired color:
--background-hover: rgba(44, 44, 44);
If the opacity desired is something other than what the spec asks for, use:
--background-hover: rgba(44, 44, 44);
--background-hover-opacity: 1;
5.0.0-beta.5 (2020-01-17)
Bug Fixes
- action-sheet: allow scrollable action sheet with many options (#20145) (53fad97), closes #17311
- card: remove top padding of content in iOS if under header (#20223) (9232f16)
- content: scroll-content div now takes up full height of container (#20194) (9d63b41), closes #20185
- header: header opacity properly resets on collapsible titles (#20202) (8e11f79)
- modal: prevent double dismiss via gesture and backdrop tap on card-style modal (#20203) (5b0400d)
- picker: pick correct option at low velocities (#19660) (39d1262), closes #19659
- react: updating icon type and add caret to internal icons (#20216) (dc78f98)
- ssr: add reflect content-id attribute to applicable properties (#20169) (3aa47e6)
Code Refactoring
Features
- datetime: add custom timezone display property (#19519) (7b032c5), closes #19401
- segment: update design for iOS and MD spec (#19036) (dc66ce4), closes #18663
- toast: expose shadow parts (#20146) (3b4988a)
BREAKING CHANGES
We recommend updating to the latest version of 4.x before trying out version 5 in order to see deprecation warnings related to your app in the developer console.
- The following components have been updated to remove the checked or selected properties:
- Radio
- Segment Button
- Select
Developers should set the value property on the respective parent components in order to managed checked/selected status. See the Breaking Changes document for updated usage examples.
- Controller components have been removed. Developers should user their respective imports instead. This only affects vanilla JS applications.
Before:
<ion-modal-controller></ion-modal-controller>
After:
import { modalController } from '@ionic/core';
5.0.0-beta.4 (2020-01-06)
Features
5.0.0-beta.3 (2020-01-03)
Bug Fixes
- animation: support css animation on older devices (#20020) (49c394c), closes #20017
- icons: fix the ellipsis fill in ionicons (#20137) (9318d24)
- modal: account for safe area on devices with a notch (#20072) (1cabb53)
- react: fire lifecycle events on initial render, fixes #20071 (2dcf3ee)
Code Refactoring
Features
- angular: angular 9 support (#19515) (2344d0b)
- checkbox: add --checkmark-width variable (#19933) (c32a7bc), closes #16803
- radio: add --border-radius and --inner-border-radius variables (#20140) (a01c102)
- refresher: add iOS native refresher (#20037) (04e7c03), closes #18664
- toggle: add --border-radius and --handle-border-radius variables (#20141) (02a46a1)
BREAKING CHANGES
We recommend updating to the latest version of 4.x before trying out version 5 in order to see deprecation warnings related to your app in the developer console.
- searchbar: The
inputmodeproperty forion-searchbarnow defaults toundefined. To get the old behavior, set theinputmodeproperty to"search".
5.0.0-beta.2 (2019-12-11)
Bug Fixes
- animation: convert hyphenated properties to camel case when using Web Animations (#20059) (56f67bd), closes #20058
- animation: properly update Web Animation object (#19964) (e766194)
- picker: pass selected value to handler on dismiss (#20042) (6e0b9c4), closes #20036
- tabs: preserve route navigation extras when changing tabs (#18493) (4c8f32f), closes #18717
- title: add correct safe area to large title nav transition (#20029) (300d543), closes #20028
Features
5.0.0-beta.1 (2019-11-20)
Bug Fixes
- animation: track correctly when updating CSS Animation (#19813) (7bd4412)
- card: update background to use the same as item (#19602) (1a8b7a4)
- content: set fixed content to position absolute (#19867) (fce3e24), closes #17754
- gesture: release gesture when disabling (#19855) (21484f1), closes #19848
- header: avoid flicker on collapsible header load (#19682) (0a7aae2)
- header: avoid flicker when collapsing (#19850) (a3666dd), closes #19839
- header: support collapsible header with multiple toolbars (#19909) (fc4bb2d)
- header: translucent toolbars now work with collapsible header (#19774) (b642b53), closes #19773
- title: only animate large title if back button is in start slot (#19846) (cace1b3), closes #19840
- nav-params: set generic type on navigation parameters get() (#19195) (504051d)
- picker: pass data and role to dismiss (#19787) (7988720), closes #18454
- searchbar: use back button config value for cancel icon (#19353) (3d6f3b9)
- textarea: remove padding from textarea placeholder (#19694) (f63d37a), closes #19616
- toast: call button handler on cancel (#19793) (420aa66), closes #19791
Features
- animation: animation identifiers (#19771) (7d41715), closes #19550
- animation: cubic-bezier easing conversion utility (experimental) (#19788) (96a5e60), closes #19789
- alert: add support for textarea inputs (#16851) (b28cf02), closes #14153
- angular: expose Ionic Animations via AnimationController (#19745) (67a7e23)
- angular: expose Ionic Gestures via GestureController (#19864) (48a7662)
- searchbar: add --box-shadow variable to style searchbar input (#19838) (1ab7066)
- select: add --placeholder-opacity and --placeholder-color, expose shadow parts (#19893) (bef0f53), closes #17446
- split-pane: convert to shadow component, add width, max-width, and min-width vars (#19754) (d80f455), closes #17088
Breaking Changes
We recommend updating to the latest version of 4.x before trying out version 5 in order to see deprecation warnings related to your app in the developer console.
- back-button: convert back button to shadow (#19411) (0d40d3f)
- ionicons: update to Ionicons v5. See https://ionicons.com for more information. (#19670) (69e10de)
- list-header: redesign list header to match latest iOS spec (#19915) (5bbb95f)
- split-pane: convert split-pane to shadow (#19754) (d80f455)
5.0.0-beta.0 (2019-10-15)
Bug Fixes
- animations: ensure all elements are cleaned up when calling .destroy() (#19654) (2f88237)
- content: set overscroll only on iOS (#19470) (63c2008), closes #19465
- css: update responsive display media queries (#18601) (5d6e077), closes #18600
- grid: remove padding on children columns when grid has ion-no-padding (#19592) (17119f5), closes #17459
- searchbar: update alignment of chips and other elements in toolbar (#19596) (637f26b), closes #19495 #19502
- toast: inherit height in container to center align content (#19409) (250718a)
Features
- components: cascade mode from parent to child components (#19369) (3dd5f05), closes #18285
- menu: default to overlay for ios menu (#19063) (dbf6a44), closes #18662
- overlays: add global backdrop opacity variable for animations (#19533) (bd22926), closes #16446
Performance Improvements
- animations: do not create setTimeout if infinite iterations (#19632) (0d699fb), closes #19627
- animations: wrap loops in requestAnimationFrame call (#19630) (589e67e), closes #19629
Breaking Changes
We recommend updating to the latest version of 4.x before trying out version 5 in order to see deprecation warnings related to your app in the developer console.
-
all: mode is now cascaded from parent to child component. If this is not desired set a different mode on the child component. (#19369) (55462d7)
-
anchor: remove
ion-anchor, useion-router-linkinstead. (#18935) (e7cd197) -
css: responsive display media queries in the display CSS file have been updated. Instead of using the maximum value of that breakpoint (for
.ion-hide-{breakpoint}-downclasses) the maximum of the media query will be the minimum of that breakpoint. (#18601) (40a8bff) -
css: remove all CSS utility attributes. Use CSS classes instead. See the documentation for the correct class names: https://ionicframework.com/docs/layout/css-utilities (#18956) (04862df)
BEFORE:
<ion-header text-center></ion-header> <ion-content padding></ion-content> <ion-label text-wrap></ion-label> <ion-item wrap></ion-item>AFTER:
<ion-header class="ion-text-center"></ion-header> <ion-content class="ion-padding"></ion-content> <ion-label class="ion-text-wrap"></ion-label> <ion-item class="ion-wrap"></ion-item> -
events: remove the Events service. (#19600) (8d4a721)
- Use "Observables" for a similar pub/sub architecture: https://angular.io/guide/observables
- Use "Redux" for advanced state management: https://ngrx.io
-
header/footer: remove
no-borderattribute from header/footer, useion-no-borderclass instead. (#18954) (d9f6119) -
menu: iOS menu now defaults to overlay, set
typeto"reveal"to get the old behavior. (#19063) (ccb54a1) -
menu-controller: remove
swipeEnable(), useswipeGesture()instead. (#19526) (30bd8fd) -
nav: remove
ion-nav-pop,ion-nav-pushandion-nav-set-root. Useion-nav-linkwithrouterDirectioninstead. (#19240) (e334d73) -
searchbar: remove boolean values from
showCancelButton, use string values:"always","focus","never". (#18953) (508e186)BEFORE:
<ion-searchbar show-cancel-button> <ion-searchbar show-cancel-button="true"> <ion-searchbar show-cancel-button="false">AFTER:
<ion-searchbar show-cancel-button="focus"> <ion-searchbar show-cancel-button="focus"> <ion-searchbar show-cancel-button="never"> -
scss: remove
scssfiles fromdist/, use CSS variables to theme instead. (#19292) (6450aff) -
skeleton-text: remove
widthproperty. Use CSS instead. (#18936) (7c3db79) -
split-pane: remove
mainattribute. UsecontentIdinstead. (#19511) (02d7841)BEFORE:
<ion-split-pane> ... <div main>...</div> </ion-split-pane>AFTER:
<ion-split-pane content-id="main-content"> ... <div id="main-content">...</div> </ion-split-pane> -
theming: ionic default colors have been updated. (#19279) (7f4cf08)
-
toast: remove
showCloseButtonandcloseButtonText, add a button using thebuttonsproperty withrole: 'cancel'instead. (#18957) (ad7f112)