diff --git a/packages/react-components/react-textarea/stories/Textarea/TextareaAppearance.stories.tsx b/packages/react-components/react-textarea/stories/Textarea/TextareaAppearance.stories.tsx index 1dcace710fefa8..321e09aeb90a82 100644 --- a/packages/react-components/react-textarea/stories/Textarea/TextareaAppearance.stories.tsx +++ b/packages/react-components/react-textarea/stories/Textarea/TextareaAppearance.stories.tsx @@ -1,58 +1,44 @@ import * as React from 'react'; -import { makeStyles, shorthands, tokens, useId, Label, Textarea } from '@fluentui/react-components'; +import { Field, makeStyles, mergeClasses, shorthands, tokens, Textarea } from '@fluentui/react-components'; const useStyles = makeStyles({ base: { display: 'flex', flexDirection: 'column', - - '> div': { - display: 'flex', - flexDirection: 'column', - marginTop: tokens.spacingVerticalMNudge, - ...shorthands.padding(tokens.spacingHorizontalMNudge), - }, - - '> div > label': { - marginBottom: tokens.spacingHorizontalXXS, - marginLeft: tokens.spacingHorizontalMNudge, - }, + rowGap: tokens.spacingVerticalMNudge, }, - filledLighter: { + inverted: { backgroundColor: tokens.colorNeutralBackgroundInverted, - '> label': { - color: tokens.colorNeutralForegroundInverted2, - }, }, - filledDarker: { - backgroundColor: tokens.colorNeutralBackgroundInverted, - '> label': { - color: tokens.colorNeutralForegroundInverted2, - }, + invertedLabel: { + color: tokens.colorNeutralForegroundInverted2, + }, + fieldWrapper: { + ...shorthands.padding(tokens.spacingVerticalMNudge, tokens.spacingHorizontalMNudge), }, }); export const Appearance = () => { - const outlineId = useId('textarea-outline'); - const filledDarkerId = useId('textarea-filleddarker'); - const filledLighterId = useId('textarea-filledlighter'); const styles = useStyles(); return (
-
- -