Releases: material-components/material-web
Releases · material-components/material-web
v0.15.0
Added
- Added --mdc-menu-z-index to menu-surface
- Added surface/on-surface theme properties for mwc-switch
- Added overrides for ripple focus and hover opacities
--mdc-ripple-focus-opacityand--mdc-ripple-hover-opacityrespectively
- Added
spaceBetweento mwc-formfield - Added
activatedandselectedstates for ripple - Added documentation for ripple
- Prefix and suffix to mwc-textfield
mwc-formfieldnow has a nowrap property- mdc-button now has --mdc-shape-small for border radii
- Added
sizeproperty tomwc-textfield mwc-fabnow has a slot of icons- Added
fullwidthproperty tomwc-select. - Added
minLengthtomwc-textfield
Changed
- Refactor
mwc-checkbox- Remove usage of
MDCCheckboxFoundation - Replace
ripple-directivewith lazymwc-ripple
- Remove usage of
- Refactor
mwc-button- Replace
ripple-directivewith lazymwc-ripple
- Replace
- Refactor
mwc-ripple- Normalized API to
start${state}end${state}naming
- Normalized API to
- BREAKING:VISUAL: mwc-list-item now internally uses mwc-ripple instead of styling ripple on host
mwc-menu'squickvariant now opens synchronously- Convert to Sass modules
- BREAKING removed textfield's character counter foundation directive
- Refactor
mwc-select- BREAKING:VISUAL internal structure of select anchor updated.
- BREAKING
naturalWidthproperty renamed tonaturalMenuWidthfor clarity. - BREAKING:
--mdc-select-dropdown-icon-opacityand--mdc-select-disabled-dropdown-icon-opacityremoved; opacity is now expressed in alpha channel of color. - BREAKING:VISUAL: Dropdown arrow icon motion updated.
- BREAKING remove
helperPersistentproperty; helper text now persistent by default if included.
- Refactor snackbar to conform to other elements'
.open.show().close()APIs- BREAKING mwc-snackbar
isOpenproperty is now calledopen - BREAKING mwc-snackbar
open()method is now calledshow() - BREAKING mwc-snackbar's isOpen -> open property is now editable
- BREAKING mwc-snackbar
- Removed default slot from switch
- mwc-select's button role changed to combobox
Fixed
- Fix property renaming issues with Closure Compiler
- Use
RippleAPIinterface betweenRippleHandlersandmwc-ripple - Use
RippleInterfaceinterface forripple-directive
- Use
- Fix regression in textfield line color custom properties
- Fix infinite loop bug in
mwc-tab-barwhenactiveIndexis set in first render - Fixed bug in
mwc-sliderwhere initializing min and max over100would not set correct bounds on UI. - Fixed
"showing up in mwc-button when the ripple activates - Changing an invalid textfield's validation properties to valid values will update styles automatically
v0.14.1
v0.14.0
Added
inputModetomwc-textfieldandmwc-textareareadOnlytomwc-textfieldandmwc-textarea- CSS custom properties for typography
- Added
autoValidateproperty on textfield mwc-buttonnow has a slot foriconandtrailingIcon- BREAKING setting
mwc-list-item.selectedwill update selection in the parent list mwc-ripplenow has CSS properties--mdc-ripple-color,--mdc-ripple-fg-opacity, and--mdc-ripple-hover-opacity- Added
RippleHandlerstomwc-rippleto provide an easy integration point for calling ripple API. - Added
lightproperty tomwc-rippleto help style ripples on dark surfaces. mwc-selectcan now select items by settingmwc-select.value.- Exposed --mdc-shape-medium on mwc-menu-surface
- Added
focusOnActivateproperty tomwc-tabtrueby default, set tofalseto disable focusing on tab activation
- mwc-select now has --mdc-select-disabled-dropdown-icon-color
Changed
- BREAKING
--mdc-button-text-transformhas been renamed to--mdc-typography-button-text-transform - BREAKING
--mdc-button-letter-spacinghas been renamed to--mdc-typography-button-letter-spacing - BREAKING
--mdc-tab-text-transformhas been renamed to--mdc-typography-button-text-transform - BREAKING:VISUAL textfield will now only validate on blur instead of input without
autoValidateprop - BREAKING:VISUAL
mwc-tab's default slot now has nameicon mdcFoundationandmdcFoundationClassare now optional in BaseElement.- Remove
export *from BaseElement and FormElement. - BREAKING:A11Y mwc-list will no longer update items on slotchange but on first render and on list item connect meaning list dividers will only add role="separator" in those cases
- Make FormElement and
mwc-formfieldsupport asynchronous ripple properties - BREAKING Remove
activeproperty frommwc-ripple.- Use
activate()anddeactivate()methods instead
- Use
- BREAKING
mwc-ripplenow requires implementing event handlers manually in the parent component. - BREAKING Components must now import
@observermanually from@material/mwc-base/observer;
Fixed
- Setting
scrollTargetonmwc-top-app-barwill update listeners - Fixed sass imports of
_index.scssfiles - Fixed issue with caret jumping to end of input on textfield
- mwc-list-item now works on IE
- mwc-select's
updateCompletewill now properly await child custom elements'updateCompletes - BREAKING Disabled icon buttons no longer have pointer events
mwc-textfieldwill not setvalueon the internal input tag oninputevent causing caret jumping in Safarimwc-select's--mdc-select-ink-coloractually does something now- Setting
disabledonmwc-ripplewill hide the ripple - mwc-menu's x and y anchor margins now work for all corners
- mwc-select's --mdc-select-disabled-ink-color now colors the selected text
- inconsistencies on how
<contol>-list-items' state of controls and element listsets initialtabindexwhen initialized withnoninteractiveand then set to false
v0.13.0
[0.13.0] - 2019-02-03
Added
- End-alignment to
mwc-textfieldandmwc-textarea - Implemented:
mwc-selectmwc-menumwc-menu-surfacemwc-listmwc-list-item
- Base / utils.ts
isNodeElement- performant node -> element checkingdeepActiveElementPath- finds the deepestactiveElementnodedoesElementContainFocus- determines is ancestor ofactiveElement
mwc-radio.global- groups radios across document rather than shadow root- Style underline of filled textfield
--mdc-text-field-idle-line-color--mdc-text-field-hover-line-color
Fixed
- Fixed mwc-dialog not removing keydown event listener on close.
v0.12.0
[0.12.0] - 2019-12-16
Changed
- BREAKING:VISUAL Wrap mwc-button label in a slot
- Remove mwc-button border-radius from ripple
- Make mwc-button internal button overflow none
Added
- Added custom properties to style
mwc-radio's colors - CSS styling options to
mwc-tab activeattribute tomwc-tabwhen (de)activated- Added custom properties to style
mwc-checkbox's colors - Added
showandclosemethods tomwc-dialog
Fixed
- BREAKING:VISUAL
mwc-tabwill now automatically size slotted images. Also
slotted image will override icon font.
Changed
- BREAKING
mwc-tabcan now only have slotted content via the
hasImageIconflag. - BREAKING:VISUAL
mwc-checkboxdefault display is changed from inline to inline-block.
v0.11.1
v0.11.0
Added
- CSS styling options to
mwc-button - CSS styling options to
mwc-textfield - README for
mwc-drawer - README for
mwc-checkbox - README for
mwc-formfield - Demo for
mwc-drawerwithout a header in the drawer --mdc-icon-button-sizeand--mdc-icon-sizetomwc-icon-button
Changed
- BREAKING
Dialog.titlerenamed toDialog.headingand
--mdc-dialog-title-ink-colorrenamed to--mdc-dialog-heading-ink-coloras
it caused clashes withHTMLElement.prototype.title. - Updated material dependencies to
4.0.0-canary.735147131.0. - BREAKING
Slider.discreteremoved andSlider.pinadded. mwc-dialogwill now search its flattened distributed nodes and their trees
for a focusable element.- BREAKING
mwc-slidernow emits bubbling and composedinputandchange
events instead ofMDCSlider:inputandMDCSlider:change. - BREAKING:VISUAL the digits inside the
Slider's pin will be rounded to at
most 3 decimal digits. - BREAKING
LinearProgress.determinate = falseremoved in favor ofLinearProgres.indeterminate = false. - BREAKING
LinearProgress.buffer = 0default value changed to1. - BREAKING:VISUAL
mwc-linear-progresshad--mdc-theme-secondaryapplied
to its buffer bar's background color. This custom property's name was changed
to--mdc-linear-progress-buffer-color. - BREAKING:VISUAL the digits inside the
Slider's pin will be rounded to at
most 3 decimal digits. - BREAKING
LinearProgress.determinate = falseremoved in favor ofLinearProgres.indeterminate = false. - BREAKING
LinearProgress.buffer = 0default value changed to1. - BREAKING:VISUAL
mwc-linear-progresshad--mdc-theme-secondaryapplied
to its buffer bar's background color. This custom property's name was changed
to--mdc-linear-progress-buffer-color. - BREAKING
mwc-icon-buttonwill now use its default slot for<img>or
<svg>icons instead of a named "icon" slot.
Fixed
- Fixed checkbox ripple visibility when focused while being unchecked.
- Fixed app content not being expanded inside drawer.
- Fixed issue where slider when resized or scrolled will not respond to touch
as expected. - Fixed issue where
mwc-ripplewould not ripple when parent was a shadow root - BREAKING:VISUAL Fixed sizing of the
mwc-icon-buttoninmwc-snackbar - Fixed
mwc-icon-buttonicon at end layout. mwc-slidercan now have its pin and markers added and changed
dynamically.- Fixed
mwc-icon-buttonicon at end layout. mwc-slidercan now have its pin and markers added and changed
dynamically.- Fixed
mwc-dialograce-condition bug with the blocking elements polyfill that
could occur if the dialog was disconnected before it had finished opening. - Fixed
mwc-buttonalignment issues when some buttons have icons and others do not.
v0.10.0
Added
mwc-textfieldink and fill css variables
Changed
-
BREAKING Removed
mwc-icon-font.jsimport. Most users should load the Material Icons and Roboto fonts by adding the following to their HTML file:<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
See the Fonts section of the README for more details.
-
BREAKING Moved
@material/mwc-textfield/character-counter/mwc-character-counter-directive.jsto@material/mwc-textfield/mwc-character-counter-directive.js.
Fixed
- Fixed
mwc-dialog's issues with working on older browsers. <mwc-radio>groups are now correctly synchronized when stamped using a lit-htmlmaporrepeat, and any other time the radio is not created and connected at the same time (#282).
v0.9.1
v0.9.0
Added
- Implemented
mwc-dialog mwc-textfield.layoutmethod.
Changed
- BREAKING: Added custom
.focus()and.blur()functions to mwc-button
that cause the button to ripple as when tab focusing. - BREAKING: mwc-textfield's custom
.focus()function will now call
.focus()on the native internal input causing the caret to appear instead of
just forcing focus styles to appear. - BREAKING: mwc-textfield's custom
.blur()function will now call
.blur()on the native internal input instead of just forcing focus styles to
disapprear. - BREAKING
mwc-base/base-elementno longer exports any of the
lit-elementorlit-htmlAPIs (e.g.LitElement,customElement,
classMap). Users should import directly from thelit-elementand
lit-htmlmodules instead. - BREAKING
mwc-textfieldandmwc-textareawill now update their.value
on the nativeinput'sinputevent instead ofchange.
Fixed
<mwc-drawer>can now be used with Rollup (via version bump to pick up
WICG/inert#135).<mwc-textfield>and<mwc-textarea>will now have the same height between
their filled and outlined variants with helper text on older browsers.mwc-textfield[required]andmwc-textarea[required]will now have their
required asterisk colored correctly when customized.<mwc-textfield>and<mwc-textarea>can now have basic usability in IE.mwc-textarea[disabled][outlined]will no longer have a filled-in background
as is per material spec.mwc-textarea[disabled]label="string!"][value="string!"]will now float the
label to the correct spot.