Skip to content

Commit

Permalink
cleanup storybook icons color docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Ledoux committed May 23, 2022
1 parent efb31b3 commit b58e911
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions storybook/intro/stories/intro/Icons.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,40 @@ For more info, check-out the Icon component documentation on the framework you a
}));
return (<>
<h3 className="text-lg border-b-1 border-gray-300 pb-1">Use the dropdowns below to customize the colors of the icons</h3>
<div className={`flex items-center justify-evenly border-b-1 border-gray-300 p-3 text-${strokeColor.value}-600 bg-${fillColor.value}-50`}>
<div className="w-1/4">
<div className="flex border-b-1 border-gray-300">
<div className={`p-3 w-1/2 flex items-center justify-evenly text-${strokeColor.value}-600 bg-${fillColor.value}-50`}>
<div className="w-1/2">
strokeColor
<Select
defaultValue={strokeColor}
className="ml-2 mr-4"
onChange={setStrokeColor}
options={colorOptions}
/>
</div><div className="w-1/4">
fillColor
<Select
defaultValue={fillColor}
className="mx-2 mr-4"
onChange={setFillColor}
options={colorOptions} />
</div><div className="w-1/4">
secondaryStrokeColor
<Select
defaultValue={secondaryStrokeColor}
className="mx-2 mr-4"
onChange={setSecondaryStrokeColor}
options={colorOptions} />
</div><div className="w-1/4">
secondaryFillColor
<Select
defaultValue={secondaryFillColor}
className="mx-2"
onChange={setSecondaryFillColor}
options={colorOptions} />
</div><div className="w-1/2">
fillColor
<Select
defaultValue={fillColor}
className="mx-2 mr-4"
onChange={setFillColor}
options={colorOptions} />
</div>
</div><div className={`p-3 w-1/2 flex items-center justify-evenly text-${secondaryStrokeColor.value}-600 bg-${secondaryFillColor.value}-50`}>
<div className="w-1/2">
secondaryStrokeColor
<Select
defaultValue={secondaryStrokeColor}
className="mx-2 mr-4"
onChange={setSecondaryStrokeColor}
options={colorOptions} />
</div><div className="w-1/2">
secondaryFillColor
<Select
defaultValue={secondaryFillColor}
className="mx-2"
onChange={setSecondaryFillColor}
options={colorOptions} />
</div>
</div>
</div>
<div>
Expand Down

1 comment on commit b58e911

@vercel
Copy link

@vercel vercel bot commented on b58e911 May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cypress-design – ./

cypress-design.vercel.app
cypress-design-git-main-cypress-io.vercel.app
cypress-design-cypress-io.vercel.app

Please sign in to comment.