aboutsummaryrefslogtreecommitdiff
path: root/src/components/contrast_ratio
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-09-08 10:44:08 +0300
committerShpuld Shpuldson <shp@cock.li>2020-09-08 10:44:08 +0300
commit8975589bca81ff6eb84084047bf74e16ee5d1cd7 (patch)
tree4d201c839806bb98911029e0ea137970b1351077 /src/components/contrast_ratio
parentda63894072e133f66e7861e8c1ae50744cc980c3 (diff)
fix vue warnings and errors
Diffstat (limited to 'src/components/contrast_ratio')
-rw-r--r--src/components/contrast_ratio/contrast_ratio.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/contrast_ratio/contrast_ratio.vue b/src/components/contrast_ratio/contrast_ratio.vue
index ba92bc17..9dc871b6 100644
--- a/src/components/contrast_ratio/contrast_ratio.vue
+++ b/src/components/contrast_ratio/contrast_ratio.vue
@@ -39,13 +39,16 @@
export default {
props: {
large: {
- required: false
+ required: false,
+ type: Boolean,
+ default: false
},
// TODO: Make theme switcher compute theme initially so that contrast
// component won't be called without contrast data
contrast: {
required: false,
- type: Object
+ type: Object,
+ default: () => ({})
}
},
computed: {