Skip to content

Commit

Permalink
Fix background image for showing opacity colors (#1277)
Browse files Browse the repository at this point in the history
* Add disabled version to ProgressBar

* Revert changes progressbar

* merge with main

* Move image to support public view

* Delete changeset

* Remove rudandant condition

* Bump package for build
  • Loading branch information
alicemacl authored Sep 26, 2024
1 parent 1cf678a commit 2931b13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
Text,
} from "@vygruppen/spor-react";
import { useTokenInfo } from "./utils";
import translucentBackgroundUrl from "../translucent-background.svg";

type ColorGridProps = {
colors: { token: string; alias?: string }[];
Expand Down Expand Up @@ -93,11 +92,7 @@ export const ColorToken = ({
borderBottomLeftRadius={isVertical ? "sm" : "none"}
position="absolute"
zIndex={1}
bgGradient={
isTranslucent
? `linear(to-r, ${colorValue}, ${colorValue})`
: undefined
}
bgGradient={`linear(to-r, ${colorValue}, ${colorValue})`}
backgroundPosition="center center"
backgroundRepeat="repeat"
/>
Expand All @@ -108,9 +103,7 @@ export const ColorToken = ({
borderTopRightRadius={!isVertical ? "sm" : "none"}
borderBottomLeftRadius={isVertical ? "sm" : "none"}
position="absolute"
backgroundImage={
isTranslucent ? `${translucentBackgroundUrl}` : undefined
}
backgroundImage={`url(/images/translucent-background.svg)`}
backgroundPosition="center center"
backgroundRepeat="repeat"
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "0.0.50",
"version": "0.0.51",
"name": "@vygruppen/docs",
"description": "The Spor documentation",
"license": "MIT",
Expand Down

0 comments on commit 2931b13

Please sign in to comment.