mirror of
https://github.com/bendtherules/demo-trello-app.git
synced 2026-08-18 13:42:40 +00:00
NewTaskList - Add a11y label
This commit is contained in:
@@ -11,7 +11,9 @@ export function NewTaskListPrompt() {
|
||||
|
||||
return (
|
||||
<div className={styles.listContainer}>
|
||||
<label className="sr-only" for="createNewList">Create new list</label>
|
||||
<input
|
||||
id="createNewList"
|
||||
className={styles.newListInput}
|
||||
type="text"
|
||||
placeholder="+ Create list"
|
||||
|
||||
@@ -21,3 +21,16 @@ code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
/* Only show for screen readers */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; /* added line */
|
||||
border: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user