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
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
, andmd-select
has been changed. You can now use the$default-horizontal-margin
Sass variable to override the default16px
horizontal margin size. As part of this,md-radio-button
s inside oflayout="row"
containers are now aligned vertically with other content as they no longer have a16px
margin-bottom
. If you have previously added custom styles, to your components inside of a row layout, in order to give them extramargin-right
in LTR ormargin-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 inmd-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 thengSanitize
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 ofmd-autofocus
. Please see the md-autofocus Docs for examples. - sidenav: Removed the
md-sidenav-focus
directive. It was deprecated in favor ofmd-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 ofmd-transform-chip
or the simple notifiermd-on-add
. Please see the md-chips Demos for examples of usingmd-transform-chip
. - card: Removed support for the
class="md-actions"
inside of anmd-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 anmd-dialog
template. This was deprecated in favor of using the<md-dialog-actions>
element. - panel: The deprecated
MdPanelRef.addClass()
,MdPanelRef.removeClass()
, andMdPanelRef.toggleClass()
functions have been removed. These were deprecated in 2016 in favor of using thepanelContainer
orpanelEl
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 |