aboutsummaryrefslogtreecommitdiff
path: root/src/components/contrast_ratio/contrast_ratio.vue
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2020-02-18 21:20:43 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2020-02-18 21:20:43 +0000
commit3ddf7ebe2c94f88be12644d7a7a675f6f8331707 (patch)
tree878e90d5381ce14f9c3d88ab77e998ef6238760d /src/components/contrast_ratio/contrast_ratio.vue
parent26e455bb4cadb90b4351f2a2e8f53eaa15d9e569 (diff)
parent32902e01f80a2ff27e9f4fc5a922c47b63f397fd (diff)
Merge branch 'themes-accent' into 'develop'
Themes v3 Part 1 "2.1" codenamed "One step for themes, a giant burder for code reviewers" Closes #750 and #774 See merge request pleroma/pleroma-fe!1037
Diffstat (limited to 'src/components/contrast_ratio/contrast_ratio.vue')
-rw-r--r--src/components/contrast_ratio/contrast_ratio.vue14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/components/contrast_ratio/contrast_ratio.vue b/src/components/contrast_ratio/contrast_ratio.vue
index 15a450a2..ba92bc17 100644
--- a/src/components/contrast_ratio/contrast_ratio.vue
+++ b/src/components/contrast_ratio/contrast_ratio.vue
@@ -37,9 +37,17 @@
<script>
export default {
- props: [
- 'large', 'contrast'
- ],
+ props: {
+ large: {
+ required: false
+ },
+ // TODO: Make theme switcher compute theme initially so that contrast
+ // component won't be called without contrast data
+ contrast: {
+ required: false,
+ type: Object
+ }
+ },
computed: {
hint () {
const levelVal = this.contrast.aaa ? 'aaa' : (this.contrast.aa ? 'aa' : 'bad')