Commit Graph
91 Commits
Author SHA1 Message Date
MasonVXandNico Tasche 077168dac9 fix(icon): icon names with numbers are correctly converted to kebab case (#1339)
resolves #1338

---------

Co-authored-by: Nico Tasche <nico.tasche@siemens.com>
2024-03-13 17:55:43 -04:00
Liam DeBeasi c7f561ce41 test: refactor to use toHaveScreenshot (#1314) 2023-12-14 12:52:50 -08:00
Liam DeBeasi d582e6208e fix(icon): add better warning when loading icons (#1297) 2023-11-06 16:28:38 -05:00
Sean Perkins 875bfd8300 fix(icon): font scales without host style (#1289) 2023-10-10 13:06:38 -04:00
Liam DeBeasi 8297018cb5 fix(icon): mapping same icon does not warn (#1279) 2023-09-13 09:26:56 -04:00
Maria Hutt 7f7f346af4 fix(icon): verify the icon loads in the lifecycle (#1278)
Co-authored-by: sean-perkins <13732623+sean-perkins@users.noreply.github.com
>
2023-09-12 11:50:52 -07:00
Liam DeBeasi 1e33313473 feat: allow passing in only icon SVG data to addIcons (#1256) 2023-08-22 09:46:13 -04:00
Sean Perkins 45c04dda6c feat(icon): support for dynamic type (#1246) 2023-08-09 10:57:03 -04:00
Liam DeBeasi 06fa4a528d fix(icon): add :dir fallback (#1223) 2023-05-30 15:17:36 -04:00
Shawn Taylorandionitron e70bf214b8 fix(icon): respond to changes of document dir (#1210)
* fix(icon): respond to changes of document dir

* Add snapshot for rtl

* Remove unused function

* Add tests

* CSS-only solution

* chore(): add updated snapshots

---------

Co-authored-by: ionitron <hi@ionicframework.com>
2023-05-19 10:17:26 -04:00
Liam DeBeasi c290bea476 chore(): sync with main 2023-03-07 08:42:57 -05:00
Sean Perkins 8c412f6748 fix: DomParser usage in SSR (#1180)
Resolves #1179
2023-02-09 12:30:17 -05:00
Sean Perkins 72f09369de fix(icon): load base64 data urls (#1172) 2023-02-07 16:37:42 -05:00
Liam DeBeasi 65bcbb4777 fix(icon): md and ios properties are reactive (#1174)
resolves #802
2023-02-03 09:19:32 -05:00
Amanda Johnston 98975ec0f5 fix(icon): remove auto-generated aria-label (#1170) 2023-01-20 10:18:28 -06:00
Sean Perkins 66858926cc fix(icon): icons will load when content security policies are enabled (#1141) 2022-11-08 13:45:01 -05:00
Amanda Johnston c37b691dd5 fix(): flip-rtl works if dir="rtl" is set on icon directly (#1142) 2022-11-08 10:11:26 -06:00
Liam DeBeasi 36992fc01b chore(ci): e2e tests are run on CI (#1126) 2022-10-14 13:50:00 -04:00
Liam DeBeasi fd90487afc test(icon): add playwright (#1124) 2022-09-30 16:36:12 -04:00
Liam DeBeasi 06b9b1fc59 chore(typescript): resolve errors (#1122) 2022-09-30 16:03:11 -04:00
Marco D'Auria 8d898d7170 fix(icon): sanitizer checks attribute name instead of value (#1087)
resolves #1088
2022-08-26 09:10:58 -04:00
Liam DeBeasi 1038a7f682 fix(icon): avoid type collisions with ariaLabel and ariaHidden (#1014) 2021-11-08 16:26:01 -05:00
Damian Tarnawsky e63653cbe1 fix(): reflect name property as attribute (#981)
resolves #975
2021-08-03 09:13:45 -04:00
Liam DeBeasi c76f2a2556 fix(): adding aria-hidden no longer disables automatic rtl switching (#954) 2021-03-22 14:09:03 -04:00
Adam Bradley 66556ea45c feat(custom-elements): export ionicons/components
Also provide ionicons as a custom element which can be defined using `customElements.define()`

```
import { IonIcon } from "ionicons/components/ion-icon";
customElements.define("ion-icon", IonIcon);
```

The custom element build works the same as the lazy load build, and is also able to lazy load svgs on demand, either by giving it an exact url in the `src` attribute `<ion-icon src="./path/to/airplane.svg"></ion-icon>`, or by providing the name of the ionicon to load `<ion-icon name="airplane"></ion-icon>`.

If using the `name` attribute, you'll also need to set where to find the svg directory using `setAssetPath()`

```
import { setAssetPath } from "ionicons/components";
setAssetPath(location.href);
```
2021-02-01 15:28:33 -06:00
Adam Bradley b73bb075fd update property docs 2020-10-07 14:24:56 -05:00
Adam Bradley eca4c14f05 feat(sanitize): opt-out of sanitizing http fetch svg content 2020-10-07 09:03:20 -05:00
David Dal Busco 502d1f7077 fix: ariaHidden documentation source (#871) 2020-08-18 11:27:04 -05:00
David Dal Busco 01b0de6e80 feat: supports aria-hidden (#869) 2020-08-18 10:27:45 -05:00
Ely Lucas 51a431e6ad fix: fixes for ssr support 2020-02-26 12:11:32 -07:00
Liam DeBeasi 352c80b8b6 fix(icon): include chevron icons in flipRtl (#740)
* include new chevron in fliprtl'

* add test
2019-11-19 15:33:59 -05:00
Liam DeBeasi cecdb9c0cd fix(icon): apply correct class to svg (#739)
* fix font size

* fix(icon): apply display to svg instead of ionicon class
2019-11-19 15:23:55 -05:00
Kevin Ports a76a78c568 Add css variable for stroke-width so it can be styled outside of shadow (#728)
* Add css variable for stroke width so it can be styled outside of shadow

* add fallback and default value for css var
2019-09-25 10:04:11 -05:00
Adam Bradley e48b0305d5 refactor(stroke-width): set stroke-width via css 2019-09-18 12:23:30 -05:00
Adam Bradley fa1c145f94 test: remove mode tests tests 2019-09-18 11:00:34 -05:00
Adam Bradley f0d22ccc26 fix(color): fix fill and stroke currentColor 2019-09-17 14:19:13 -05:00
Adam Bradley 65e1cfabfe refactor: update build scripts 2019-09-17 12:55:13 -05:00
Simon Hänisch 0df64cf8b8 fix: default export a function in global script (#720) 2019-08-20 22:21:15 -05:00
Manu Mtz.-Almeida 0320bf2926 fix(): dont error 2019-06-25 20:43:13 +02:00
Manu Mtz.-Almeida ced468a360 fix(): types generation 2019-06-19 22:56:56 +02:00
Adam Bradley bb6b8c122e wip 2019-06-13 09:31:10 -05:00
Manu Mtz.-Almeida 55fcc4b9f2 fix(): mode support 2019-06-07 14:54:54 +02:00
Adam Bradley 6398aa0a11 refactor: stencil one updates 2019-05-28 21:07:42 -05:00
Brandy Carney 2542b5ac73 fix(icon): set fill on host element and remove stroke (#688)
- fixes the border box around custom icons

references ionic-team/ionic#16483
2019-05-10 11:20:31 -04:00
Brandy Carney 510232d6a1 fix(svg): remove hardcoded fills from icons (#689)
fixes #529
2019-05-10 11:06:30 -04:00
Brandy Carney c14a19435c fix(icon): add mode class
references ionic-team/ionic#17608
2019-04-10 17:17:54 -04:00
Manu Mtz.-Almeida 9ca5040457 fix(rlt): use document.dir 2019-01-22 19:06:50 +01:00
Manu Mtz.-Almeida c9f08cd1c7 fix(aria): adds ariaLabel when using the icon prop 2019-01-22 18:34:38 +01:00
Brandy Carney 5c1c6e195f fix(icon): update to include rtl styles #656
- adds the ability to run npm start and launch the icon component locally
- adds a test for viewing the icon component locally
- updates the component css to include rtl styles
- updates contributing to include steps for this

references ionic-team/ionic#17012
2019-01-18 12:33:57 -05:00
Katherine Yang 7e6c9d2106 docs(): add icon attribute to docs (#631) 2019-01-11 01:51:22 +01:00