diff --git a/scripts/component-metadata/components.json b/scripts/component-metadata/components.json index a8b632b..0d78f33 100644 --- a/scripts/component-metadata/components.json +++ b/scripts/component-metadata/components.json @@ -2046,7 +2046,7 @@ "constant": "", "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": { @@ -2090,7 +2090,7 @@ }, "f978029be2d6f6ac796331cea2777975f0cad36f": { "id": "2142:11380", - "page": "Card", + "page": "Cards", "name": "Card", "constant": "", "description": [ @@ -2101,31 +2101,31 @@ }, "078d7ddb2d9b20ef5299787dfb1beb6de4197dc6": { "id": "7753:4465", - "page": "Card", + "page": "Cards", "name": "Product Info Card", "constant": "" }, "cb136f29ea184727b1f843e1c862ba473f49bb24": { "id": "7722:3736", - "page": "Card", + "page": "Cards", "name": "Pricing Card", "constant": "" }, "74df5146391045b00ade5e1cbf645af21a1b4e95": { "id": "7717:3946", - "page": "Card", + "page": "Cards", "name": "Testimonial Card", "constant": "" }, "f43470a36d22891f8762ae7b3cc80b10470f3ac6": { "id": "2236:15082", - "page": "Card", + "page": "Cards", "name": "Stats Card", "constant": "" }, "b130f2e5e96d47c2a368da560da510a97eb88c99": { "id": "2236:16106", - "page": "Card", + "page": "Cards", "name": "Review Card", "constant": "" }, @@ -2136,9 +2136,9 @@ "constant": "", "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" ] }, @@ -2340,21 +2340,21 @@ }, "b51fb5eab70460324a0b894a11ed9659dcddc0b0": { "id": "56:8830", - "page": "Tag", + "page": "Tags", "name": "Tag", "constant": "", "description": ["Keywords: label, chip, badge"] }, "571be82ead6b25335d6235ae57737e9da066153f": { "id": "157:10352", - "page": "Tag", + "page": "Tags", "name": "Tag Toggle Group", "constant": "", "description": ["Keywords: filters"] }, "016bbfc41a707581b4de04e3e6a68c89bc0f9e55": { "id": "157:10316", - "page": "Tag", + "page": "Tags", "name": "Tag Toggle", "constant": "", "description": ["Keywords: filter"] diff --git a/scripts/component-metadata/exportComponentJSON.js b/scripts/component-metadata/exportComponentJSON.js index 688ca1d..e195537 100644 --- a/scripts/component-metadata/exportComponentJSON.js +++ b/scripts/component-metadata/exportComponentJSON.js @@ -19,7 +19,7 @@ figma.root.children.reduce((into, page) => { constant: ``.toUpperCase(), description: item.description - ? item.description.split("\n\n\n") + ? item.description.split(/\n\n+/) : undefined, }; return into;