From 1d174cfdf5f46088b74b7820b859146efb15e7d8 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sun, 7 Mar 2021 14:38:38 +0100 Subject: [PATCH] fix css custom prop name in docs (#360) * fix css custom prop name in docs to see the actual custom property again instead of the string 'prop' * remove trailing colon from property name --- scripts/make-metadata.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make-metadata.cjs b/scripts/make-metadata.cjs index 6cb8b174d..cf4b5cc17 100644 --- a/scripts/make-metadata.cjs +++ b/scripts/make-metadata.cjs @@ -160,7 +160,7 @@ components.map(async component => { const tags = parsed[0] ? parsed[0].tags : []; const cssCustomProperties = tags .filter(tag => tag.tag === 'prop') - .map(tag => api.cssCustomProperties.push({ name: tag.tag, description: tag.description })); + .map(tag => api.cssCustomProperties.push({ name: tag.name.slice(0, -1), description: tag.description })); } metadata.components.push(api);