fix some contrast ratios not displaying

This commit is contained in:
Henry Jameson 2020-01-19 22:44:35 +02:00
parent 62343f6099
commit 7d7ccf7298
2 changed files with 18 additions and 12 deletions

View file

@ -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')