diff --git a/app/src/components/CardCollapse.vue b/app/src/components/CardCollapse.vue index ef647168..37726594 100644 --- a/app/src/components/CardCollapse.vue +++ b/app/src/components/CardCollapse.vue @@ -78,7 +78,7 @@ export default { @each $color, $value in $theme-colors { &-#{$color} { background-color: $value; - color: color-yiq($value); + color: color-contrast($value); } } } diff --git a/app/src/components/RecursiveListGroup.vue b/app/src/components/RecursiveListGroup.vue index 2e30a3dc..9a781ce9 100644 --- a/app/src/components/RecursiveListGroup.vue +++ b/app/src/components/RecursiveListGroup.vue @@ -112,8 +112,9 @@ export default { text-decoration: none; background-color: $list-group-hover-bg; - @include hover-focus() { - background-color: darken($list-group-hover-bg, 3%); + &:hover, + &:focus { + background-color: shade-color($gray-100, 3%); } } } diff --git a/app/src/components/globals/YIcon.vue b/app/src/components/globals/YIcon.vue index 15fbcc8c..e25beedc 100644 --- a/app/src/components/globals/YIcon.vue +++ b/app/src/components/globals/YIcon.vue @@ -48,7 +48,7 @@ export default { @each $color, $value in $theme-colors { &.#{$color} { background-color: $value; - color: color-yiq($value); + color: color-contrast($value); } } } diff --git a/app/src/components/globals/YListGroupItem.vue b/app/src/components/globals/YListGroupItem.vue index daf32ac0..3ed5c9f4 100644 --- a/app/src/components/globals/YListGroupItem.vue +++ b/app/src/components/globals/YListGroupItem.vue @@ -61,15 +61,15 @@ export default { @each $color, $value in $theme-colors { &-#{$color} { - color: theme-color-level($color, 6); + color: tint-color($value, 50%); [data-bs-theme='light'] & { - color: theme-color-level($color, -6); + color: shade-color($value, 60%); } .yuno-list-group-item-status { background-color: $value; - color: color-yiq($value); + color: color-contrast($value); } } }