remove <icon forward></icon>

This commit is contained in:
Adam Bradley
2015-09-18 15:55:18 -05:00
parent 4a58321beb
commit 00ebfaebfc
15 changed files with 39 additions and 51 deletions

View File

@@ -1,4 +1,8 @@
// Icon
// --------------------------------------------------
icon {
display: inline-block;
font-size: 1.2em;

View File

@@ -53,10 +53,7 @@ export class Icon {
onInit() {
let ele = this.eleRef.nativeElement;
if (ele.hasAttribute('forward')) {
this.name = this.config.setting('forwardIcon');
} else if (this.mode == 'ios' && this.ios) {
if (this.mode == 'ios' && this.ios) {
this.name = this.ios;
} else if (this.mode == 'md' && this.md) {

View File

@@ -0,0 +1,12 @@
// iOS Icon
// --------------------------------------------------
$icon-forward-ios-background-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M2,20l-2-2l8-8L0,2l2-2l10,10L2,20z' fill='fg-color'/></svg>" !default;
@mixin ios-icon-forward($fg-color) {
$svg: str-replace($icon-forward-ios-background-svg, 'fg-color', $fg-color);
@include svg-background-image($svg);
}

View File

@@ -77,11 +77,10 @@
</code>
</ion-item>
<ion-item>
<ion-item forward-icon>
<code>
&lt;icon forward>&lt;/icon>
ion-item w/ [forward-icon] attr. text text text text text text
</code>
<icon forward item-right></icon>
</ion-item>
</ion-list>