cfpb / design-system-react

A React/Storybook implementation of CFPB's Design System
https://cfpb.github.io/design-system-react/
MIT License
6 stars 4 forks source link

[Component] Buttons #153

Closed natalia-fitzgerald closed 11 months ago

natalia-fitzgerald commented 1 year ago

Buttons

Tracking the design and development lifecycle of the button component.

Related links:

Effort level: Large

(Levels: Small, Medium, Large, Extra Large)

Definition of ready

Checklist

Definition of ready questionnaire:

Identify the use case:

Identify the current state:

Indicate which types we will include in the React component library.

Types

Sizes

Groups

Buttons with icons

Definition of done

Component is fully functional

Accessibility checks have been completed

For existing components:

For new components:

Final sign off

natalia-fitzgerald commented 1 year ago

@meissadia Here's a checklist of Design System button components that have/have not been brought into the component library:

Types

Sizes

Groups

Buttons with icons

Button as link and button as destructive link may be more appropriate in the links section. In the button section the link is shown in a DS section called "Destructive actions" and includes both the button and the link. The button is the action and the link is the destructive action. If we decide we want to include it in the Buttons section we should show it paired with the blue button and label it as "Destructive action." The destructive link on it's own appears in the Links section of the Design System.

Screenshot 2023-08-16 at 8 38 21 AM

meissadia commented 1 year ago

Other points of emphasis

meissadia commented 1 year ago

@natalia-fitzgerald Re: Destructive link/button

They are different HTML elements but use the same CSS classes to style them.

Based on the elemental difference I'd say that they would be separate components.

I've gone ahead an implemented the Destructive action variant as a button.