Skip to content

Add Code Connect mappings for icons#761

Open
mkernohanbc wants to merge 5 commits into
mainfrom
670-code-connect-icons
Open

Add Code Connect mappings for icons#761
mkernohanbc wants to merge 5 commits into
mainfrom
670-code-connect-icons

Conversation

@mkernohanbc

@mkernohanbc mkernohanbc commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This PR closes #670. It adds Code Connect mapping files for icons that currently exist as components in both Figma and React.

There are a small number of React components that aren't used in Figma, and a larger number of icon components in Figma that aren't currently represented in React.

This change doesn't touch existing code — it simply adds new *.figma.ts files alongside each component. Currently, the mappings are basic (i.e. they just point to the right component to import.) The icon components in Figma don't have much in the way of their own controls or properties, so this change is independent of #760.

@mkernohanbc mkernohanbc added this to the Components v0.9.0 milestone Jun 26, 2026
@mkernohanbc mkernohanbc self-assigned this Jun 26, 2026
@mkernohanbc mkernohanbc requested a review from a team as a code owner June 26, 2026 19:10
@mkernohanbc mkernohanbc added the react-components Changes or issues affecting the design-system-react-components package label Jun 26, 2026
@mkernohanbc mkernohanbc linked an issue Jun 26, 2026 that may be closed by this pull request
@mkernohanbc mkernohanbc requested a review from ty2k June 26, 2026 22:55
@ty2k ty2k requested a review from Copilot June 26, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Figma Code Connect mapping files for a set of icon React components so they can be referenced from the Design System Figma library (per #670) without changing runtime component code.

Changes:

  • Introduces new *.figma.ts Code Connect mapping files alongside existing icon components.
  • Each mapping currently provides basic import + example usage wiring for the corresponding icon.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
packages/react-components/src/components/Icons/SvgPlusIcon/SvgPlusIcon.figma.ts Code Connect mapping for SvgPlusIcon.
packages/react-components/src/components/Icons/SvgMinusIcon/SvgMinusIcon.figma.ts Code Connect mapping for SvgMinusIcon.
packages/react-components/src/components/Icons/SvgCheckIcon/SvgCheckIcon.figma.ts Code Connect mapping for SvgCheckIcon.
packages/react-components/src/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.figma.ts Code Connect mapping for SvgCheckCircleIcon.
packages/react-components/src/components/Icons/SvgInfoIcon/SvgInfoIcon.figma.ts Code Connect mapping for SvgInfoIcon.
packages/react-components/src/components/Icons/SvgExclamationIcon/SvgExclamationIcon.figma.ts Code Connect mapping for SvgExclamationIcon.
packages/react-components/src/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.figma.ts Code Connect mapping for SvgExclamationCircleIcon.
packages/react-components/src/components/Icons/SvgCloseIcon/SvgCloseIcon.figma.ts Code Connect mapping for SvgCloseIcon.
packages/react-components/src/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.figma.ts Code Connect mapping for SvgChevronUpIcon.
packages/react-components/src/components/Icons/SvgChevronRightIcon/SvgChevronRightIcon.figma.ts Code Connect mapping for SvgChevronRightIcon.
packages/react-components/src/components/Icons/SvgChevronLeftIcon/SvgChevronLeftIcon.figma.ts Code Connect mapping for SvgChevronLeftIcon.
packages/react-components/src/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.figma.ts Code Connect mapping for SvgChevronDownIcon.
packages/react-components/src/components/Icons/SvgCalendarIcon/SvgCalendarIcon.figma.ts Code Connect mapping for SvgCalendarIcon.
packages/react-components/src/components/Icons/SvgPlaceholderIcon/SvgPlaceholderIcon.figma.ts Code Connect mapping for SvgPlaceholderIcon.
packages/react-components/src/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.figma.ts Code Connect mapping for SvgBcOutlineIcon.
packages/react-components/src/components/Icons/SvgBcLogo/SvgBcLogo.figma.ts Code Connect mapping for SvgBcLogo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-components/src/components/Icons/SvgBcLogo/SvgBcLogo.figma.ts Outdated
Comment thread packages/react-components/src/components/Icons/SvgCloseIcon/SvgCloseIcon.figma.ts Outdated
mkernohanbc and others added 3 commits June 26, 2026 16:37
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

react-components Changes or issues affecting the design-system-react-components package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Code Connect mappings for icon components

2 participants