diff --git a/src/components/Slider/Slider.stories.tsx b/src/components/Slider/Slider.stories.tsx index 30950fbd8..06988d06e 100644 --- a/src/components/Slider/Slider.stories.tsx +++ b/src/components/Slider/Slider.stories.tsx @@ -295,7 +295,7 @@ export const WithHighlightedContent: Story = { onChange={({ target }) => setSliderValue(Number(target.value))} value={sliderValue} /> -
+ {moodData.map((mood, index) => { return ( sliderValue === mood.value && ( @@ -303,7 +303,7 @@ export const WithHighlightedContent: Story = { ) ); })} -
+ Current mood:{' '} @@ -340,7 +340,7 @@ export const WithVisualLabel: Story = { id="slider-label" text="Mood Slider" /> -
+ {moodData.map((mood) => { return ( sliderValue === mood.value && ( @@ -348,7 +348,7 @@ export const WithVisualLabel: Story = { ) ); })} -
+
-
+ {moodData.map((mood, index) => { return (
); })} -
+
WithHighlightedContent story renders snapshot 1`] = ` class="slider__thumb-proxy" />
-
😐 -
+

WithMultipleVisualLabels story renders snapshot 1`] = ` Mood Slider -

WithMultipleVisualLabels story renders snapshot 1`] = ` > 😍
-
+
@@ -707,13 +707,13 @@ exports[` WithVisualLabel story renders snapshot 1`] = ` Mood Slider -
😐 -
+
diff --git a/src/components/Toggle/Toggle.tsx b/src/components/Toggle/Toggle.tsx index 31a0aa90c..85a8b9894 100644 --- a/src/components/Toggle/Toggle.tsx +++ b/src/components/Toggle/Toggle.tsx @@ -2,6 +2,7 @@ import { Switch } from '@headlessui/react'; import clsx from 'clsx'; import React from 'react'; import type { EitherInclusive, ExtractProps } from '../../util/utility-types'; + import styles from './Toggle.module.css'; type ToggleLabelProps = { diff --git a/tailwind.config.ts b/tailwind.config.ts index a8024d1a8..2362619e1 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -34,20 +34,6 @@ export default { ...textColorTokens, }, }, - fontSize: { - // provide values for both font-size and line-height - body: [edsTokens['font-size']['16'], '1.5'], - h1: [edsTokens['font-size']['40'], '1.2'], - h2: [edsTokens['font-size']['32'], '1.25'], - h3: [edsTokens['font-size']['24'], '1.333'], - h4: [edsTokens['font-size']['18'], '1.333'], - h5: [edsTokens['font-size']['16'], '1.5'], - h6: [edsTokens['font-size']['14'], '1.57'], - h7: [edsTokens['font-size']['12'], '1.666'], - sm: [edsTokens['font-size']['14'], '1.57'], - xs: [edsTokens['font-size']['12'], '1.666'], - caption: [edsTokens['font-size']['12'], '1.666'], - }, fontWeight: { normal: edsTokens['font-weight'].light, medium: edsTokens['font-weight'].medium,