Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

1.2.0-rc.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@Splaktar Splaktar released this 31 Jul 20:40
· 94 commits to master since this release

Bug Fixes

  • checkbox, date-picker, input, radio-button, select, switch: md-inline-form support (b3e9ffe)
  • select: support for md-inline-form, more configurable SCSS (0d4d37f), closes #8712 #8716

Code Refactoring

  • autofocus: remove deprecated md-auto-focus attribute (bf0ec8c)
  • card: remove styles for md-actions class (75aa734)
  • chips: remove deprecated md-on-append attribute (1a2e3d0)
  • dialog: remove deprecated content options and methods (e3b52a0)
  • dialog: remove styles for deprecated md-actions class (93e2081)
  • layout: remove deprecated -lt- ("less than") attributes (e8e785e)
  • menu: removed deprecated $mdOpenMenu API (f023ce7)
  • panel: remove deprecated MdPanelRef.addClass/removeClass/toggleClass (bafbd96), closes #9310
  • sidenav: remove deprecated access to $media in md-is-locked-open (baa7563)
  • sidenav: remove md-sidenav-focus directive (8fc36d4)
  • theming: remove support for deprecated $mdThemingProviderTheme.primaryColor() and related APIs (00a50de)
  • tabs: remove deprecated md-no-disconnect (05bee8f)

Features

BREAKING CHANGES

  • layouts: The way that margins are applied to md-checkbox, md-input-container, md-radio-group, and md-select has been changed. You can now use the $default-horizontal-margin Sass variable to override the default 16px horizontal margin size. As part of this, md-radio-buttons inside of layout="row" containers are now aligned vertically with other content as they no longer have a 16px margin-bottom. If you have previously added custom styles, to your components inside of a row layout, in order to give them extra margin-right in LTR or margin-left in RTL, you will need to re-evaluate those styles. In most cases, they can now be removed.
  • sidenav: Removed access for the deprecated $media service in md-is-locked-open. This was deprecated in favor of the $mdMedia service. The functionality is the same and only a rename to the current name of the service is required.
  • dialog: Removed support for the deprecated .content('string') methods and options. These were deprecated in favor of .textContent('string') and .htmlContent('sanitized-string')' methods and their associated options. Please note that use of .htmlContent requires that the ngSanitize module be loaded.

If you have

  alert = $mdDialog.alert()
    .content('This is an example.');

It needs to be changed to

  alert = $mdDialog.alert()
    .textContent('This is an example.');

If you have

  alert = $mdDialog.alert({
    content: 'This is an example.'
  });

It needs to be changed to

  alert = $mdDialog.alert({
    textContent: 'This is an example.'
  });
  • theming: Removed support for the deprecated $mdThemingProviderTheme.primaryColor() and the related accent/warn/background APIs. These were deprecated in favor of $mdThemingProviderTheme.primaryPalette() (and accent/warn/background) in 2015 and they have been logging warnings when used since then.
  • layout: Removed the deprecated, undocumented *-lt-* layout attributes and classes. This includes the following attributes and their matching classes, which have been giving deprecation warnings since 2015:
  • layout-lt-md
  • layout-lt-lg
  • flex-lt-md
  • flex-lt-lg
  • layout-align-lt-md
  • layout-align-lt-lg
  • flex-order-lt-md
  • flex-order-lt-lg
  • flex-offset-lt-md
  • flex-offset-lt-lg
  • hide-lt-md
  • hide-lt-lg
  • show-lt-md
  • show-lt-lg
  • autofocus: Removed the deprecated md-auto-focus directive. It was deprecated in favor of md-autofocus. Please see the md-autofocus Docs for examples.
  • sidenav: Removed the md-sidenav-focus directive. It was deprecated in favor of md-autofocus. Please see the md-autofocus Docs and md-sidenav Basic Usage Demo for examples.
  • menu: Removed the deprecated $mdOpenMenu API. It was deprecated in favor of $mdMenu.open.
  • chips: Removed the deprecated, since 2015, md-on-append attribute. It was deprecated in favor of md-transform-chip or the simple notifier md-on-add. Please see the md-chips Demos for examples of using md-transform-chip.
  • card: Removed support for the class="md-actions" inside of an md-card template. This is deprecated in favor of using the <md-card-actions> element.
  • dialog: Removed support for the deprecated class="md-actions" inside of an md-dialog template. This was deprecated in favor of using the <md-dialog-actions> element.
  • panel: The deprecated MdPanelRef.addClass(), MdPanelRef.removeClass(), and MdPanelRef.toggleClass() functions have been removed. These were deprecated in 2016 in favor of using the panelContainer or panelEl JQLite elements that are referenced in the MdPanelRef object.

Contributors

Thank you to the contributors who helped with the v1.2.0-rc.2 release:

Splaktar clshortfuse wagnermaciel
Splaktar clshortfuse wagnermaciel