From af4ea8e0c257ed194e57da0ecb9595405dde14cd Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Tue, 8 Oct 2019 13:54:28 -0700 Subject: [PATCH] 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. --- CHANGELOG.md | 18 ++++++++++++++++-- demos/button.html | 2 ++ demos/checkbox.html | 2 ++ demos/chips.html | 2 ++ demos/demo-component.css | 2 -- demos/dialog.html | 2 ++ demos/drawer.html | 2 ++ demos/drawer/dismissible.html | 4 +++- demos/drawer/modal.html | 4 +++- demos/drawer/standard.html | 4 +++- demos/fab.html | 2 ++ demos/formfield.html | 3 ++- demos/icon-button-toggle.html | 2 ++ demos/icon-button.html | 2 ++ demos/icon.html | 2 ++ demos/index.html | 4 ++-- demos/linear-progress.html | 2 ++ demos/menu.html | 2 ++ demos/radio.html | 2 ++ demos/ripple.html | 2 ++ demos/select.html | 2 ++ demos/slider.html | 2 ++ demos/snackbar.html | 2 ++ demos/switch.html | 2 ++ demos/tabs.html | 2 ++ demos/tabs/rtl.html | 2 ++ demos/textarea.html | 3 ++- demos/textfield.html | 3 ++- demos/top-app-bar-fixed.html | 4 +++- demos/top-app-bar.html | 2 ++ demos/top-app-bars/fixed.html | 4 +++- demos/top-app-bars/standard.html | 4 +++- demos/top-app-bars/styling.css | 4 +--- packages/icon/src/mwc-icon-font.ts | 23 ----------------------- 34 files changed, 83 insertions(+), 41 deletions(-) delete mode 100644 packages/icon/src/mwc-icon-font.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 691fc19be..cc25ac6f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +### Changed + +- **BREAKING** Removed `mwc-icon-font.js` import. Most users should load the + Material Icons and Roboto fonts by adding the following to their HTML file: + + ```html + + + ``` + + See the [Fonts](https://github.com/material-components/material-components-web-components#fonts) + section of the README for more details. + ### Fixed - Fixed `mwc-dialog`'s issues with working on older browsers. @@ -112,10 +125,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ([#314](https://github.com/material-components/material-components-web-components/pull/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: + should now add tags like this to their HTML page: ```html - + + ``` - **BREAKING** The *toggling* behavior of `` has been removed diff --git a/demos/button.html b/demos/button.html index 0be6f109c..19deafca0 100644 --- a/demos/button.html +++ b/demos/button.html @@ -23,6 +23,8 @@ limitations under the License. + +