Skip to content

Commit 795c7ad

Browse files
committed
chore: Validator props
1 parent 18a1e61 commit 795c7ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DarkMode.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default {
3636
},
3737
className: {
3838
type: String,
39+
validator: str => str.includes('%cm'),
3940
default: '%cm-mode'
4041
},
4142
storage: {
@@ -52,10 +53,12 @@ export default {
5253
},
5354
ariaLabel: {
5455
type: String,
56+
validator: str => str.includes('%cm'),
5557
default: 'toggle to %cm mode color'
5658
},
5759
ariaLive: {
5860
type: String,
61+
validator: str => str.includes('%cm'),
5962
default: '%cm color mode is enabled'
6063
},
6164
favicon: {

0 commit comments

Comments
 (0)