Skip to content

Commit 2ac03a1

Browse files
committed
chore: sync with main
2 parents 31c83d9 + 19fbe0b commit 2ac03a1

11 files changed

+49
-19
lines changed

.github/ionic-issue-bot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ comment:
5454
5555
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was
5656
not enough for our team to reproduce the issue.
57+
- label: "community feedback wanted"
58+
message: >
59+
This issue has been labeled as `community feedback wanted`. This label is added to issues that we would like to hear from the community on before moving forward with any final decision on the feature request.
60+
61+
62+
If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (`+1`). If you would like to provide an additional use case for the feature, please post a comment.
63+
64+
65+
The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
66+
67+
68+
Thank you!
5769
dryRun: false
5870

5971
noReply:

CHANGELOG.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
# [7.4.0](https://github.com/ionic-team/ionicons/compare/v7.3.0...v7.4.0) (2024-05-01)
6+
<<<<<<< HEAD
7+
# [7.4.0](https://github.com/ionic-team/ionicons/compare/v7.3.1...v7.4.0) (2024-05-01)
78

89

910
### Features
@@ -16,14 +17,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
1617

1718

1819

19-
# [7.4.0](https://github.com/ionic-team/ionicons/compare/v7.3.0...v7.4.0) (2024-05-01)
20+
## [7.3.1](https://github.com/ionic-team/ionicons/compare/v7.3.0...v7.3.1) (2024-03-27)
2021

2122

22-
### Features
23+
### Bug Fixes
2324

24-
* add X logo ([#1371](https://github.com/ionic-team/ionicons/issues/1371)) ([0963fe2](https://github.com/ionic-team/ionicons/commit/0963fe20b77a03b0b8b7f4e94b646cd5d7b25f03)), closes [#1249](https://github.com/ionic-team/ionicons/issues/1249)
25-
* export setAssetPath ([#1372](https://github.com/ionic-team/ionicons/issues/1372)) ([87f2094](https://github.com/ionic-team/ionicons/commit/87f2094890c22b7b03bf754b6fd2651a83fe20ed)), closes [#1302](https://github.com/ionic-team/ionicons/issues/1302)
26-
* update server icon ([#1259](https://github.com/ionic-team/ionicons/issues/1259)) ([b4ade9d](https://github.com/ionic-team/ionicons/commit/b4ade9d887c0d5ecc29e25f8e12b576106de712a)), closes [#407](https://github.com/ionic-team/ionicons/issues/407)
25+
* filled ellipsis circle icons renders correctly ([#1353](https://github.com/ionic-team/ionicons/issues/1353)) ([63e60ec](https://github.com/ionic-team/ionicons/commit/63e60ec44c11bda5902b5a496113f65a5e6f3d85)), closes [#1320](https://github.com/ionic-team/ionicons/issues/1320)
2726

2827

2928

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "ionicons",
3+
<<<<<<< HEAD
34
"version": "7.4.0",
5+
=======
6+
"version": "7.3.1",
7+
>>>>>>> origin/main
48
"description": "Premium icons for Ionic.",
59
"files": [
610
"components/",
@@ -14,11 +18,12 @@
1418
"collection": "dist/collection/collection-manifest.json",
1519
"collection:main": "dist/collection/index.js",
1620
"scripts": {
17-
"build": "tsc -p scripts/tsconfig.json && npm run build.files && npm run build.component && npm run collection.copy",
21+
"compile.scripts": "tsc -p scripts/tsconfig.json",
22+
"build": "npm run compile.scripts && npm run build.files && npm run build.component && npm run collection.copy",
1823
"build.files": "node scripts/build.js",
1924
"build.component": "stencil build",
2025
"collection.copy": "node scripts/collection-copy.js",
21-
"start": "stencil build --dev --watch --serve",
26+
"start": "npm run compile.scripts && npm run build.files && stencil build --dev --watch --serve",
2227
"test": "npm run test.spec",
2328
"test.spec": "stencil test --spec"
2429
},

readme.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ label.
1919

2020
The Ionicons Web Component is an easy and performant way to use Ionicons in your app. The component will dynamically load an SVG for each icon, so your app is only requesting the icons that you need.
2121

22-
Also note that only visible icons are loaded, and icons which are "below the fold" and hidden from the user's view do not make fetch requests for the svg resource.
22+
Also note that only visible icons are loaded, and icons that are "below the fold" and hidden from the user's view do not make fetch requests for the svg resource.
2323

2424
### Installation
2525

26-
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing </body> tag, to enable them.
26+
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing `</body>` tag, to enable them.
2727

2828
```html
29-
<script src="https://unpkg.com/ionicons@latest/dist/ionicons.js"></script>
29+
<script type="module" src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.esm.js"></script>
30+
<script nomodule src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.js"></script>
3031
```
3132

3233
### Basic usage
@@ -45,6 +46,24 @@ To use a custom SVG, provide its url in the `src` attribute to request the exter
4546
<ion-icon src="/path/to/external/file.svg"></ion-icon>
4647
```
4748

49+
#### Custom Asset Path
50+
51+
If you have a different set of icons you would like to load or if the Ionicon icons are hosted on a different page or path, you can set the asset url from which Ionicons pulls the icons via:
52+
53+
```ts
54+
import { setAssetPath } from '@stencil/core'
55+
56+
// set root path for loading icons to "<root>/public/svg"
57+
setAssetPath(`${window.location.origin}/public/svg/`);
58+
```
59+
60+
This allows the use of named icons like this:
61+
62+
```html
63+
<!-- now pulls the svg from "<root>/public/svg/heart.svg" -->
64+
<ion-icon name="heart"></ion-icon>
65+
```
66+
4867
## Variants
4968
Each app icon in Ionicons has a `filled`, `outline` and `sharp` variant. These different variants are provided to make your app feel native to a variety of platforms. The filled variant uses the default name without a suffix. Note: Logo icons do not have outline or sharp variants.
5069

@@ -55,7 +74,7 @@ Each app icon in Ionicons has a `filled`, `outline` and `sharp` variant. These d
5574
```
5675

5776
### Platform specificity
58-
When using icons in Ionic Framework you can specify different icons per platform. Use the `md` and `ios` attributes and provide the platform specific icon/variant name.
77+
When using icons in Ionic Framework you can specify different icons per platform. Use the `md` and `ios` attributes and provide the platform-specific icon/variant name.
5978

6079
```html
6180
<ion-icon ios="heart-outline" md="heart-sharp"></ion-icon>

src/components/icon/icon.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
}
2222

2323
.ionicon-stroke-width {
24-
stroke-width: 32px;
2524
stroke-width: var(--ionicon-stroke-width, 32px);
2625
}
2726

4.77 KB
Loading
4.41 KB
Loading
358 Bytes
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)