Commit Graph

2229 Commits

Author SHA1 Message Date
Will Howell 449ed194d2 fix(chips): mark onFocus as internal (#6519) 2017-08-22 14:02:18 -07:00
Will Howell df28c3d5ab feat(dialog): expose backdrop clicks (#6511) 2017-08-22 11:48:41 -07:00
trevorade 6cdbf36103 fix(tooltip): remove unnecessary tooltip whitespace (#6531) 2017-08-22 11:28:09 -07:00
Kristiyan Kostadinov 4e120723eb fix(dialog): move focus into container if no focusable elements are found (#6524)
Fixes #6513.
2017-08-22 11:26:19 -07:00
Jeremy Elbourn e0b1094d62 chore(e2e): fix consistent timeouts (#6574) 2017-08-22 10:53:15 -07:00
Jeremy Elbourn 9904e5605c feat(overlay): add maxWidth and maxHeight (#6508) 2017-08-22 10:13:54 -07:00
Jeremy Elbourn 0db3635f01 chore(overlay): add attach method to PositionStrategy interface (#6505) 2017-08-22 10:13:23 -07:00
tinayuangao 215ff3c77c demo(card): add accessibility demo page for card (#6358) 2017-08-21 16:11:20 -07:00
tinayuangao 7b54e1dfda demo(dialog): add accessibility demo page for dialog (#6360) 2017-08-21 16:00:04 -07:00
Austin 5bd0c3a629 demo(menu): add menu a11y demo (#6445) 2017-08-21 15:59:44 -07:00
Kristiyan Kostadinov 5e3228f61c fix(icon): icon element not removed when svgIcon is reset (#6502)
Fixes #6495.
2017-08-21 15:56:18 -07:00
Jeremy Elbourn 5f75939a01 chore(overlay): refactor clipping detection calculation to its own file (#6504) 2017-08-21 15:55:09 -07:00
Shlomi Assaf 90a6ac95e5 feat(portal): support context in TemplatePortal (#6408)
BREAKING CHANGE:
- `TemplatePortal` now requires a generic type (C)
- method `attach` return type C and property `locals` was removed
- method `attachTemplatePortal` in `BasePortalHost` now requires a generic type (C) and returns EmbeddedViewRef<C> (also applies to extending types `DomPortalHost`, `PortalHostDirective` and `MdDialogContainer`)
2017-08-21 15:15:47 -07:00
Will Howell cdbf305771 feat(dialog): add beforeClose method (#6377) 2017-08-21 15:13:28 -07:00
tinayuangao dfd3d7133b demo(slide-toggle): add accessibility demo page for slide toggle (#6349) 2017-08-21 13:56:45 -07:00
Philip Pham 054ea4d1ef feat(select): implement compareWith for custom comparison (#4540)
Fixes #2250, fixes #2785.
2017-08-21 13:53:39 -07:00
Will Howell c86d13c8fe docs(styles): add guide for overriding styles (#6541) 2017-08-21 12:35:06 -07:00
Kristiyan Kostadinov 1179868174 chore(select): add select a11y demo (#6384)
Fixes #6119.
2017-08-21 10:55:17 -07:00
mmalerba 372436cb8a refactor(sidenav): split into drawer and sidenav (#6260)
* refactor(sidenav): split into drawer and sidenav

* s/side/position

* fix tests

* fix bad rebase
2017-08-17 12:48:25 -07:00
Andrew Seguin 0f02a11bcd Revert "chore(dialog): switch to OnPush change detection (#6287)" (#6523)
This reverts commit 72360e2b11.
2017-08-17 12:04:01 -07:00
Kristiyan Kostadinov 0113c389fb chore: fix nested menu test failure (#6514)
Fixes a test failure that seems to have slipped through the cracks in between merging a fix and the update to Angular 4.3,
2017-08-17 12:03:37 -07:00
Kristiyan Kostadinov 72360e2b11 chore(dialog): switch to OnPush change detection (#6287)
Switches the dialog to OnPush change detection.
2017-08-16 13:16:37 -07:00
Kristiyan Kostadinov 6b9357243b chore: remove duplicated key managers (#6332)
* chore: remove duplicated FocusKeyManager

Removes the FocusKeyManager class that was duplicated from the CDK.

* chore: also remove duplicate activedescendant
2017-08-16 13:16:24 -07:00
Andrew Seguin 34284b9e87 fix: enforce multiline selectors use backtick (#6386)
* fix: enforce multiline selectors use backtick

* add checkbox validator
2017-08-16 13:16:06 -07:00
Andrew Seguin ff4e6e96a8 compat(autosize): fix input name (#6419) 2017-08-16 13:15:50 -07:00
Kristiyan Kostadinov 4d36ee038c feat(tabs): add isActive flag on the individual tabs (#6424)
* Adds the `isActive` flag on each tab, making it easier to check whether a tab is active.
* Adds an `exportAs` to the tab directive to allow for it to be consumed easier in the view.

Fixes #6422.
2017-08-16 13:15:29 -07:00
Kristiyan Kostadinov 08a66734db fix(list-key-manager): typehead not handling non-English input (#6463)
Since `String.fromCharCode` only maps the key codes to their English letter counterparts, the typeahead option in the `ListKeyManager` won't work for non-English input. These changes switch to using `event.key` and falling back to using `keyCode` and `fromCharCode`.
2017-08-16 13:15:13 -07:00
Kristiyan Kostadinov da7cb2dc99 refactor: use mat-fill mixin for cover elements (#6486)
Switches the elements that cover their parents to use the `mat-fill` mixin.
2017-08-16 13:14:51 -07:00
Kristiyan Kostadinov 66da5973db feat: update to Angular 4.3 (#6483)
* feat: update to Angular 4.3

* Bumps the Angular requirement to 4.3. This is also a prerequisite to the Angular 5 update since we encountered the same errors there.
* Refactors the sidenav not to use a `Promise.resolve` for toggling the initial animation, because it was making it impossible to flush the animations in unit tests. The new simplified approach uses a property to pass the animation state.
* Fixes the nested menu test failures.
* Fixes a "changed after checked" error in the autocomplete demo app.

Relates to #6454.

* fix: e2e failures
2017-08-16 13:14:12 -07:00
Andrew Seguin 1807c5b8f7 fix(select): lint issue (#6497) 2017-08-16 10:33:23 -07:00
Kristiyan Kostadinov b5fc68b907 build: fix error when running tslint task (#6431)
Fixes an error, that was being thrown when running the `tslint` task, by bumping `tslint` to 5.6.
2017-08-15 15:03:38 -07:00
Kristiyan Kostadinov bfea2634d1 chore: remove change detection toggle from demo app (#6444)
Removes the toggle that changes the change detection in the demo app. It's not needed anymore since all components use OnPush.
2017-08-15 15:03:29 -07:00
Kristiyan Kostadinov 6422640b03 fix(select): don't shift option focus when multi-select value is changed programmatically (#5401)
Doesn't shift focus when the value of a multi select is updated programmatically while the panel is still open. Previously focus would end up on the last selected option, because we move focus in a loop.

Fixes #5381.
2017-08-15 14:54:08 -07:00
Hubert Wesolowski 9ba5d8434f feat(datepicker): close calendar after choose the same date again (#6323)
* feat: close calendar after choose the same date again

* feat: close calendar by userSelection event

* addressing pr comments

* fix for tslint errors

* addressing pr comments
2017-08-15 14:53:55 -07:00
Kristiyan Kostadinov 66b1ff52b0 fix(menu): close child menus when parent is closed programmatically (#6329)
Fixes the child menus not closing themselves when a parent menu is closed via `closeMenu`.
2017-08-15 14:53:18 -07:00
tinayuangao 9bdd228618 demo(snackbar): Add accessibility demo page for snack bar (#6362)
* demo(snackbar): Add accessibility demo page for snack bar

* Remove pizza example
2017-08-15 14:52:59 -07:00
Andrew Seguin 1f80d2eda5 compat(table): support matColumnDef input (#6388) 2017-08-15 14:51:21 -07:00
Andrew Seguin 7e11ba84f9 compat(datepicker): add mat compatible selectors (#6389) 2017-08-15 14:51:10 -07:00
Andrew Seguin 1536c6878e compat(ripple): add mat compatible inputs (#6390)
* compat(ripple): add mat compatible inputs

* add underline
2017-08-15 14:50:50 -07:00
Martin Mädler 2ee705b632 chore(a11y): fix up cdk-visually-hidden class (#6394)
This commit removes the redundant `text-transform` property from the
`cdk-visually-hidden` css class to conform with the *standard* concept
to visually hide content for accessibility.
2017-08-15 14:50:41 -07:00
tinayuangao 54158fdeaa docs(a11y): Add a11y docs to button, button toggle, checkbox, progress spinner/ba… (#6402)
* Add a11y docs to button, button toggle, checkbox, progress spinner/bar, radio button and grid list

* address comments

* address comments

* address comments

* fix typo
2017-08-15 14:50:18 -07:00
Kristiyan Kostadinov bf59468b01 fix(autocomplete): highlighted option not reset when closed with escape or enter key (#6403)
Fixes the autocomplete active option not being reset when closing through the escape or enter keys. Previously the old active option would remain active upon reopening, however the user's focus would shift back to the top as soon as they press an arrow key.

Fixes #6258.
2017-08-15 14:50:03 -07:00
Kristiyan Kostadinov ea17d3d0f2 fix(datepicker): remove toggle icon from tab order on IE (#6405)
Fixes users being able to tab into the datepicker's icon on IE.
2017-08-15 14:49:46 -07:00
mmalerba c668075adf cleanup(input): rename md-input-container to md-form-field throughout material (#6421) 2017-08-15 14:49:38 -07:00
Kristiyan Kostadinov 67e91a3934 fix(autocomplete): don't darken select option (#6425)
Scopes the darkening of selected options only to `md-select`.

Fixes #6407.
2017-08-15 14:48:46 -07:00
Kristiyan Kostadinov b5f4caf1fa fix(tabs): allow for tabs to be selected using the space key (#6426)
* Allows for the user to select a tab using the space key, in addition to enter. This seems to be consistent with the M1 implementation of tabs.
* Prevents the default action for space and enter in order to prevent the page from scrolling by accident.

Fixes #6406.
2017-08-15 14:48:28 -07:00
Kristiyan Kostadinov 1df79e9efa perf(tabs): avoid extra resize handler and reflow (#6434)
In #6304, an extra window resize handler was added in order to call `_checkPaginationEnabled`. This handler is unnecessary, because we have another resize handler a little bit below that calls `_updatePagination`, which will call `_checkPaginationEnabled` internally. The original issue that #6304 was fixing was due to the fact that the current listener wasn't being run in the Angular zone. These changes remove the extra listener, increase the debounce interval and move the handler outside back into the zone. There may be a slight overhead from moving the listener into the zone, however it should be offset by not having another listener and not calling `_checkPaginationEnabled` twice.
2017-08-15 14:48:16 -07:00
Kristiyan Kostadinov 5d437ea861 refactor: remove usages of if in checks (#6436)
This is something that came up in https://github.com/angular/material2/pull/2907#discussion_r130968388. We shouldn't be using the `if ('someString' in obj)` checks, because they can be broken by minifiers that rename class members.
2017-08-15 14:48:08 -07:00
Kristiyan Kostadinov f9bd5d4bb5 fix(expansion-panel): animation not working in Angular 4.3 (#6442)
Fixes the animation not working correctly in Angular 4.3. It seems like having both the margin and height animation on the element causes the height one to break. This approach also has the advantage of making it easier to override the margin and being able to use the SASS variables if necessary.
2017-08-15 14:47:58 -07:00
Kristiyan Kostadinov 18c6dec61a fix: improved key manager typings (#6443)
Makes the FocusKeyManager and ActivedescendantKeyManager generic which avoids having to cast the items all the time (e.g. https://github.com/angular/material2/blob/master/src/lib/autocomplete/autocomplete-trigger.ts#L234).
2017-08-15 14:46:55 -07:00