Skip to content

Wildcard V2: <Icon /> Implementation

Administrator requested to merge contractors/SG-27667 into main

Created by: gitstart-sourcegraph

Wildcard implementation of the component.

See Wildcard V2 - Planned work for more context

Acceptance criteria

  • Component is implemented within Wildcard
  • Component has tests
  • Component is accessible
  • Component matches Figma designs

Refs

Implementation details

  1. Add new to the Wildcard package.
    • A wrapper component that receives svg and applies the icon-inline class.
    • Copy the existing global styles to the component CSS module.
    • Remove redundant classes that we don't use in the codebase.
  2. Create a basic Storybook story that shows component usage.
  3. Use the component as a blueprint for the new component.
  4. Component API:

<Icon svg={CloudOutlineIcon} />

Merge request reports

Loading