mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
fix(v2): various improvements for accessibility (#2442)
This commit is contained in:
parent
15a21ace93
commit
3052ef14e5
5 changed files with 13 additions and 6 deletions
|
@ -77,8 +77,11 @@ function ColorGenerator({children, minHeight, url}) {
|
|||
return (
|
||||
<div>
|
||||
<p>
|
||||
<strong className="margin-right--sm">Primary Color:</strong>{' '}
|
||||
<label htmlFor="primary_color">
|
||||
<strong className="margin-right--sm">Primary Color:</strong>
|
||||
</label>{' '}
|
||||
<input
|
||||
id="primary_color"
|
||||
className={styles.input}
|
||||
defaultValue={baseColor}
|
||||
onChange={event => {
|
||||
|
@ -127,6 +130,7 @@ function ColorGenerator({children, minHeight, url}) {
|
|||
0
|
||||
) : (
|
||||
<input
|
||||
aria-label={`${variableName} CSS variable name`}
|
||||
className={styles.input}
|
||||
type="number"
|
||||
value={adjustmentInput}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue