From 6cb12f94bb23b98e9fc9c593c27f20b2781810a5 Mon Sep 17 00:00:00 2001 From: Sombriks Date: Thu, 12 Jan 2017 09:55:39 -0300 Subject: [PATCH] add support for icons without ligatures (#330) * ignoring a thing * md-iconset had to become a boolean prop because :class=[themeClass, iconset] have aonther behavior, as can be seen in https://vuejs.org/v2/guide/class-and-style.html#ad * icon font support proposal * support for icon fonts without ligatures * change iconset example --- .gitignore | 1 + docs/src/pages/components/Icon.vue | 41 +++++++++++++++++++++++++++++- src/components/mdIcon/mdIcon.vue | 8 ++++-- 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 153216e..9a6a2a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules/ npm-debug.log +nbproject diff --git a/docs/src/pages/components/Icon.vue b/docs/src/pages/components/Icon.vue index 7ac2c88..b2a28dc 100644 --- a/docs/src/pages/components/Icon.vue +++ b/docs/src/pages/components/Icon.vue @@ -5,7 +5,7 @@

A system icon, or UI icon, symbolizes a command, file, device, or directory. System icons are also used to represent common actions like trash, print, and save.

You can see the full list of icons on the Material Icons website. Replace the spaces in the icon name by underscores (for example, arrow back becomes arrow_back).

Alternatively you can use your PNG or SVG icons using the md-src property.

- +

The use of font icons without ligatures are suported too, although this approach lacks accessibility support.

The following classes can be applied to change the color palette: