github ionic-team/ionic-framework v7.0.0-beta.0

latest releases: v8.4.0, v8.3.4, v8.3.3...
pre-release21 months ago

7.0.0-beta.0 (2023-01-25)

Bug Fixes

  • accordion-group: do not adjust incorrect values (#26086) (e2cbeeb)
  • action-sheet: container animates in correctly (#26347) (1e855e7), closes #25368
  • angular: null values are not converted to falsy value (#26341) (ce2e37b)
  • back-button: update style for ios spec (#26395) (1a840c4), closes #26393
  • breadcrumb: add aria-label to collapsed indicator (#26615) (f8a2c79)
  • card-header: reverse order of title and subtitle on ios (#26084) (2080890)
  • datetime: do not report timezone in ionChange (#26183) (3fb4caf), closes #25577
  • datetime: haptics are enabled only on ios (#26370) (8eec197), closes #25508
  • input, searchbar, select, textarea: placeholder has improved contrast (#26486) (6c82435)
  • input, textarea: inputs now scroll into view when tapping labels (#25848) (cb265d6)
  • input, textarea: padding is now added to content so inputs scroll above keyboard (#25849) (ba6b539), closes #18532
  • input: clearOnEdit clears input when user initially types (#26005) (bf5e118)
  • item: align iOS font size to spec (#26445) (eea91bb)
  • item: ios mode has correct padding (#26511) (96147ec)
  • overlays: dismiss on keydown to avoid chrome for windows and firefox bug (#25811) (a1ec9aa), closes #25802
  • overlays: triggerController warns about missing triggers (#26651) (a7c2c55)
  • range: range matches iOS design specification (#25873) (da05ffe), closes #25872
  • segment: click event triggers ionChange (#26162) (70781e4)
  • select: chevron icon is now an ionicon (#26484) (0823c09)
  • select: modern component takes up full line (#26670) (4d24b32)
  • textarea: clearOnEdit clears textarea when user initially types (#26006) (f7176bb)
  • textarea: render icon for clearing input (3271ecf)

Code Refactoring

Features

Performance Improvements

BREAKING CHANGES

  • config: The supported version of Firefox for Ionic v7 has changed to Firefox v70+
  • input, searchbar, select, textarea: The default value for the --placeholder-opacity CSS Variable on ion-input, ion-searchbar, ion-select, and ion-textarea has been updated to 0.6.
  • select: The icon CSS Shadow Part for ion-select now targets an ion-icon component.
  • datetime: The haptics when swiping the wheel picker are now enabled only on iOS.
  • toggle: The --background and --background-checked variables have been renamed to --track-background and --track-background-checked, respectively.
  • angular: Datetime:

Passing the empty string to the value property will now error as it is not a valid ISO-8601 value.

Angular:

null values on form components will no longer be converted to the empty string ('') or false. This impacts ion-checkbox, ion-datetime, ion-input, ion-radio, ion-radio-group, ion-range, ion-searchbar, ion-segment, ion-select, ion-textarea, and ion-toggle`.

  • picker: The refresh key has been removed from the PickerColumn interface. Developers should use the columns property to refresh the ion-picker view.
  • input, textarea: The detail payload for the ionInput event on ion-input and ion-textarea now contains an object with the current value as well as the native event that triggered ionInput.
  • datetime: Datetime no longer incorrectly reports the time zone when value is updated. Datetime does not manage time zones, so any time zone information provided is ignored.
  • types: ActionSheetAttributes, AlertAttributes, AlertTextareaAttributes, AlertInputAttributes, LoadingAttributes, ModalAttributes, PickerAttributes, PopoverAttributes, and ToastAttributes have been removed. Developers should use { [key: string]: any } instead.
  • card-header: - The card header has ben changed to a flex container with direction set to column (top to bottom). In ios mode the direction is set to column-reverse which results in the subtitle displaying on top of the title.
  • accordion-group: Accordion Group no longer automatically adjusts the value property when passed an array and multiple="false". Developers should update their apps to ensure they are using the API correctly.
  • select: ionChange is no longer emitted when the value of ion-select is modified externally. ionChange is only emitted from user committed changes, such as confirming a selected option in the select's overlay.
  • react: @ionic/react and @ionic/react-router no longer ship a CommonJS entry point. Instead, only an ES Module entry point is provided for improved compatibility with Vite.
  • vue: @ionic/vue and @ionic/vue-router no longer ship a CommonJS entry point. Instead, only an ES Module entry point is provided for improved compatibility with Vite.
  • modal: - The swipeToClose property has been removed in favor of canDismiss.
  • The canDismiss property now defaults to true and can no longer be set to undefined.
  • checkbox: ionChange is no longer emitted when the checked property of ion-checkbox is modified externally. ionChange is only emitted from user committed changes, such as clicking or tapping the checkbox.
  • accordion: ionChange is no longer emitted when the value of ion-accordion-group is modified externally. ionChange is only emitted from user committed changes, such as clicking or tapping the accordion header.
  • core: The [hidden] attribute has been removed from Ionic's global stylesheet. The [hidden] attribute can continue to be used, but developers will get the native hidden implementation instead. The main difference is that the native implementation is easier to override using display than Ionic's implementation.

Developers can add the following CSS to their global stylesheet if they need the old behavior:

[hidden] {
  display: none !important;
}
  • overlays: 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.

Don't miss a new ionic-framework release

NewReleases is sending notifications on new releases.