Skip to content

Commit

Permalink
docs: remove extra whitespace in css custom properties values (#1759)
Browse files Browse the repository at this point in the history
* docs: remove extra whitespace in css custom properties values

* docs: remove trims and accidental class
  • Loading branch information
zeroedin authored Aug 15, 2024
1 parent 4eaf48b commit 026fd00
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/_plugins/shortcodes/renderCodeDocs.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,8 @@ class Renderers {
<tr>
<td data-label="CSS Property"><code>${prop.name}</code></td>
<td data-label="Description">${innerMD(prop.description ?? '')}</td>
<td data-label="Default">${!prop.default?.startsWith('#') ? html`
<code>` : html`
<code data-color="${prop.default}"
style="--color:${prop.default}">`}
${prop.default ?? '—'}
</code>
<td data-label="Default">
${!prop.default?.startsWith('#') ? html`<code>` : html`<code data-color="${prop.default}" style="--color:${prop.default}">`}${prop.default ?? '—'}</code>
</td>
</tr>`).join('\n')}
</tbody>
Expand Down

0 comments on commit 026fd00

Please sign in to comment.