Skip to content

Commit

Permalink
feat: add custom dollar circle (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaraRMA authored Jun 6, 2024
1 parent 3502808 commit 3d53c4f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/icons.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type IconProps =
| 'cash-back'
| 'dollar-circle'
| 'jsm-outline'
| 'jsm'
| 'leader-board'
Expand Down
11 changes: 11 additions & 0 deletions packages/icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ To add a new icon, follow these steps:
1. Create an SVG file with the name of your icon. For example, if you want to add an icon named `my-icon`, create a file named `my-icon.svg` in the svg directory.
2. Run `npm run icons:build` to generate the type for your icon.
3. Once the SVG file is added, a pipeline (found in `.github/workflows/icons.yml`) will automatically build the module and upload it to the CDN.
3.1 In dev mode we haven't uploaded it to the CDN yet, so to see your results, you need to change the path in `ion-icon`
```js
<Host aria-hidden='true'>
<ion-icon
icon={`{mdi ou custom depende da pasta do ícone}/${this.icon}.svg`}
color={this.color}
size={this.size}
/>
</Host>
```
Don't forget to revert this before commit

## How it works

Expand Down
3 changes: 3 additions & 0 deletions packages/icons/svg/custom/dollar-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d53c4f

Please sign in to comment.