Commit Graph

337 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
Copybara-Service
48afbc613f Merge pull request #613 from material-components:slider-readme
PiperOrigin-RevId: 280538658
2019-11-14 17:22:56 -08:00
Copybara-Service
7b54397225 Merge pull request #621 from material-components:linear-progress-docs
PiperOrigin-RevId: 280525050
2019-11-14 16:19:40 -08:00
Copybara-Service
711f77d006 Merge pull request #448 from abraham:fab-label
PiperOrigin-RevId: 280439903
2019-11-14 15:43:44 -08:00
Elliott Marquez
7466da8aa8 'from' -> 'instead of' 2019-11-13 17:26:33 -08:00
Liz Mitchell
ae2ff721d0 Use default slot for mwc-icon-button #557 2019-11-13 15:25:52 -08:00
Elliott Marquez
94c29a04ce add extra changelog item 2019-11-08 19:41:22 -08:00
Elliott Marquez
474088ce6e theme-secondary -> linear-progress-buffer-color 2019-11-08 19:14:22 -08:00
Elliott Marquez
c86a527b53 update changelog 2019-11-08 17:58:10 -08:00
Alexander Marks
1ecc674991 Add README for form field, and examples to checkbox/radio/switch
Fixes https://github.com/material-components/material-components-web-components/issues/587

PiperOrigin-RevId: 279426189
2019-11-08 17:44:39 -08:00
Elliott Marquez
1bfff2f17d update changelog 2019-11-08 16:48:45 -08:00
Elliott Marquez
1d17398490 Merge branch 'master' into slider-readme 2019-11-07 20:59:32 -08:00
Elliott Marquez
ee1eb74ddf update changelog for icon-button 2019-11-07 20:27:13 -08:00
Elliott Marquez
8536b78299 add missing ripple changelog 2019-11-07 20:27:13 -08:00
Elliott Marquez
e02bfcbce1 update slider changelog 2019-11-07 20:27:13 -08:00
Elliott Marquez
0bfdf2dc0e update changelog 2019-11-06 19:27:04 -08:00
Elliott Marquez
74172477a7 changelog 2019-11-05 20:07:39 -08:00
Polymer Bot
fb42a5ca99 Expand app content inside drawer
Fixes https://github.com/material-components/material-components-web-components/issues/535

PiperOrigin-RevId: 276521443
2019-10-24 10:51:32 -07:00
Daniel Freedman
4a5768ab67 Add README for drawer 2019-10-22 11:02:56 -04:00
Alexander Marks
677cabae11 Add missing CHANGELOG entry for https://github.com/material-components/material-components-web-components/pull/564
PiperOrigin-RevId: 275529513
2019-10-18 12:59:26 -07:00
Elliott Marquez
7367069cce fix changelog
PiperOrigin-RevId: 275159895
2019-10-16 18:54:54 -07:00
Copybara-Service
dcc6f94f13 Merge pull request #560 from material-components:canary-birb
PiperOrigin-RevId: 275108953
2019-10-16 14:17:17 -07:00
Alexander Marks
48601af45b Restore CHANGELOG entry for 0.9.1
Somehow this commit got dropped at some point: 854f90c291

PiperOrigin-RevId: 275100971
2019-10-16 13:29:40 -07:00
Elliott Marquez
deb66686ca update changelog 2019-10-16 12:32:37 -07:00
Elliott Marquez
03c5e0a2a6 update changelog 2019-10-14 16:24:27 -07:00
Alexander Marks
719756edfb Prepare to release 0.10.0 2019-10-11 14:30:31 -07:00
Alexander Marks
221e54f938 Fix mwc-radio group synchronization when not created/connected simultaneously
Selection groups are keyed by root (document or shadow root). Before, we created our selection group controller at construction. This is fine when creating and connecting at the same time (e.g. in HTML, or in a simple lit template), but fails otherwise, because we get the wrong root. Now we defer creating our controller until connectedCallback, so that we always get the correct root.

Fixes https://github.com/material-components/material-components-web-components/issues/282

Supersedes https://github.com/material-components/material-components-web-components/pull/279

(Also small fix to mwc-textarea.test.ts to avoid use of any)

PiperOrigin-RevId: 274241115
2019-10-11 14:25:52 -07:00
Copybara-Service
8f2dc362e1 Merge pull request #549 from material-components:textfield-styling
PiperOrigin-RevId: 274226975
2019-10-11 12:48:21 -07:00
Elliott Marquez
971d926e0e update changelog 2019-10-09 16:37:14 -07:00
Alexander Marks
3dd956f7d5 Move character-counter-directive out of its own directory.
In Google, every directory containing TypeScript files must be a
directory with a BUILD file (a package), and packages cannot contain
dashes. We could handle this case with a transformation, but it seems
simpler to just keep a flatter layout upstream.
2019-10-08 17:10:03 -07:00
Alexander Marks
af4ea8e0c2 Remove mwc-icon-font.js
Let's just have the one way to load fonts, as documented in our README.
Updated all the demos to use the same recommendation.
2019-10-08 13:54:28 -07:00
Elliott Marquez
4f09458c91 Internal change
PiperOrigin-RevId: 272562049
2019-10-02 18:15:37 -07:00
Alexander Marks
bbe04b314f Internal change
PiperOrigin-RevId: 272555953
2019-10-02 18:04:37 -07:00
Elliott Marquez
dc9fef71a9
fix changelog (#531) 2019-10-02 17:59:34 -07:00
Elliott Marquez
b06979a7b7
update changelog from internal (#529) 2019-10-02 17:54:25 -07:00
Elliott Marquez
32c99e7920 Older browser support for mwc-dialog.
Fixes Polymer/internal#335.

PiperOrigin-RevId: 272550369
2019-10-02 17:28:06 -07:00
Alexander Marks
b48c7597f2 Add period to CHANGELOG.
This is a contrived CL to force Copybara's CL sync point ahead.

PiperOrigin-RevId: 272317303
2019-10-02 16:53:23 -07:00
Elliott Marquez
ae4eb57f71
ready changelog for release (#502) 2019-09-26 18:34:02 -07:00
Elliott Marquez
ce807c35c5
Fix outlined textfield notch when initially rendered hidden (#488)
fixes #444 by providing the mwc-textfied.layout() method.

In this PR:

added layout function
notch performs layout when label is changed
fixed hidden bug where foundation was being recreated too often
caused bug where changing maxLength caused foundation to unset invalid
had to pull logic out of foundation and into registerValidationAttributeHandler
The issue: when the label is floating and the element is outlined, but the label has no width, e.g.
mwc-textfield[outlined][label="something"][value="something"][hidden]

the mdc dataflow will calculate the size of the notch as zero. When hidden is removed, the notch will not update in size. Here we give them the layout method.

It is not possible to know when the textfield is changed from display: none to visible without setting a resize observer on the label. I wanted to avoid that because of possible render trashing and the overall heaviness of resizeObserver and a polyfill. Instead, it is up to the user to call layout when they change the visibility of the element.
2019-09-26 18:20:07 -07:00
Elliott Marquez
31d1d1a406
fix disabled styles on textarea (#492)
* fix disabled on textarea

* include disabled background fix on fullwidth

* update changelog
2019-09-20 15:43:44 -07:00
Elliott Marquez
100be45fb4
fix extra spacing – older browsers (#493)
* fix extra spacing – older browsers

* fix css colors on 'required' asterisk

* update changelog
2019-09-20 15:40:26 -07:00
Elliott Marquez
29015e2db7
update textfield value on input instead of change (#490)
* update textfield value on input instead of change

* update changelog

* deleted testing code
2019-09-20 15:33:37 -07:00
Elliott Marquez
2d43e4626d
Textfield fix ie (#491)
* IE fixes for textfield

* run formatter

* update changelog
2019-09-20 13:51:01 -07:00
Elliott Marquez
2da5724c2b
mwc-dialog (#462)
* initial scaffolding for dialog

* add focus and blur functions to mwc-button

* flesh out dialog implementation

* do not display action footer if no actions slotted

* only layout on listeners if open

* run formatter

* scrollable actually is handled by adapter / found

* fix reversing of actions

* - slotchange + `hideActions`, buttons->actions

* fix slotted styles

* remove style tag mutation

* change style dependencies

* don't leak mdc in dialog actions and initial-focus atributes

* make action and focus attributes configurable

* add css custom properties to dialog

* forgot to change checkbox to dialog

* dialog was made in 2019

* button -> action and remove isVisible

* removed leaky events from dialog lifecycle

* clean up tsconfig

* add unit tests

* textfield -> dialog

* run formatter

* fix multiple dialogs

* fix scrolling

* try to make max-width better

* initial pass at making older tests pass

* escape key on document instead

* run formatter

* fix lint issues

* try more arcane keyboardevent for older browsers

* fix styling associated with multiple in sec action

* fix focus on textfield

* also fix blur on textfield

* mwc-dialog demo

* add dialog to the main demo page

* fix typo in demo

* fix style edge case max-width too small cause jump

* redo change to max-width jumping

* first half of readme

* include video tag in static urlify script

* finish readme

* regenerate package-lock

* fix readme typo

* change confirmation gif size

* cleanup extraneous readme code

* do not override mdcfoundation.open

* make stacked a css change rather than DOM

* make stacked a css change rather than DOM impl

* add color swatches to readme

* fix all test file copyright dates

* add in the styles for the list in the readme

* use formfield in confirmation example

* scrollable degification

* make styled example the same as spec page

* dedupe initial focused example readme

* small dialog readme fixes

* update initial focus readme example

* moved alert example to top and commented out Simple example

* update standard gif to be static

* move event listeners to open an close

* readme change suggestions

* HTMLSlotElement removed from public props

* make public props lit element props

* primary-action => primaryAction; d-i-f => dIF;

* implement suggestions

* run formatter

* resolve merge issues
2019-09-12 18:14:47 -07:00
Alexander Marks
01c58e7baf Import symbols from lit-element and lit-html directly. (#472)
Previously, mwc-base re-exported lit-element and lit-html. While that
approach does make it a little easier to manage dependencies, it's
better to include the dependency directly. Lerna can easily be used
install/upgrade a dependency across all or a subset of packages.

- Users are likely to copy this style. We would prefer that if they use
  lit, they directly depend on it, instead of depending on our base class
  even when they may not need it.

- It locks us into using lit in our implementation without a breaking
  change. No plans to change that, but it's just one less thing in our
  API surface.

- It works better for internal Google tooling because the lit dependency
  can be analyzed statically.
2019-09-12 17:12:49 -07:00
Elliott Marquez
85da4fa18a
Fix focus button textfield (#463)
* add focus and blur functions to mwc-button

* fix focus on textfield

* also fix blur on textfield

* run formatter

* update changelog

* lintfix

* update changelog to match older style

* make ripple a dep vs dev dep

* focus and blur buttons with or without ripple
2019-09-10 11:41:14 -07:00
Alexander Marks
296e38be9e
Bump wicg-inert version to ensure module field exists for bundling. (#464) 2019-09-10 11:39:30 -07:00
Elliott Marquez
6f841a09e8
Changes to Textfield, line-ripple, and floating-label to build (#458)
* make it build internally!

* specify foundations and expand interface

* add explainers and fix typo

* update changelog

* fix changelog typo

* make dev deps deps

* update changelog to only public

* clear up things from clog (internal not external)

* undo all changelog notes
2019-09-05 20:17:51 -07:00
Alexander Marks
92e1f75321
Prepare to release 0.8.0 (#453) 2019-09-03 16:41:30 -07:00
Alexander Marks
5b2ab08d0a
Rename 3 component "base" modules for consistency. (#440) 2019-08-29 18:00:08 -07:00
Alexander Marks
761dc62083
Import TypeScript helpers from tslib, instead of inlining. (#439)
Published JavaScript files no longer include inlined TypeScript helpers such as `__decorate`. Instead, helpers are now imported from the `tslib` module dependency. This reduces code size by allowing multiple components to share the same helpers, and eliminates "this has been rewritten to undefined" errors from Rollup.
2019-08-28 11:47:31 -07:00
Elliott Marquez
4818641d09 added PR to changelog 2019-08-27 19:43:48 -07:00
Elliott Marquez
bda16062c4 update changelog for release 2019-08-27 19:43:48 -07:00
Alexander Marks
d6b4da7274 Update CHANGELOG for 0.7.0 2019-08-27 14:19:20 -07:00
Alexander Marks
45e107fbc3
Organize CHANGELOG for upcoming release. (#425)
- Organized items into Added/Changed/Fixed sections.
- Added **BREAKING** labels.
- Removed items that are only relevant for internal development. I think we should only include things directly relevant to users.
- Mentioned the new READMEs.
- Re-phrased some items for clarity.
- Added PR numbers so users can get more info.
2019-08-26 21:02:01 -07:00
Daniel Freedman
e1ec538f1b
Fix top-app-bar title centering for multiple action icons (#424)
This should be the original behavior before removal
2019-08-26 18:02:53 -07:00
Daniel Freedman
30e4a35b0a
Remove short Top App Bar variant (#422)
* Remove short Top App Bar variant

Design guidance from Material is that the short top app bar is not an
officially supported component.

In the case that this is reconsidered, the removal can be reverted.

* remove demos as well

* remove short from other top app bar readmes
2019-08-26 17:00:41 -07:00
Alexander Marks
aa060417c0
Fix bug where mwc-snackbar labelText could not be set (#412)
This adds a lit directive implementation of @material/mdc-snackbar/util.ts#announce, which does some tricks to ensure that snackbar labels will be handled correctly by screen readers.

The existing MDC announce util function is difficult to use directly here, because Lit can crash when DOM that it is managing changes outside of its purvue. In this case, we would render our labelText as the text content of the label div, but the MDC announce function then clears that
text content, and resets it after a timeout. We do the same thing here, but in a way that fits into Lit's lifecycle.
2019-08-26 15:48:56 -07:00
Elliott Marquez
fa1db3ac5b update changelog 2019-08-23 17:23:16 -07:00
Elliott Marquez
216a098c75 more pdates to changelog! 2019-08-23 17:23:16 -07:00
Elliott Marquez
3fe99dc4bd make fixture await render if contents are attached 2019-08-23 17:23:16 -07:00
Daniel Freedman
985ed42f2e Re-implement centerTitle for MWC Top App Bar
- Updated CHANGELOG
- Added screenshots
- Fixed `<mwc-top-app-bar centerTitlie dense prominent>` styling
2019-08-23 15:11:45 -07:00
Elliott Marquez
1f205edf05 update changelog 2019-08-16 18:49:40 -07:00
Elliott Marquez
c5058a66fa update changelog 2019-08-16 18:49:40 -07:00
Alexander Marks
352079f11e
Bump inert polyfill to fix drawer IE bug (#378) 2019-08-16 16:10:22 -07:00
Alexander Marks
dbb4fcf334 Fix broken checked property in <mwc-radio>
Previously, we didn't trigger the SelectionController (the class that
synchronizes radio button groups separated by a shadow root) when the
checked property was set, so the previously checked radio in a group was
not unchecked when a new one was checked.

This was more complicated than just triggering it from the existing
property @observer, because that gives us batched async changes (via the
UpdatingElement updated callback), so we can't reconstruct the order of
checked sets correctly. Replaces the observer with a setter that can
handle this synchronously.
2019-08-15 13:46:24 -07:00
Daniel Freedman
c580ebe19a Split icon button toggling into its own component
- This makes the non-togging case more lightweight
- `<mwc-icon-button>` for non-toggling use cases remains the same
- For toggling, use `<mwc-icon-button-toggle>`
  - `icon` is now `onIcon`

Related to #348
2019-08-15 11:35:22 -07:00
Daniel Freedman
b6cf725d60 Remove as any usage with @customElement
Unnecessary as of lit-element v0.6.5

Fixes #114
2019-08-13 16:01:21 -07:00
Daniel Freedman
e75002b98b Remove CHANGELOGS from subpackages
Only need the master CHANGELOG in the repo

Add note to CHANGELOG

Add section about the changelog to CONTRIBUTING
2019-08-13 15:38:26 -07:00
Daniel Freedman
b38f3813d6 Break out build from bootstrap
Run format in CI
2019-08-12 16:12:50 -07:00
Daniel Freedman
45e11481c9 Add lit-analyzer to linting
- Set up linting in Travis as well
2019-08-12 15:56:11 -07:00
Daniel Freedman
452f17cc1d
Merge branch 'master' into icon-button-slots 2019-08-12 15:21:29 -07:00
Daniel Freedman
17f36a8168 Fix tests for SVG and Image support
- Add tests with SVG, fix test checks for refactoring
- Add svg and image examples in demo
2019-08-12 12:32:33 -07:00
Alexander Marks
89b3707d2c Allow <mwc-button> open method to be called before firstUpdated. 2019-08-09 09:48:13 -07:00
Alexander Marks
d1267504e7 Fix <mwc-snackbar> default action/dismiss button styles.
Adds rules which apply the correct default color and icon size to
<mwc-button> and <mwc-icon-button> in the "action" and "dismiss" slots.

Adds --mdc-snackbar-action-color to override the default color of the
action button text.
2019-08-08 20:03:30 -07:00
Alexander Marks
dad4d1456f Fix IE11 icon rendering in <mwc-icon>
IE11 requires font-feature-settings: 'liga' to be turned on to render
ligatures.

I also synchronized this styling generally to exactly match the
recommendations at
https://google.github.io/material-design-icons/#icon-images-for-the-web
2019-08-07 17:32:21 -07:00
Alexander Marks
a07a39112f Fix <mwc-tab-bar> layout issue in Firefox. 2019-08-06 16:55:14 -07:00
Alexander Marks
446695725d CHANGELOG entry for removed auto icon font loading 2019-07-29 11:34:07 -07:00
Daniel Freedman
8c40e065ff update changelog 2019-06-05 15:19:28 -07:00
Daniel Freedman
8081e10d42 update changelog for drawer dependencies 2019-06-04 17:37:46 -07:00
Daniel Freedman
952097e948 Clean up project
- Remove draft versions of components that were not written in
typescript
- Remove draft base classes from mwc-base
- Fix typing in adapter event listeners for typescript update
2019-06-03 15:28:32 -07:00
Daniel Freedman
a1cc4bf4c5 Update dependencies
- Fix typescript building with 3.4
- Upgrade lerna to 3.x
2019-04-04 15:36:55 -07:00
Daniel Freedman
dafca12c59 [ci skip] update CHANGELOG.md 2019-03-26 15:38:15 -07:00
Daniel Freedman
b305546467 Merge branch 'master' into icon-button 2018-10-16 16:05:01 -07:00
Daniel Freedman
935f4dc1a0 Implement icon-button in typescript
- icon-toggle is now icon-button, matching MDC
- If `offLabel` is not defined, button is always "on" and does not
toggle

Fixes #95
2018-10-10 16:45:41 -07:00
Daniel Freedman
8fd896724f update CHANGELOG 2018-10-10 12:19:39 -07:00
Daniel Freedman
09dab52553 Prepare 0.3.1 2018-10-08 12:19:17 -07:00
Steven Orvell
286d4733ce [first commit] lots of wip elements
These are WIP. Some known issues:
* select, chips, and textfield ripple not working
* many tests to be added
* some elements tbd, including e.g. top-app-bar and drawer
2018-04-25 19:20:55 -07:00