Create a ButtonSecondary variant for the Button component in React. This component will serve as the secondary button variant, adhering to the design specifications outlined in the Button Audit and Insight Report Figma Board. It should integrate seamlessly with the shared UI component library and follow best practices for accessibility and responsiveness.
Technical Details
Component Implementation:
Extend or compose the ButtonBase component to create the ButtonSecondary variant.
Default props for this variant:
variant: "secondary"
Styles specific to the secondary button, such as border, background, and typography, based on design tokens.
Description
Create a
ButtonSecondary
variant for theButton
component in React. This component will serve as the secondary button variant, adhering to the design specifications outlined in the Button Audit and Insight Report Figma Board. It should integrate seamlessly with the shared UI component library and follow best practices for accessibility and responsiveness.Technical Details
Component Implementation:
ButtonBase
component to create theButtonSecondary
variant.variant: "secondary"
size?: ButtonSize.Xs | ButtonSize.Sm | ButtonSize.Md | ButtonSize.Lg | ButtonSize.Xl
disabled?: boolean
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void
iconLeft?: ReactNode
iconRight?: ReactNode
className?: string
Styling:
ButtonSecondary
styling should clearly differentiate fromButtonPrimary
while maintaining harmony with the design system.Integration:
Testing:
Documentation:
ButtonSecondary
variant in Storybook, including:Acceptance Criteria
ButtonSecondary
variant matches the design specs in the Button Audit and Insight Report Figma Board.References