Skip to content

Commit 095fdaa

Browse files
committed
cleanup
1 parent 2018f15 commit 095fdaa

File tree

273 files changed

+0
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+0
-12
lines changed

docs/storybook/stories/StorybookComponents/ColorTokenSwatch/ColorTokenSwatch.tsx

-12
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export type ColorTokenSwatchProps = {
88
shadowColor?: string
99
outlineColor?: string
1010
selectionColor?: string
11-
gradientStops?: Record<string, number>[]
12-
gradientAngle?: number
1311
size?: 'default' | 'large'
1412
}
1513

@@ -20,8 +18,6 @@ export function ColorTokenSwatch({
2018
shadowColor,
2119
outlineColor,
2220
selectionColor,
23-
gradientStops,
24-
gradientAngle = 180,
2521
size = 'default',
2622
}: ColorTokenSwatchProps) {
2723
return (
@@ -33,14 +29,6 @@ export function ColorTokenSwatch({
3329
)}
3430
{borderColor && <div style={{borderColor: `var(--${borderColor})`}} className="ColorTokenSwatch-border"></div>}
3531
{bgColor && <div style={{backgroundColor: `var(--${bgColor})`}} className="ColorTokenSwatch-bg"></div>}
36-
{gradientStops && (
37-
<div
38-
style={{
39-
background: `linear-gradient(${gradientAngle}deg, ${gradientStops.map(({color, position}) => `${color} ${position * 100}%`).join(', ')})`,
40-
}}
41-
className="ColorTokenSwatch-bg"
42-
></div>
43-
)}
4432
{shadowColor && <div style={{boxShadow: `var(--${shadowColor})`}} className="ColorTokenSwatch-shadow"></div>}
4533
{outlineColor && (
4634
<div style={{outlineColor: `var(--${outlineColor})`}} className="ColorTokenSwatch-outline"></div>

0 commit comments

Comments
 (0)