Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(color-picker): use code for opaque image #314

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/assets/css/src/scss/_utils/_tokens.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Do not edit directly
// Generated on Mon, 29 Jul 2024 05:11:07 GMT
// Generated on Tue, 30 Jul 2024 09:07:12 GMT

$accordion-border-radius-sm: 10px;
$advanced-banner-background: linear-gradient(90deg, #222 0%, #383323 48.96%, #514524 100%);
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/color-picker/src/color-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { ColorPickerProps } from "./color-picker.types"
import { Button } from "@wpmudev/sui-button"
import { Input } from "@wpmudev/sui-input"

const PreviewImage = require("./static/opaque.png")

import Picker from "./elements/picker"
import { _renderHTMLPropsSafely, generateCN } from "@wpmudev/sui-utils"
import { useOuterClick, useStyles } from "@wpmudev/sui-hooks"
Expand Down Expand Up @@ -168,7 +166,9 @@ const ColorPicker: React.FC<ColorPickerProps> = ({
style={
tempColor
? { backgroundColor: tempColor }
: { backgroundImage: `url(${PreviewImage})` }
: {
backgroundImage: `url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAK0lEQVQ4y2P8//8/A25w7949PLJMDBSAUc0jQzML/jSkpKQ0GmCjminRDADJNQjBr5nbigAAAABJRU5ErkJggg==')`,
}
}
/>
</div>
Expand Down
Binary file removed packages/ui/color-picker/src/static/opaque.png
Binary file not shown.
Loading