diff --git a/src/components.d.ts b/src/components.d.ts index f6760f4a..c0cc0080 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -47,6 +47,11 @@ export namespace Components { * Specifies which icon to use from the built-in set of icons. */ "name"?: string; + /** + * When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any ` \ No newline at end of file diff --git a/src/components/test/sanitize.svg b/src/components/test/sanitize.svg new file mode 100644 index 00000000..fd3acad8 --- /dev/null +++ b/src/components/test/sanitize.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/index.html b/src/index.html index 926a455b..93d55537 100644 --- a/src/index.html +++ b/src/index.html @@ -1,157 +1,161 @@ + + + + Ionicons Icon Component + + + - - - - Ionicons Icon Component - - - + +

Ionicons

- +

Default

+ + + + + + + + + -

Ionicons

+

Mode from html ios mode attribute

+ + -

Default

- - - - - - - - - +

Mode set on icon

+ + -

Mode from html ios mode attribute

- - +

Colors

+ + + + + + + + + -

Mode set on icon

- - +

Stroke width

+ -

Colors

- - - - - - - - - +

Font size

+ + -

Stroke width

- +

Custom SVGs

+ + + + + + + + + -

Font size

- - +

Custom SVGs: colors

+ + + + + + + + + -

Custom SVGs

- - - - - - - - - +

Custom CSS

+ + + + + + + + + -

Custom SVGs: colors

- - - - - - - - - +

Aria

+ + + -

Custom CSS

- - - - - - - - - +

RTL

-

Aria

- - - +

Default: Non-arrows

+ + + + -

RTL

+

Flip: Non-arrows

+ + + + -

Default: Non-arrows

- - - - +

Auto Flip: arrows

+ + + + -

Flip: Non-arrows

- - - - +

Un-flip: arrows

+ + + + -

Auto Flip: arrows

- - - - +

Auto Flip: chevrons

+ + + + -

Un-flip: arrows

- - - - +

Un-flip: chevrons

+ + + + -

Auto Flip: chevrons

- - - - +

Sanitized (shouldn't show)

+ -

Un-flip: chevrons

- - - - +

Not Sanitized (should show)

+ -

- Cheatsheet -

+

+ Cheatsheet +

- - + .custom { + stroke: red; + fill: blue; + } + +