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
pull/362/head^2
Andreas 2021-03-07 14:38:38 +01:00 zatwierdzone przez GitHub
rodzic fbbfeb00db
commit 1d174cfdf5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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