-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(html): add test for ColorGradient sizes
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
packages/html/src/colorgradient/tests/colorgradient-sizes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ColorGradient, ColorGradientNormal } from '../../colorgradient'; | ||
|
||
|
||
const styles = ` | ||
#test-area { | ||
grid-template-columns: 1fr 1fr 2fr; | ||
} | ||
.k-hue-slider { | ||
--kendo-slider-start: 0; | ||
--kendo-slider-end: 0; | ||
} | ||
.k-alpha-slider { | ||
--kendo-slider-start: 0; | ||
--kendo-slider-end: 100; | ||
} | ||
`; | ||
|
||
export default () =>( | ||
<> | ||
<style>{styles}</style> | ||
<div id="test-area" className="k-d-grid k-gap-2"> | ||
<span>Small</span> | ||
<span>Medium</span> | ||
<span>Large</span> | ||
|
||
{ ColorGradient.options.size.map((size) => ( | ||
<> | ||
<section> | ||
<ColorGradientNormal size={size} /> | ||
</section> | ||
</> | ||
))} | ||
</div> | ||
</> | ||
); |