Commit Graph

137 Commits

Author SHA1 Message Date
Daniel Freedman
4e6be3f4eb Refactor checkbox to remove Foundation and ripple directive
- Remove checkbox adapter and foundation
- Replace ripple directive with lazy `mwc-ripple`
- Fix Closure Compiler renaming issues

Related #892
Related #894
Related #882

PiperOrigin-RevId: 302740256
2020-03-24 13:55:37 -07:00
Elliott Marquez
29b82662e5 chore: update changelog for release 2020-03-23 10:32:14 -07:00
Elliott Marquez
37b35b1684 feat(list): add innerAriaLabel prop set aria-label 2020-03-20 16:54:12 -07:00
Daniel Freedman
0f72209632 Update lit-element to 2.3.0
- lit-element 2.3.0 adds `@queryAsync` and `@queryAssignedNodes`, which
  we want to start using in MWC
2020-03-19 15:40:44 -07:00
Daniel Freedman
3c04b43900 prepare v0.14.0 release 2020-03-19 13:32:43 -07:00
Elliott Marquez
f50f48ef05 fix(select): disabled dropdown icon opacity and color now properly configurable
PiperOrigin-RevId: 301863260
2020-03-19 11:52:43 -07:00
Daniel Freedman
306cabed80 chore: Make imports for @observer explicit
`@observer` does not mesh well with strict internal tooling, and should not be necessary for components that do not use MDC Foundations.

Refactor `BaseElement` and `FormElement` to remove exports of `@observer`, and add imports for `@observer` in components that need it.

Related #892

PiperOrigin-RevId: 301450145
2020-03-17 14:14:58 -07:00
Elliott Marquez
cb7f7bb481 chore: update changelog 2020-03-12 18:20:11 -07:00
Elliott Marquez
2317caa774 chore: update changelog for change in #994
PiperOrigin-RevId: 300395923
2020-03-11 13:33:11 -07:00
Daniel Freedman
34b2d69a52 Add focusOnActivate property to mwc-tab
Focusing on activation is on by default in MDC, but the Foundation exposes a function to disable this behavior for some applications

Also, remove the styles block from the base element

PiperOrigin-RevId: 300174710
2020-03-10 14:11:51 -07:00
Liz Mitchell
7cd5aad6e3 feat(textfield): add readonly property
Fixes #942

PiperOrigin-RevId: 299961156
2020-03-09 16:17:02 -07:00
Elliott Marquez
2b02d01711 fix(menu): x and y correctly set anchor margins
fixes #949

PiperOrigin-RevId: 298909721
2020-03-04 12:16:39 -08:00
Elliott Marquez
d5ecca4e89 feat(menu): add --mdc-shape-medium to menu-surface
fixes #950

PiperOrigin-RevId: 298659025
2020-03-03 12:01:10 -08:00
Elliott Marquez
c28fbf699e feat(select): select can now select via value prop 2020-03-02 18:48:21 -08:00
Daniel Freedman
24f5fa6ec0 Remove ripple-directive from mwc-ripple
- mwc-ripple is now fully self-contained for styling and DOM manipulation
- Reuse MDCRippleFoundation and MDCRippleAdapter
  - consider refactoring into mwc-ripple later
- Remove `active` property
- Add `--mdc-ripple-color`, `--mdc-ripple-fg-opacity` and `--mdc-ripple-hover-opacity` CSS Custom Properties
- Make FormElement and `mwc-formfield` support asynchronous ripple properties
- Add `RippleHandlers` to make integration with ripple containers easier
- Hide ripple when set to `disabled`
- Add `light` property for ripples on dark surfaces

Related #892
Related #894
Fixes #247

PiperOrigin-RevId: 297968015
2020-02-28 17:05:57 -08:00
Elliott Marquez
97ef53d8a9 fix(select): Fix mwc-select for IE and add tests
PiperOrigin-RevId: 297958805
2020-02-28 16:15:27 -08:00
Corey Vidal
312ee66b1a
Update CHANGELOG.md
Changed erroneous "2019" to "2020".
2020-02-27 23:38:10 -05:00
Liz Mitchell
2530ea1980 docs: add "Unreleased" to changelog
PiperOrigin-RevId: 297145224
2020-02-25 10:17:53 -08:00
Daniel Freedman
f04f332022 Refactor BaseElement and FormElement
- Make `mdcFoundationClass` and `mdcFoundation` optional
- Make exports from FormElement more explicit
- Replace MDCRippleFoundation type import in FormElement with an explicit RippleInterface
- Clean up CHANGELOG

Related #892
Fixes #893

PiperOrigin-RevId: 296509910
2020-02-21 14:17:33 -08:00
Elliott Marquez
444ea64ee1 mwc-button icon refactor
added `icon` and `trailingIcon` slots.

fixes #663
fixes #765

PiperOrigin-RevId: 296207121
2020-02-20 07:50:11 -08:00
Elliott Marquez
94dec8f8fb Add autoValidate property to mwc-textfield
PiperOrigin-RevId: 295820252
2020-02-18 14:17:43 -08:00
Copybara-Service
c28a7dce7e Merge pull request #871 from material-components:document-tabs
PiperOrigin-RevId: 295814211
2020-02-18 13:53:47 -08:00
Liz Mitchell
85c6a4239d feat(typography): add CSS custom properties
PiperOrigin-RevId: 295784229
2020-02-18 11:38:23 -08:00
Daniel Freedman
6a75094e8f Fix Sass "default" imports
- Sass now has "default" imports that should handle `@material/theme` to
  mean `@material/theme/_index.scss` that `node-sass-import` did not
  understand

  Fixes #850
2020-02-18 10:15:29 -08:00
Elliott Marquez
fab80d7c49 change default icon in tab to name icon 2020-02-17 12:03:01 +01:00
Liz Mitchell
3fe668dbe5 Merge branch 'master' into feat/textfield/inputmode 2020-02-10 15:22:27 -08:00
Liz Mitchell
ce0b06ae4c feat(textfield): add inputmode
Fixes #834
2020-02-06 12:37:10 -08:00
Liz Mitchell
6a4c46b165 docs: update changelog 2020-02-06 12:15:57 -08:00
Elliott Marquez
c258df1396 update changelog for release 2020-02-03 15:05:02 -08:00
Elliott Marquez
cb716b4586 update changelog 2020-01-31 20:08:50 -08:00
Liz Mitchell
2a7b7f5783 Add end-aligned to textfields #818 2020-01-30 15:44:52 -08:00
Elliott Marquez
58972d60fa Fix event listener adding and removal in mwc-dialog
PiperOrigin-RevId: 289004544
2020-01-09 17:14:09 -08:00
Copybara-Service
6eef5e2e79 Merge pull request #699 from material-components:dialog-open-fn
PiperOrigin-RevId: 285987721
2019-12-17 08:46:22 -08:00
Elliott Marquez
912b38601b update changelog for release 2019-12-16 15:49:33 -08:00
Elliott Marquez
db4c08de29 update changelog 2019-12-13 17:39:51 +11:00
Elliott Marquez
b90e4ed977 Setting border radius on internal button should reflect to internal ripple
in this PR:
* remove border-radius from ripple
* make internal button overflow none

PiperOrigin-RevId: 284919084
2019-12-10 22:29:27 -08:00
Copybara-Service
27e7e35634 Merge pull request #674 from material-components:mwc-tab-styles-for-real
PiperOrigin-RevId: 283984047
2019-12-05 08:57:54 -08:00
Elliott Marquez
2c6447f946
Merge branch 'master' into mwc-tab-styles-for-real 2019-12-04 19:09:39 +11:00
Elliott Marquez
999cc8288f
Merge branch 'master' into radio-ring 2019-12-04 19:07:11 +11:00
Elliott Marquez
a10e61ba27 update changelog 2019-12-04 16:36:32 +11:00
Elliott Marquez
ed10efafa8 update changelog 2019-12-04 15:26:56 +11:00
Elliott Marquez
d76125de6a Merge branch 'master' into mwc-tab-styles-for-real 2019-12-04 13:10:12 +11:00
Elliott Marquez
5ba3154528 update changelog 2019-12-03 20:00:51 +11:00
Elliott Marquez
9abebe6b41 update changelog for breaking 2019-12-02 16:59:55 +11:00
Elliott Marquez
bed277a88d update changelog 2019-12-02 16:49:39 +11:00
Liz Mitchell
3aaa921e4e Prepare release v0.11.1 2019-11-26 15:33:34 -08:00
Liz Mitchell
71ae3f6ec2 preparing release v0.11.0 2019-11-26 13:45:16 -08:00
Liz Mitchell
73d7191c92 Merge branch 'master' into fix/icon-button-slot 2019-11-18 11:29:55 -08:00
Alexander Marks
4fbcc717e8 Fix mwc-dialog behavior on disconnect
- We no longer trigger an exception in the blocking elements polyfill in some scenarios. This happened when a dialog was opened and then quickly disconnected before the opening animation finished, because we were trying to add a disconnected element to the blocking elements stack. We now close the foundation (or don't open in the first place if we're _really_ early) on disconnect, which cancels the opening timer. This is a scenario that can easily crop up in tests, since tests don't necessarily wait for the opening event before tearing down the test fixture DOM.

- If a dialog is opened, disconnected, and re-connected, we now re-show the opening animation, and correctly put the dialog back onto the blocking elements stack.

PiperOrigin-RevId: 281077807
2019-11-18 08:59:11 -08:00
Copybara-Service
e783c7d8ac Merge pull request #609 from material-components:slider-scroll-fix
PiperOrigin-RevId: 280540014
2019-11-15 00:43:03 -08:00