Skip to content

Commit

Permalink
fix(Tag): test contrast color fix in SSR apps
Browse files Browse the repository at this point in the history
  • Loading branch information
MarineLB committed Oct 10, 2023
1 parent 76eef77 commit ad66b45
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",
"version": "1.17.11",
"engines": {
"node": "14.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 @@ -134,7 +134,8 @@ export default {
else return this.label;
},
contrastColor() {
return this.$getContrastColor(this.color);
if (process.server) return getContrastColor(this.color);

Check failure on line 137 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined

Check failure on line 137 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined

Check failure on line 137 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined

Check failure on line 137 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined
if (process.client) return getContrastColor(this.color);

Check failure on line 138 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined

Check failure on line 138 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined

Check failure on line 138 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined

Check failure on line 138 in src/system/components/atoms/tag/Tag.vue

View workflow job for this annotation

GitHub Actions / Publish to npm

'getContrastColor' is not defined
},
hoverColor() {
return this.$getHoverColor(this.color);
Expand Down

0 comments on commit ad66b45

Please sign in to comment.