Skip to content

Commit

Permalink
description code and backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 21, 2024
1 parent 84f8b12 commit c3e7322
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions scripts/component-metadata/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@
"constant": "<FIGMA_AVATARS_AVATAR>",
"description": [
"Initials should be single e.g. A, B, or C, and not multiple e.g. AA, BB, or CC.",
"\n\nThis is because the widths of the avatars would force the text to overflow outside."
"This is because the widths of the avatars would force the text to overflow outside."
]
},
"0b11c715d3fe9e943dff8e33af939b58e17f3e6c": {
Expand Down Expand Up @@ -2090,7 +2090,7 @@
},
"f978029be2d6f6ac796331cea2777975f0cad36f": {
"id": "2142:11380",
"page": "Card",
"page": "Cards",
"name": "Card",
"constant": "<FIGMA_CARDS_CARD>",
"description": [
Expand All @@ -2101,31 +2101,31 @@
},
"078d7ddb2d9b20ef5299787dfb1beb6de4197dc6": {
"id": "7753:4465",
"page": "Card",
"page": "Cards",
"name": "Product Info Card",
"constant": "<FIGMA_CARDS_PRODUCT_INFO_CARD>"
},
"cb136f29ea184727b1f843e1c862ba473f49bb24": {
"id": "7722:3736",
"page": "Card",
"page": "Cards",
"name": "Pricing Card",
"constant": "<FIGMA_CARDS_PRICING_CARD>"
},
"74df5146391045b00ade5e1cbf645af21a1b4e95": {
"id": "7717:3946",
"page": "Card",
"page": "Cards",
"name": "Testimonial Card",
"constant": "<FIGMA_CARDS_TESTIMONIAL_CARD>"
},
"f43470a36d22891f8762ae7b3cc80b10470f3ac6": {
"id": "2236:15082",
"page": "Card",
"page": "Cards",
"name": "Stats Card",
"constant": "<FIGMA_CARDS_STATS_CARD>"
},
"b130f2e5e96d47c2a368da560da510a97eb88c99": {
"id": "2236:16106",
"page": "Card",
"page": "Cards",
"name": "Review Card",
"constant": "<FIGMA_CARDS_REVIEW_CARD>"
},
Expand All @@ -2136,9 +2136,9 @@
"constant": "<FIGMA_DIALOG_DIALOG_BODY>",
"description": [
"Overlays have a maximum width of 600, to prevent long lines of text.",
"\n\nWhen using Bottom Sheets, override the auto layout settings in the ❖ Dialog, so that it is anchored to the bottom.",
"\n\nWhen using the ❖ Dialog on smaller screens, you may want to add horizontal padding so that it isn’t full bleed.",
"\n\nThe body of Bottom Sheet has a min-height of 160, so that by default it covers a large portion of the small device’s height.",
"When using Bottom Sheets, override the auto layout settings in the ❖ Dialog, so that it is anchored to the bottom.",
"When using the ❖ Dialog on smaller screens, you may want to add horizontal padding so that it isn’t full bleed.",
"The body of Bottom Sheet has a min-height of 160, so that by default it covers a large portion of the small device’s height.",
"Keywords: popup, modal"
]
},
Expand Down Expand Up @@ -2340,21 +2340,21 @@
},
"b51fb5eab70460324a0b894a11ed9659dcddc0b0": {
"id": "56:8830",
"page": "Tag",
"page": "Tags",
"name": "Tag",
"constant": "<FIGMA_TAGS_TAG>",
"description": ["Keywords: label, chip, badge"]
},
"571be82ead6b25335d6235ae57737e9da066153f": {
"id": "157:10352",
"page": "Tag",
"page": "Tags",
"name": "Tag Toggle Group",
"constant": "<FIGMA_TAGS_TAG_TOGGLE_GROUP>",
"description": ["Keywords: filters"]
},
"016bbfc41a707581b4de04e3e6a68c89bc0f9e55": {
"id": "157:10316",
"page": "Tag",
"page": "Tags",
"name": "Tag Toggle",
"constant": "<FIGMA_TAGS_TAG_TOGGLE>",
"description": ["Keywords: filter"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/component-metadata/exportComponentJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ figma.root.children.reduce((into, page) => {
constant:
`<FIGMA_${pageName.replace(/ /g, "_")}_${name.replace(/ /g, "_")}>`.toUpperCase(),
description: item.description
? item.description.split("\n\n\n")
? item.description.split(/\n\n+/)
: undefined,
};
return into;
Expand Down

0 comments on commit c3e7322

Please sign in to comment.