From 8de86a664a7b273874e040edd62056af595966cd Mon Sep 17 00:00:00 2001 From: Zhuliyan Penkov Date: Tue, 30 Jan 2024 11:27:59 +0200 Subject: [PATCH] chore(html): pass other props in slider helpers --- packages/html/src/slider/slider-tick.tsx | 21 +++++++++------- packages/html/src/slider/slider.spec.tsx | 31 +++++++++++++----------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/packages/html/src/slider/slider-tick.tsx b/packages/html/src/slider/slider-tick.tsx index 687dffdae0f..0d35fccfd7d 100644 --- a/packages/html/src/slider/slider-tick.tsx +++ b/packages/html/src/slider/slider-tick.tsx @@ -27,18 +27,21 @@ export const SliderTick = ( label = defaultProps.label, orientation, large, - text + text, + ...other } = props; return ( -
  • +
  • {label && {text}}
  • ); diff --git a/packages/html/src/slider/slider.spec.tsx b/packages/html/src/slider/slider.spec.tsx index 5685b224d00..58c9aec10a6 100644 --- a/packages/html/src/slider/slider.spec.tsx +++ b/packages/html/src/slider/slider.spec.tsx @@ -52,7 +52,8 @@ export const Slider = ( focus, active, trackStyle, - dir + dir, + ...other } = props; let iconIncrease; @@ -67,19 +68,21 @@ export const Slider = ( } return ( -
    +
    { showButtons &&