Skip to content

Releases: angular/components

fondant-friendship

03 Dec 20:57
d849a07
Compare
Choose a tag to compare

Bug Fixes

  • a11y: don't handle disallowed modifier keys in typeahead mode (#14301) (700f20f), closes #14274
  • badge: badge instances not being cleaned up on destroy (#14265) (da3776f)
  • checkbox: poor color contrast for disabled checkbox (#14044) (9c86b5f)
  • chips: invert focus overlay on dark theme (#14204) (7af8d02)
  • drag-drop: add support for dragging svg elements in IE11 (#14215) (81db16c), closes #14214
  • drag-drop: dragged elements blurry in some browsers (#14299) (63174d2), closes #14283
  • drag-drop: only add top-level drop lists to drop group (#14130) (4acecd7)
  • drag-drop: remove expensive style recalculation (#14189) (f212345)
  • form-field: error when native select has no options (#14102) (0ef75ea), closes #14101
  • list: don't handle events when modifier key is pressed (#14313) (0c7ce7a)
  • menu: allow alternate roles to be set on menu item (#14165) (3f1588f), closes #14163
  • ng-add: do not throw if custom builder is used for "test" (#14203) (498a3d8), closes #14176
  • scrolling: default to vertical CSS class for invalid orientation (#14145) (dbe27c4)
  • scrolling: provide virtual scroll viewport as scrollable (#14168) (c552504)
  • slide-toggle: label not being read out by JAWS (#14304) (754414b), closes #4610
  • slide-toggle: label not being read out by screen reader on IE (#14259) (5264804)
  • stepper: showing hover state after tap on touch devices (#14074) (f3031ad)
  • tabs: avoid hitting change detection if text content hasn't changed (#14251) (9778af2), closes #14249
  • tabs: blurry text in scrolled header on some browsers (#14303) (f7c8026)

stone-silhouette

20 Nov 22:00
Compare
Choose a tag to compare

Bug Fixes

  • a11y: aria-live directive announcing the same text multiple times (#13467) (a150494)
  • a11y: avoid overlapping or left over timers in live announcer (#13602) (d0f4e7b)
  • a11y: key manager preventing arrow key events with modifier keys (#13503) (1ef16ac), closes #11987 #13496
  • a11y: wrong order of constructor arguments in provider (#14078) (2fcf9e7), closes #14077
  • autocomplete: autofill value changes not being propagated to the form control (#9887) (059864d), closes #9704
  • autocomplete: not propagating same model value when reset while open (#13634) (8d98375)
  • bazel: theming bundle not exposed as sass_library (#14071) (af7a3d4)
  • bidi: preserve user dir attribute (#13859) (d94d176), closes #13855
  • breakpoints: set max-widths for breakpoints to non-integers to handle subpixel queries (#13828) (077f68e)
  • button: ripple color not correct for standard, icon and stroked buttons (#13235) (b104e75), closes #13232
  • button: stroked button crops applied badges (#13912) (4b431fe), closes #13909
  • button-toggle: content shifting in IE11 (#13492) (b3483a6)
  • button-toggle: not forwarding focus to underlying control (#14001) (81f8fb9)
  • button-toggle: remove hover state on touch devices (#13724) (a320af2)
  • button-toggle: svg icon not align inside toggle (#13839) (5851c91), closes #13726
  • button-toggle: webkit tap highlight conflicting with ripples (#13721) (efe53a0)
  • cdk-platform: pass {} to @NgModule since passing nothing breaks (#13792) (65dd75d)
  • checkbox: disabled property not being coerced (#13755) (e5fe34c), closes #13739
  • checkbox: no focus indicator in high contrast (#13255) (caf65e5), closes #13227
  • chips: disabled state not matching specs (#13272) (60e0d88)
  • chips: invalid ripple color for selected chips (#13271) (df5d18f)
  • chips: not updating keyboard controls if direction changes (#14080) (1ffa1fc)
  • chips: remove circular dependency between chip-list and chip-input (#13994) (6c741c4)
  • datepicker: don't allow clicks on disabled cells in year and multi-year views (#13448) (c15bad2)
  • datepicker: toggle not forwarding focus to underlying button (#14020) (b1d4b42)
  • datepicker: unable to disable ripple on datepicker toggle (#13997) (31bffb3), closes #13986
  • dialog,bottom-sheet: enter animation blocking child animations (#13888) (235add9), closes #13870
  • drag-drop: avoid disrupting drag sequence if event propagation is stopped (#13841) (8b2dc82)
  • drag-drop: avoid generating elements with duplicate ids (#13489) (68b53f7)
  • drag-drop: avoid interference from native drag&drop (#14054) (26d63ee)
  • drag-drop: drop list not toggling dragging class inside component with OnPush change detection (#13703) (12c15ba), closes #13680
  • drag-drop: enable drag interactions when there is a drag handle (#13780) (4ee6636), closes #13779
  • drag-drop: error if drag item is destroyed zone has stabilized (#13978) (6fe84f3)
  • drag-drop: events fired multiple times for short drag sequences on touch devices (#13135) (dc0b51a), closes #13125
  • drag-drop: ignore enter predicate when returning item to its initial container (#13972) (fa944b7)
  • drag-drop: incorrectly laying out items with different height or margins (#13849) (89701ef), closes #13483
  • drag-drop: multiple parallel drag sequences when dragging nested drag items (#13820) (436809c)
  • drag-drop: not picking up handle that isn't a direct descendant (#13360) (c38ebb6)
  • drag-drop: preserve previous inline transform (#13529) (cae16b0)
  • drag-drop: prevent mouse wheel scrolling while dragging (#13524) (cd6da93), closes #13508
  • drag-drop: use passive event listeners for start events (#13526) (280b0d6)
  • expansion-panel: don't handle enter/space if modifier is pressed (#13790) (04716b1), closes #13783
  • expansion-panel: emitting events twice on some browsers (#13600) (fa6e46d)
  • focus-trap: warn if initial element is not focusable (#13960) (27347b5), closes #13953
  • form-field: native select options blending in with dropdown background on a dark theme ([#13201](https://github.com...
Read more

brick-dress

13 Nov 17:36
893ec2d
Compare
Choose a tag to compare

Bug Fixes

  • a11y: aria-live directive announcing the same text multiple times (#13467) (7c2a095)
  • a11y: avoid overlapping or left over timers in live announcer (#13602) (a93d3a5)
  • a11y: key manager preventing arrow key events with modifier keys (#13503) (b7ef6af), closes #11987 #13496
  • bazel: theming bundle not exposed as sass_library (#14071) (71c205e)
  • bidi: preserve user dir attribute (#13859) (86089fe), closes #13855
  • button: ripple color not correct for standard, icon and stroked buttons (#13235) (62c6d55), closes #13232
  • button-toggle: not forwarding focus to underlying control (#14001) (b7be573)
  • button-toggle: svg icon not align inside toggle (#13839) (2814a99), closes #13726
  • checkbox: no focus indicator in high contrast (#13255) (13d9d3a), closes #13227
  • chips: invalid ripple color for selected chips (#13271) (057eee1)
  • datepicker: toggle not forwarding focus to underlying button (#14020) (723d7f5)
  • datepicker: unable to disable ripple on datepicker toggle (#13997) (2fb58ab), closes #13986
  • drag-drop: avoid disrupting drag sequence if event propagation is stopped (#13841) (2902d0b)
  • drag-drop: avoid generating elements with duplicate ids (#13489) (905f0b4)
  • drag-drop: avoid interference from native drag&drop (#14054) (8dcbee2)
  • drag-drop: enable drag interactions when there is a drag handle (#13780) (0d3b74a), closes #13779
  • drag-drop: error if drag item is destroyed zone has stabilized (#13978) (40a63cf)
  • drag-drop: ignore enter predicate when returning item to its initial container (#13972) (3fb5522)
  • drag-drop: prevent mouse wheel scrolling while dragging (#13524) (718d306), closes #13508
  • drag-drop: add directive to connect drop lists automatically (#13754) (e905127), closes #13750
  • focus-trap: warn if initial element is not focusable (#13960) (3026138), closes #13953
  • icon: account for query params when prefixing external references (#13930) (90420d6), closes #13924
  • menu: use passive touch listener (#14041) (f5006d6)
  • progress-bar: account for query params when prefixing references (#13942) (eb82847), closes #13930
  • scrolling: leaking subscription if same element is registered multiple times (#13974) (1a7173d)
  • slide-toggle: redirect focus to underlying input element (#13957) (1d4be69), closes #13953
  • slide-toggle: showing focus ripple when clicking disabled control (#14055) (a2c2caf), closes #13957
  • snackbar: set aria role based on if announcement message is provided (#13993) (199583b)
  • stepper: fix text contrast ratio of stepper labels (#14012) (01605d0)

lyrium-longboard

06 Nov 19:30
44db886
Compare
Choose a tag to compare

Bug Fixes

  • breakpoints: set max-widths for breakpoints to non-integers to handle subpixel queries (#13828) (b88b79d)
  • button: stroked button crops applied badges (#13912) (835dc9e), closes #13909
  • button-toggle: remove hover state on touch devices (#13724) (f9d5fb4)
  • chips: remove circular dependency between chip-list and chip-input (#13994) (3da858d)
  • dialog,bottom-sheet: enter animation blocking child animations (#13888) (e5afa48), closes #13870
  • drag-drop: drop list not toggling dragging class inside component with OnPush change detection (#13703) (4e50d4a), closes #13680
  • drag-drop: incorrectly laying out items with different height or margins (#13849) (c509591), closes #13483
  • drag-drop: multiple parallel drag sequences when dragging nested drag items (#13820) (cdc0c8b)
  • list: add ripples to action list items (#13799) (b293655), closes #13795
  • list: remove disabled selection list hover feedback on mobile (#13850) (e975223)
  • menu: unable to swap menu panel after first open (#13819) (cbb76ec), closes #13812
  • ng-update: do not fail if @schematics/angular version is outdated (#13929) (f10f8b9)
  • ng-update: do not throw if typescript version is outdated (#13927) (d44fcf8)
  • portal: use portal's ComponentFactoryResolver in portal outlet directive (#13886) (d2af80b), closes #12677 #9712
  • snack-bar: set appropriate role based on passed in politeness (#13864) (33d3cb3), closes #13493
  • snackbar: override min-width of snackbar on mobile (#13880) (41cb8aa)
  • stepper: don't handle enter/space when modifier key is pressed (#13827) (0bd3890), closes #13790
  • tabs: duplicate animation events on some browsers (#13674) (7106681)
  • tabs: mat-align-tabs not working on mat-tab-nav-bar (#13818) (2289e43), closes #13798
  • virtual-scroll: not removing view from container if it's outside the template cache (#13916) (7c202ec), closes #13901
  • bazel support for downstream apps (#13836) (61dbd26)

limestone-linguine

26 Oct 18:46
Compare
Choose a tag to compare

Bug Fixes

  • build: material not working with ES2015 (#13709) (e9103a6), closes #12760 #13695
  • button-toggle: webkit tap highlight conflicting with ripples (#13721) (abd0278)
  • cdk-platform: pass {} to @NgModule since passing nothing breaks (#13792) (5abb644)
  • checkbox: disabled property not being coerced (#13755) (cee8c65), closes #13739
  • expansion-panel: don't handle enter/space if modifier is pressed (#13790) (3e6cc77), closes #13783
  • radio: don't show hover ripples on touch devices (#13701) (b89c139), closes #13675
  • slide-toggle: don't show hover ripples on touch devices (#13702) (9d495f1), closes #13675
  • stepper: incorrect border color in dark theme for header with label position (#13791) (afa5a28)
  • stepper: selector assuming that there will always be a dir attribute (#13751) (576118e), closes #13741
  • stroked-button: ripples and focus overlay have incorrect radius (#13745) (7877404), closes #13738
  • tooltip: add fallback for touch devices if Hammer isn't loaded (#13580) (9ae6c84), closes #13536

Features

emerald-egret

22 Oct 16:46
92e693e
Compare
Choose a tag to compare

Bug Fixes

  • autocomplete: not propagating same model value when reset while open (#13634) (2006144)
  • button-toggle: content shifting in IE11 (#13492) (7f5cbe3)
  • datepicker: don't allow clicks on disabled cells in year and multi-year views (#13448) (85741e0)
  • drag-drop: not picking up handle that isn't a direct descendant (#13360) (0f05d99)
  • drag-drop: preserve previous inline transform (#13529) (2a8da45)
  • drag-drop: use passive event listeners for start events (#13526) (5d5fba5)
  • expansion-panel: emitting events twice on some browsers (#13600) (85a3ae0)
  • form-field: native select options blending in with dropdown background on a dark theme (#13201) (b8a6294)
  • grid-list: unable to assign numeric zero as gutter size (#13652) (4ffcf74)
  • list: selection list moving focus when an option is destroyed (#13531) (2c4c5ba)
  • menu: closing parent overlay when pressing escape (#13442) (c3ae922)
  • menu: proper focus styling when opened by tap on a touch device (#13599) (c271167)
  • progress-bar: not taking current path after first initialization (#13628) (8e331a7)
  • radio: improved alignment for native validation messages (#13570) (dbf5164)
  • sidenav: opened and closed events emitting twice on IE and Edge (#13649) (5295e2f)
  • slider: update value on mousedown instead of click (#13020) (c995db7)
  • stepper: custom icons not centered inside circle (#12947) (45edf64)
  • stepper: emitting the animationDone event twice on some browsers (#13608) (a11ca21), closes #13600 #13587
  • stepper: intl provider not being picked up in lazy-loaded modules (#12934) (00ce69b)
  • table: delimit words when filtering (#13487) (1d87b4c)
  • text-field: autosize textarea not resizing on minRows decrease (#13437) (8bae5b4)

Performance Improvements

  • focus-monitor: mark event listeners as passive (#13532) (ba0c820)

amethyst-ammonite

18 Oct 19:43
d177d6f
Compare
Choose a tag to compare

Highlights

  • Support for Drag and Drop in @angular/cdk/drag-drop.
  • Support for Virtual Scrolling in @angular/cdk/scrolling.
  • Support for native <select> element in <mat-form-field> .
  • Added <mat-action-list>, a list where each item is a <button>.
  • Updated component styles throughout the library matching the 2018 Material Design Spec refresh.
  • Added more schematics, with schematics now available for table, drag and drop, tree, address form and more.
  • Added CLI prompts when using ng add to assist in setting up HammerJS support, application theming and animations.
  • 250+ bug/performance fixes

Upgrading to 7.0

Using the Angular CLI, you can use the ng update command to automatically migrate to the new APIs in for Material and CDK.

ng update @angular/material

NOTE: If you are using only the CDK you can automatically migrate using ng update @angular/cdk instead.

Breaking Changes

  • ripple: deprecated [matRippleSpeedFactor] and baseSpeedFactor for the ripples have been removed. Use the new animation config instead.
  • overlay: The flexibleDiemsions property on CdkConnectedOverlay has been renamed to flexibleDimensions
  • sidenav: the constructor signature of the MatDrawerContent and MatSidenavContent has changed.
  • elevation: Because mat-elevation usages have been moved out of component stylesheets, users who have
    not invoked a theme mixin will not see any elevation shadows on Material components.
    However, users that have created a custom theme which lacks the elevation property will
    still see the default black shadows.

Additionally, users who want to use themed elevations in their custom components can create
their own shorthand mixin:

@import '~@angular/material/theming';

$myTheme: ...

@mixin my-elevation($zValue) {
  @include mat-theme-elevation($zValue, $myTheme);
}

and then invoke angular-material-theme with the $myTheme variable.

Marked for Deprecation

A number of items throughout the library have been deprecated and are expected to be removed in v8.

CDK

Collections

  • SelectionModel.onChange has been deprecated, use SelectionModel.changed instead.

Scrolling

  • ScrollDispatchModule has been deprecated, use ScrollingModule instead.

Table

  • CdkTable.setFooterRowDef has been deprecated, use CdkTable.addFooterRowDef and CdkTable.removeFooterRowDef instead.
  • CdkTable.setHeaderRowDef has been deprecated, use CdkTable.addHeaderRowDef and CdkTable.removeHeaderRowDef instead.

Material

Dialog

  • matDialogAnimations.slideDialog has been deprecated, use matDialogAnimations.dialogContainer instead.
  • MatDialogRef.afterOpen has been deprecated, use MatDialogRef.afterOpened instead.
  • MatDialogRef.afterClose has been deprecated, use MatDialogRef.afterClosed instead.
  • MatDialog.afterOpen has been deprecated, use MatDialog.afterOpened instead.

Form Field

  • <mat-placeholder> has been deprecated, use <mat-label> instead.
  • MatPlaceholder has been deprecated, use MatLabel instead.

Paginator

  • $mat-paginator-selector-trigger-min-width has been deprecated, use $mat-paginator-selector-trigger-width instead.

Select

  • matSelectAnimations.fadeInContent has been deprecated and will be removed without replacement.
  • The setter method for MatSelect.focused has been deprecated, MatSelect.focused will become readonly.

Toolbar

  • $mat-toolbar-height-mobile-portrait has been deprecated and will be removed without replacement.
  • $mat-toolbar-height-mobile-landscape has been deprecated and will be removed without replacement.

NOTE: In addition to the specific deprecations listed above, many component constructor methods contain
optional parameters which are expected to become required in v8.

Bug Fixes

  • icon: not taking current path after initialization (#13641) (df9ec7)
  • list: action list items clickable area not stretching the full width (#13099) (f3057fa)

7.0.0-rc.2

15 Oct 22:18
3f98306
Compare
Choose a tag to compare
7.0.0-rc.2 Pre-release
Pre-release

Bug Fixes

  • drag-drop: enterPredicate being called with wrong drop container (#13578) (60b4a58)
  • drag-drop: rename cdkDrop to cdkDropList (#13619) (160b688)
  • ng-add: do not add theme file if existing theme is set up (#13468) (d1e59a2)
  • schematics: template content exceeds max line length (#13521) (b0a1daf)
  • schematics: tree folder icons do not have enough contrast (#13462) (4a0eb2b)
  • virtual-scroll: fix several small bugs (#13597) (8cfaeea)

Features

  • schematics: prompt for name when generating component (#13518) (9085de7)

7.0.0-rc.1

09 Oct 00:36
2e4a511
Compare
Choose a tag to compare
7.0.0-rc.1 Pre-release
Pre-release

Bug Fixes

  • a11y: not being able to escape disabled focus trap using arrow keys (#13133) (3c55caa), closes #13132
  • autocomplete: closing parent overlay when pressing escpe (#13413) (8dfd2ee)
  • bottom-sheet: dismiss bottom sheet on destroy (#13120) (ffa4a06)
  • button-toggle: not setting proper border in vertical mode (#13397) (d58db5d)
  • button-toggle: remove extra focus indication added by firefox (#13367) (3583913)
  • checkbox: ripple not hiding after click/touch (#13295) (afb0352), closes #13291
  • chips: content not centered vertically on IE in some cases (#13260) (4f43f5c)
  • chips: ripple not clipping correctly in safari (#12244) (eb95e61)
  • chips: selectionChange event firing when value has not changed (#13173) (e8a6ea1)
  • datepicker: change overlay position strategy so the calendar is kept on-screen (#11607) (f44d6db)
  • drag-drop: avoid interfering with element clicks (#13152) (38e7dd2)
  • expansion-panel: correct jump in panel sizing during animation (#12509) (a706c8c)
  • experimental/dialog: clean up open dialogs on destroy (#13421) (84d8f5b)
  • form-field: blue box inside focused native select on IE (#13187) (ab44d50)
  • form-field: not updating outline when prefix/suffix is added or removed (#13253) (0060bd7), closes #13251
  • grid-list: incorrectly laying out tiles for nested list (#13086) (3e1cff0), closes #13074
  • icon: handle references for pages with base tag (#12428) (9e5fd91), closes #9276
  • list: selection list not marking options as selected correctly when setting value with duplicates (#13363) (bef9a17)
  • menu: incorrectly styling keyboard focus, if trigger is right clicked before opening (#13136) (730e6a3)
  • ng-add: allow using noop animations (#13429) (15a1ab7)
  • overlay: incorrectly calculating centered position on a scrolled page with pushing (#13185) (f5dd24a), closes #11868
  • overlay: wait for panel to detach before removing panelClass (#13199) (238aef0), closes #13189
  • paginator: icons and labels not centered vertically on IE (#12495) (fe3f37a), closes #12491
  • schematics: @angular/material schematics not working (#13406) (3f8ee74)
  • schematics: name is required when generating the drag-drop schematic (#13452) (4a9bbcb)
  • schematics: proper error if name is not specified (#13379) (4a0b09a)
  • scrolling: viewport ruler resize event running inside the NgZone (#12909) (707a7ee), closes #12883
  • select: allow extra content to be projected after label in mat-optgroup (#13396) (cb5b15e), closes #11489
  • select: handle home and end keys on closed select (#13278) (d6ba25f)
  • tabs: disabled tab link not preventing router navigation (#10358) (bf66d57), closes #10354
  • virtual-scroll: don't set both right and left on the content (#13412) (6ee9149), closes #13231

Features

7.0.0-rc.0

02 Oct 19:08
01b18c0
Compare
Choose a tag to compare
7.0.0-rc.0 Pre-release
Pre-release

Bug Fixes

  • autocomplete: dividers in list throwing off keyboard navigation (#13224) (0886cef), closes #13200
  • button: fix stroked button border color (#13219) (bfeb540)
  • checkbox: clear tabindex from host element (#13308) (845388c)
  • chips: set aria-invalid on chip input (#13249) (311d786), closes #13205
  • common: account for async hammer loader when checking whether hammer is defined (#12933) (d15431b)
  • drag-drop: emitting incorrect index for horizontal list in rtl (#13274) (f3bb0c7)
  • drag-drop: error on IE when customizing root element (#13279) (e1071f0)
  • drag-drop: unable to return item to initial container within same drag sequence, if not connected to current drag container (#13247) (0ac41a0), closes #13246
  • form-field: always use native input value to determine whether control is empty (#13307) (10e6502), closes #13305
  • form-field: incorrect arrow color for native select (#13046) (10b8353)
  • form-field: native date/time input taller than text input (#13321) (92a5f0e), closes #13317
  • form-field: native select outline not reset on firefox (#12967) (38e492f)
  • grid: fix mat-grid-tile position (#12980) (966cf5f)
  • grid-list: exception thrown when rowHeight is set before first change detection run (#13112) (e7007a2), closes #13102
  • grid-list: throw error if invalid value is assigned for rowHeight (#13254) (210f3f9), closes #13252
  • list: set aria-multiselectable on selection list (#13325) (877ef5d)
  • overlay: connected overlay directive inputs not updating position strategy (#13066) (1d8e9af)
  • paginator: getNumberOfPages off by one (#10724) (016ba5c), closes #10720 #10699
  • radio: clear tabindex from host element (#13323) (5c0a061), closes #13311 #13308
  • schematics: addressForm: fix bad Validators definition and TSLint (#13285) (267dd65)
  • schematics: dashboard schematic fails parsing declaration in spec (#13269) (543cb9f)
  • schematics: fix typo in table's datasource (#13283) (0ccdfc8)
  • schematics: nav schematic generates TSLint errors (#13268) (8d25fd1)
  • schematics: remove unnecessary semicolon in tree component (#13284) (8558878)
  • schematics: sidenav toolbar should use default background (#13282) (c454f7b)
  • schematics: table schematic not expanding full width (#13234) (884762f)
  • schematics: toolbar in nav w/o z-index causes issues with dashboard (#13270) (d74e38c)
  • select: give native select a bigger clickable area (#13228) (6da7d23)
  • slide-toggle: clear tabindex from host element (#13311) (119fafd), closes #13308
  • snack-bar: button not centered inside snack bar on IE11 (#13062) (4e05745)
  • snackbar: move elevation style to snackbar theme (#13273) (96e670f)
  • stepper: vertical step header labels not centered on IE (#13262) (40fb5cb)
  • tooltip: custom gesture config not set up (#12941) (1852563), closes #12940 #12917
  • tooltip: hiding and reopening for consecutive show calls (#13326) (b5001f6)

Features

Performance Improvements

  • virtual-scroll: use auditTime instead of sampleTime (#13131) (c26dc74)

update

  • ripple: remove deprecated speed factor option (#12258) (a6c91bc)

BREAKING CHANGES

  • ripple: deprecated [matRippleSpeedFactor] and baseSpeedFactor for the ripples have been removed. Use the new animation config instead.

  • Add test case; fix NodeJS version target circular dependency; Support for rule version constraints