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
This commit is contained in:
Andreas
2021-03-07 14:38:38 +01:00
committed by GitHub
parent fbbfeb00db
commit 1d174cfdf5

View File

@@ -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);