mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user