Make TextInput label real, add aria-label to icon buttons

This commit is contained in:
Ken-Håvard Lieng 2020-05-12 07:48:12 +02:00
parent 9581a63e81
commit 4b8491cf99
7 changed files with 124 additions and 97 deletions

View file

@ -1,9 +1,9 @@
import React from 'react';
import classnames from 'classnames';
const Checkbox = ({ name, label, topLabel, ...props }) => (
const Checkbox = ({ name, label, topLabel, classNameLabel, ...props }) => (
<label
className={classnames('checkbox', {
className={classnames('checkbox', classNameLabel, {
'top-label': topLabel
})}
htmlFor={name}