PolymerElements / iron-iconset-svg

Represents a source of icons expressed as a collection of inline SVGs
https://www.webcomponents.org/element/PolymerElements/iron-iconset-svg
37 stars 34 forks source link

Support icon mirroring in RTL contexts. #54

Closed cdata closed 7 years ago

cdata commented 7 years ago

This change adds the ability to mark an iron-iconset-svg as rtl-mirroring. This means that when the iconset stamps its icons, it will check for a special attribute in each source icon (mirror-in-rtl). If such an attribute is present, it will then mirror the icon across the Y axis.

The rationale for two tiers of configuration to make this happen is that A) it will help ensure no-one has a regression due to this change and B) it will help keep the performance impact of measuring the direction of an icon's target parent down.

There is a companion PR that must be merged against iron-icon to support this new behavior here: https://github.com/PolymerElements/iron-icon/pull/82

Fixes #53

cdata commented 7 years ago

Manually verified in IE10 and Safari 7.