docs(docs-infra): replace non-interactive buttons with spans

These elements are not interactive, so using <button> is misleading for accessibility
(screen readers and keyboard navigation expect an action).
This commit is contained in:
SkyZeroZx
2026-03-20 13:26:54 -05:00
committed by Leon Senft
parent 293ac66a9f
commit ad3991cd0b
2 changed files with 13 additions and 4 deletions
@@ -27,14 +27,14 @@ export function CliCommandReference(entry: CliCommandRenderable) {
<div className={'shiki line cli'}>
ng {commandName(entry, command)}
{entry.argumentsLabel && (
<button member-id={'Arguments'} className="shiki-ln-line-argument">
<span member-id={'Arguments'} className="shiki-ln-line-argument">
{entry.argumentsLabel}
</button>
</span>
)}
{entry.optionsLabel && (
<button member-id={'Options'} className="shiki-ln-line-option">
<span member-id={'Options'} className="shiki-ln-line-option">
{entry.optionsLabel}
</button>
</span>
)}
</div>
</code>
+9
View File
@@ -36,6 +36,15 @@ $code-font-size: 0.875rem;
}
}
.shiki.line.cli {
span {
color: var(--quaternary-contrast);
font-family: var(--inter-font);
font-weight: 600;
font-size: 13px;
}
}
.docs-light-mode .shiki {
color: var(--shiki-light);
background-color: var(--shiki-light-bg);