carbon icon indicating copy to clipboard operation
carbon copied to clipboard

feat(slider): expose formatLabel to value tooltip

Open dkaushik95 opened this issue 8 months ago • 15 comments

This PR exposes formatLabel to the tooltip for devs to use

  • expose formatLabel to thumbWrapper for twoHandles as well as single handle.
  • add examples on storybooks on how it could be used

Doesn't close a PR but gets us closer to the comment here: https://github.com/carbon-design-system/carbon/issues/7581#issuecomment-1113437295

Changelog

New

  • formatLabel now also works with the Tooltips for the thumbs which gives you more options on how to customize how the value looks.
  • Two new storybooks added to describe the change

Changed

  • Changed the definition of formatLabel to represent the above addition

Testing / Reviewing

Screenshots

Screenshot 2024-05-29 at 10 13 36 AM Screenshot 2024-05-29 at 10 13 49 AM Screenshot 2024-05-29 at 10 13 56 AM

dkaushik95 avatar May 29 '24 17:05 dkaushik95