Skip to content

Commit

Permalink
fix(Tag): fix tag contrast color in vue apps
Browse files Browse the repository at this point in the history
  • Loading branch information
MarineLB committed Jan 16, 2024
1 parent 4b8fca2 commit ae1addb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@makesenseorg/design-system",
"version": "1.17.13",
"version": "1.17.14",
"engines": {
"node": "14.x"
},
Expand Down
5 changes: 3 additions & 2 deletions src/system/components/atoms/tag/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ export default {
else return this.label;
},
contrastColor() {
if (process.server) return getContrastColor(this.color);
if (process.client) return getContrastColor(this.color);
if (process.server) return this.$getContrastColor(this.color); // for nuxt // to trigger on server side
if (process.client) return this.$getContrastColor(this.color); // for nuxt // to trigger on client side
return this.$getContrastColor(this.color); // for vue
},
hoverColor() {
return this.$getHoverColor(this.color);
Expand Down

0 comments on commit ae1addb

Please sign in to comment.