From 20058a9fd9d18a191ec439b3749b7408d8991fc9 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Mon, 14 Aug 2023 19:44:42 -0700 Subject: [PATCH] fix(slider): rerender ticks when prop is modified (#7439) **Related Issue:** #6375 ## Summary This adds a watcher for `ticks` to update slider ticks. --- .../src/components/slider/slider.stories.ts | 31 +++++++++++++++++++ .../src/components/slider/slider.tsx | 16 +++++----- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/packages/calcite-components/src/components/slider/slider.stories.ts b/packages/calcite-components/src/components/slider/slider.stories.ts index 6fc87d4930b..a4445fc48e2 100644 --- a/packages/calcite-components/src/components/slider/slider.stories.ts +++ b/packages/calcite-components/src/components/slider/slider.stories.ts @@ -415,6 +415,37 @@ export const maxTickRendering_TestOnly = (): string => html` `; +export const rendersWhenTrackRelatedPropChanges_TestOnly = (): string => + html` + + + `; + +rendersWhenTrackRelatedPropChanges_TestOnly.parameters = { + chromatic: { delay: 500 }, +}; + export const spaceGroupSeparatorNoBreak_TestOnly = (): string => html`