Skip to content

Commit

Permalink
chore(html): add test for ColorGradient sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
inikolova committed Jan 9, 2025
1 parent 6236fa4 commit cd32c15
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/html/src/colorgradient/tests/colorgradient-sizes.tsx
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>
</>
);

0 comments on commit cd32c15

Please sign in to comment.