-
Notifications
You must be signed in to change notification settings - Fork 3.4k
mdIcon: Icons based on SVG, font-faces, and CSS #1042
Comments
Aria ConsiderationsIf no label is required on For example:
This fails for accessibility because If we enforce
|
@ThomasBurleson will this depend on angular-material-icons? |
Actually i use the directive md-icon like this :
how can set a different color or size in md-icon ? |
Should we leave SVG out of @font-face resources? @robertmesserle mentioned using it for anti-aliasing in Chrome/IE, but it is being deprecated in Chrome (and possibly Firefox). https://groups.google.com/forum/#!topic/icomoon/ttjKOE7fEv8 Inline SVG is good as long as we expose alternate text. |
Also, http://materialdesignicons.com/ - cool icons drawn by the community. |
There are a few material design icons that will not convert well to fonts: the editor color selection icons and the device wifi/signal/battery icons. Will these be supported in some way? |
i would like to know how to incorporate fontawesome icons into md-icon. |
Using FontAwesome with |
great. |
What is the right way for using material icons (as shown on Google Material Design Icons in a md-button ? |
Hey, I know this issue is closed but I still don't get how I can use the Material Icons (http://google.github.io/material-design-icons/) with the directive in a seamless way. I think I still need some CSS individual classes to use md-font-icon right? |
btw, I create my own approach: CSS.menu:after { content: "\E5D2" } HTML< md-icon md-font-icon="menu" >< /md-icon > so I define the icons I'll be using but probably I working double, maybe there is a better way, but I didn't find it cause I don't wanna use the svg, just the web font. |
@edaquinta plz open a new issue. |
- update StackBlitz for v13-next - update firebase-tools - fix dependabot issues - update to `marky@1.2.2` to support NodeJS 16.x Closes angular#1038. Closes angular#1040. Closes angular#1042.
A suite of icons should be support within Angular Material. Many components (BottomSheet, Lists, Cards, Chips, FABs, etc.) will use
md-icon
as a child element.Icon Types
While Material Design icons come with SVG and CSS sprites for various resolutions, the full set of icons is enumerated below:
A live preview of all icons in the Material-Icons repository is shown here: Live Preview
Visual requirements:
- Font-icons only - class name used to specify desired icon; e.g. `` - Hover effects to animate, colorize, etc. - Media support for responsive changes - Support for Dark themesFunctional requirements:
- Ability to use remote SVG, PNG, or JPEG resources - Ability to use embedded (aka inlined) resourcesQuestions:
- How can developers easily select a subset of icons for their needs? - How can developers easily embedded their own SVGs ? - Can we provide a template and a batch gulp tool to easily embedded a first-pass rendition of 1..n remote SVGs ? - How will the icons be deployed as part of Angular Material releases ? - Will Theming impact icon choices (colors) ? ### Additional Resources - [FlatIcon](http://www.flaticon.com/packs/material-design) - [SVG Animations and CSS Transforms](http://css-tricks.com/svg-animation-on-css-transforms/) - http://www.filamentgroup.com/lab/bulletproof_icon_fonts.html - http://www.sitepoint.com/tips-accessible-svg/ ### Version 2 Wishlist - SVG support for colors and animations - Multi-state icons may be needed where each state is represented by animated SVGs - See [FAB with Progress Indicators](http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B0NGgBg38lWWbTlSaHdQZEMtalk/components-progressactivity-typesofindicators-061101_Circular_Aspirational_xhdpi_002.webm) - State features are not for user-interactions but rather for icon animations. - More information is needed about transitions between animation states of icons - State support; where each state display an icon visualization. State changes update visuals. - This would be very powerful...Here is a sample of states with
md-icon
Design Doc
A Google design document will be prepared to present issues, constraints, solutions, and impacts.
The text was updated successfully, but these errors were encountered: