aboutsummaryrefslogtreecommitdiff
path: root/src/components/contrast_ratio
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-01-19 22:44:35 +0200
committerHenry Jameson <me@hjkos.com>2020-01-19 22:44:35 +0200
commit7d7ccf729855283ad0f5b9d6943b8d86ed1f180d (patch)
tree1e2cb83339fb8796a7a2dd4e4eedb860c7b9098b /src/components/contrast_ratio
parent62343f6099ca06449a6755487930ea80706e1335 (diff)
fix some contrast ratios not displaying
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')