Releases: material-components/material-web
v0.8.0
Changed
-
Published JavaScript files no longer include inlined TypeScript helpers such as
__decorate. Instead, helpers are now imported from thetslibmodule 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. (#439) -
BREAKING Renamed component
basemodules: (#440):icon-button-toggle-base.ts→mwc-icon-button-toggle-base.tsicon-button-base.ts→mwc-icon-button-base.tstop-app-bar-fixed-base.ts→mwc-top-app-bar-fixed-base.ts
V0.7.1
v0.7.0
Added
-
New components:
-
Added support for
<svg>and<img>icons to<mwc-icon-button>and<mwc-icon-button-toggle>. (#358) -
Added
--mdc-snackbar-action-colorCSS custom property to<mwc-snackbar>to override the default action button color (#354). -
Added a default slot to
<mwc-top-app-bar>and<mwc-top-app-bar-fixed>which takes page content and automatically applies the correctpadding-top(#370). -
Added documentation for:
Changed
-
BREAKING The Material Icons font is no longer loaded automatically (#314). This allows more control over how fonts are loaded (e.g. serving fonts from a different server, or loading multiple fonts with a single request). Most users should now add a tag like this to their HTML page:
<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">
-
BREAKING The toggling behavior of
<mwc-icon-button>has been removed (i.e.offIcon), and is now instead supported by the dedicated<mwc-icon-button-toggle>
component (#370). -
BREAKING The short layout for
<mwc-top-app-bar>has been removed, and is no longer supported because it is not part of the Material Design specification (#422). -
BREAKING The fixed layout for
<mwc-top-app-bar>has been removed, and is now instead implemented by the dedicated<mwc-top-app-bar-fixed>component (#379).
Fixed
- Fixed bug where
<mwc-snackbar>openmethod threw if called immediately after construction (beforefirstUpdated) (#356). - Fixed bug where setting the
<mwc-snackbar>labelTextproperty could throw an exception and fail to render (#412). - Buttons slotted into
<mwc-snackbar>now render with the correct default styles (#354). - Fixed layout issue affecting scrolling
<mwc-tab-bar>in Firefox (#349). - Fixed bug where
<mwc-icon>icons did not render in IE11 (#353). - Fixed bug where setting the
checkedproperty on an<mwc-radio>did not result in the other radios in the group becoming unchecked (#373). - Fixed bug where
<mwc-drawer>did not work in IE (WICG/inert#129). - Fixed
denseandprominentstyling bugs in<mwc-top-app-bar>(#379).