unobtainium-sunglasses
Pre-release
Pre-release
Breaking Changes
MdIconModule
no longer importsHttpModule
. If your application depended onHttp
being provided throughMdIconModule
, you should now directly importHttpModule
into your application.- The
forRoot
method on all Angular Material modules has been removed. It was previously deprecated and a no-op. Importing the modules directly will have the same effect. - Angular Material now requires TypeScript 2.2, which adds support for mixins.
Highlights
- New datepicker component! This is still very new, so please try it out and file any issues you encounter on Github.
- You can now disable Material's global sanity checks (at your own risk). These checks include whether your theme file is included, that you have a doctype, and more. See the PR here.
- Our support for Angular Universal should be much improved! Expect further improvements in subsequent releases.
Bug Fixes
- autocomplete: not scrolling to active option when pressing home/end (#3709) (8d0cd04)
- autocomplete: not updating the size while the panel is open (#4346) (bfeb515)
- autocomplete: panel not being shown with delay and OnPush change detection (#3977) (efd3485), closes #3955
- autocomplete: reposition panel on scroll (#3745) (81a6f8d)
- autocomplete: unable to click to select items in IE (#3188) (78985b7), closes #3351
- button: ripple color for raised buttons (#3829) (7f65f31), closes #2901
- card: update color property to use theme's text color. (#3952) (5e7af26)
- cdk: add camelCase selectors for cdk directives (#4054) (cb98270)
- checkbox: do not set
indeterminate
when setchecked
programmatically (#4024) (de8b97f) - checkbox: no side margin if label has no content (#2121) (4e8d806), closes #2011
- checkbox: set pointer cursor for checkbox (#4473) (b2f93b5), closes #4185
- checkbox: support OnPush for disabled with forms module (#4087) (efb39da)
- checkbox, radio: ripple error on focus event (#3869) (e22b55e), closes #3856
- chips: wrong margin on single chip (#4366) (5d03c1a), closes #4359
- compatibility: error in theme check with angular universal (#3872) (a65d2f4), closes #3870
- compatibility: throw better error when wrong prefix is used (#3871) (2d50044)
- connected-overlay: better handling of dynamic content (#4250) (525ce1e), closes #4155
- core: remove deprecated forRoot functions (#3539) (c94f471)
- core: export MdOptionSelectionChange (#4285) (af978cd)
- dialog: capture previously focused element immediately (#3875) (29968b8)
- dialog: close all dialogs on popstate/hashchange (#2742) (85bc3a6), closes #2601
- dialog: fire afterClosed callback after all dialog actions are done (#3892) (ee1a5a7)
- dialog: provide default value for MD_DIALOG_DATA token (#4120) (d1128fe), closes #4086
- dialog: restoring focus too early (#4329) (afaa2dc), closes #4287
- dialog: unable to press escape to close in lazy-loaded module (#3788) (3796f69), closes #3737
- focus-trap: import rxjs first operator (#4400) (2c8faf6)
- grid-list: export MdGridTile. Fixes #2408 (#4000) (9d719c5)
- input: add back pointer-events none removed in #3878 (#4206) (fb1fabc)
- input: allow pointer events on placeholder (#3878) (32b7426)
- input: incorrect height with autosize (#4084) (21f8899), closes #4070
- input: input placeholder not being hidden in IE under certain conditions (#4478) (fc73a4b), closes #4464
- input: make start and end hints interact well when their text needs to wrap (#3979) (21cbf34)
- input: placeholder not rendering in Chrome under certain conditions (#4405) (5e349d9)
- input: single-line hints overflowing the parent (#4107) (0b9b582), closes #4051
- input-container: new attribute hideRequiredMarker (#4237) (6c31adb), closes #3681
- list: fix padding for list items (#4486) (d1d2e18)
- list: icon size in dense mode (#3913) (f412499), closes #3886
- list: remove overflow hidden from content (#4426) (078aa19)
- list: set explicit box-sizing on icon (#3876) (e263fb7), closes #3863
- menu: incorrect panel max height (#4214) (d3210e7)
- menu: unable to bind to xPosition and yPosition (#4213) (1fd50aa), closes #4169
- menu: wrong icon margin in rtl (#4225) (ba6b9bb)
- overlay: no longer export internal type (#4390) (136f7ff)
- overlay: render the templates before placing them in the overlay. (#2989) (da33c03)
- progress-spinner: not working with server-side rendering (#4020) (aebbd8a), closes #3988
- ripple: explicit type for global ripple options (#4240) (115e901)
- ripple: global ripple configuration on init (#4238) (9a2c4d6), closes #4235
- select: missing rxjs filter import (#4407) (1ec88e0)
- select: prevent the panel from going outside the viewport horizontally (#3864) (e10bb18), closes #3504 #3831
- select: reposition panel on scroll (#3808) (5983a2b)
- select: tab opening multiple select and space scrolling page (#4210) (24a762f)
- select: unable to hide via visibility (#4264) (f16affc), closes #4247
- select: wrong panel width if element is hidden initially (#3647) (eaf16c8), closes #3639 #3244
- slide-toggle: invalid model change event (#4140) (317952a), closes #4124
- slide-toggle: remove unused mousedown listener (#4184) (e82d0f1)
- slider: correct typo in MdSliderChange description (#4216) (#4217) (4bdceed)
- slider,slide-toggle: use the grab cursor (#3821) (cc8f871), closes #3778
- snack-bar: allow multi-line text (#3626) (eef57f6), closes #1951
- snack-bar: leaking object references (#4403) (4ca16d7), closes #2942
- tabs: animation error with nested tab groups (#4315) (1766649), closes #4277
- tabs: apply dark theme to header font (#4326) (c37a2de), closes #4320
- tabs: re-align the ink bar when the viewport size changes (#3877) (7942948), closes #3845 #3044 #2518 #1231
- tabs: remove forRoot that was missed (#4328) (b4e8c7d)
- tabs: unnecessary scrollbar if content has a margin (#4062) (7336bdc), closes #3162 #4035
- textarea: fix change detection error on autosize (#4180) (bccf8d2)
- theming: fix broken sass expressions nested in theme classes (#4145) (355f8b7), closes #4077
- tooltip: wrong position when using OnPush change detection (#3671) (edf01c0), closes #3497
- universal: gate several browser-specific bits on being on the browser (#4251) (f27df86)
Features
- datepicker: add initial datepicker (#4404) (123d7ec)
- card: allow md-card-title and subtitle to be used as attributes (#4122) (a200024)
- core: allow users to disable the sanity checks (#4178) (16bba72), closes #4125
- dialog: add hasBackdrop and backdropClass options to dialog config (#2822) (7428c49), closes #2806
- list: option to disable ripples for all items (#4159) (7f0f473), closes #4149
- observe-content: add debounce option and other improvements (#2404) (244aece)
- overlay: add scroll handling strategies (#4293) (c8ec981)
- overlay: expose interface for custom positions (#4374) (ea8241a)
- progress-spinner: add support for custom stroke-width (#4113) (b846a27), closes #3934
- select: add ability to cycle through options with arrow keys when closed (#3313) (66e65c4), closes #2990
- select: allow setting the theme color (#3928) (3a29d67), closes #3923
- select: close the panel when pressing escape (#3879) (94a2855)
- add initial sass typography API (#4162) (7de316f)
- remove hard dependency on @angular/http (#3792) (b011b45), closes #2616
- sidenav: open all sidenavs from MdSidenavContainer (#2870) (79306ad), closes #2591
- tabs: allow disabling ripples (#4466) (e4789c7)