Skip to content

Commit 30f0f63

Browse files
committed
feat(icon): default purpose to any + maskable
1 parent d115b08 commit 30f0f63

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/content/en/icon.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ Will return an empty string when no icon in the given size is available (eg. whe
4848
Name of property for accessible icons.
4949

5050
**purpose**
51-
- Default: null
51+
- Default: `['any', 'maskable']`
5252

5353
Array or string of icon purpose.
54+
5455
Example:
56+
5557
```js
56-
purpose: [ 'badge', 'maskable' ]
57-
// or
5858
purpose: 'maskable'
5959
```
6060

lib/icon/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function run (pwa, _emitAssets) {
3737
iconProperty: '$icon',
3838
publicPath,
3939
iconSrc: null,
40-
purpose: null,
40+
purpose: ['any', 'maskable'],
4141

4242
_iconHash: null,
4343
_cacheDir: null,

0 commit comments

Comments
 (0)