Skip to content

Commit

Permalink
fix(Alpha): fix style props issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 29, 2023
1 parent 00fe441 commit e0a8494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/color-alpha/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const Alpha = React.forwardRef<HTMLDivElement, AlphaProps>((props, ref) => {
borderRadius: radius,
background: `url(${BACKGROUND_IMG}) left center`,
backgroundColor: 'var(--alpha-background-color)',
...{ width, height },
...style,
position: 'relative',
...{ width, height },
} as CSSProperties;

const pointerElement =
Expand Down
4 changes: 2 additions & 2 deletions packages/color-wheel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Demo() {
return (
<Fragment>
<Wheel color={hsva} onChange={(color) => setHsva({ ...hsva, ...color.hsva })} />
<div style={{ width: '100%', height: 34, background: hsvaToHex(hsva) }}></div>
<div style={{ width: '100%', height: 34, marginTop: 20, background: hsvaToHex(hsva) }}></div>
</Fragment>
);
}
Expand Down Expand Up @@ -75,7 +75,7 @@ function Demo() {
<Wheel color={hsva} onChange={(color) => setHsva({ ...hsva, ...color.hsva })} />
<ShadeSlider
hsva={hsva}
style={{ width: 210 }}
style={{ width: 210, marginTop: 20 }}
onChange={(newShade) => {
setHsva({ ...hsva, ...newShade });
}}
Expand Down

0 comments on commit e0a8494

Please sign in to comment.