aboutsummaryrefslogtreecommitdiff
path: root/src/components/contrast_ratio
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/contrast_ratio')
-rw-r--r--src/components/contrast_ratio/contrast_ratio.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/contrast_ratio/contrast_ratio.vue b/src/components/contrast_ratio/contrast_ratio.vue
index 15a450a2..5e79ef41 100644
--- a/src/components/contrast_ratio/contrast_ratio.vue
+++ b/src/components/contrast_ratio/contrast_ratio.vue
@@ -37,9 +37,15 @@
<script>
export default {
- props: [
- 'large', 'contrast'
- ],
+ props: {
+ large: {
+ required: false
+ },
+ contrast: {
+ required: true,
+ type: Object
+ }
+ },
computed: {
hint () {
const levelVal = this.contrast.aaa ? 'aaa' : (this.contrast.aa ? 'aa' : 'bad')