Skip to content

Use cva in common components with variant attributes #42

@mwarman

Description

@mwarman

Describe the story

Provide a clear description of the new feature or improvement to existing functionality.

Use the class variance authority, cva, library to style existing components with style variations. A list of components to be updated are:

  • Alert
  • DialogButton
  • Tabs
  • Text

However, this list should not be considered all-inclusive and the engineer should search for additional common components with style variants.

Acceptance criteria

Provide clear acceptance criteria to validate the story is complete.

GIVEN a component has style variant attributes
WHEN the component declares styles
THEN the component should use class-variance-authority to consolidate the style attributes and class names

Note: This change should result in NO changes to the look and feel of the application. All existing variants and their associated classes should be preserved.

Additional context

Add any other context about the story here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions