Skip to content

Commit

Permalink
fix(Tag): test a fix to get proper contrast color after SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
MarineLB committed Oct 10, 2023
1 parent b2e7602 commit efcdd39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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.10-next.2",
"version": "1.17.11-next.0",
"engines": {
"node": "16.x"
},
Expand Down
3 changes: 2 additions & 1 deletion src/system/components/atoms/tag/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export default {
else return this.label;
},
contrastColor() {
return getContrastColor(this.color);
if (process.server) return getContrastColor(this.color);
if (process.client) return getContrastColor(this.color);
},
hoverColor() {
return getHoverColor(this.color);
Expand Down

0 comments on commit efcdd39

Please sign in to comment.