Closed Bug 1990228 Opened 1 year ago Closed 8 months ago

Create a storybook page with icon name mappings

Categories

(Toolkit :: UI Widgets, task, P3)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: mstriemer, Assigned: mstriemer)

References

Details

(Whiteboard: [recomp])

Attachments

(1 external file)

Given a design that references icons in this figma, how is one meant to find the corresponding filename in fx-main / mozilla-central?

Our Figma has a page that lists icons that are ready to be used in designs, but there's no connection to the source so it's not obvious which icon to use or whether the icon is even in the tree.

The first thing that comes to mind for me would be creating icon tokens that point to the chrome:// URL for an icon and linking those up in Figma and displaying them in the tokens table

Should we enforce some format like --icon-<name> or some other format like --icon-<category>-<name> or allow both? Perhaps just having a page in storybook that shows all of the icons at once so they're easier to find would be enough?

{
  "icon": {
    "add": { "value": "chrome://global/skin/icons/plus.svg" },
    "notification": {
      "info": {
        "@base": { "value": "chrome://global/skin/icons/info.svg" },
        "fill": { "value": "chrome://global/skin/icons/info-filled.svg" }
      }
    }
}

Hanna quasi-volunteered (feel free to unassign if I missed a joke!)

Assignee: nobody → hjones
Assignee: hjones → mstriemer
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: