more styling

This commit is contained in:
Thomas Ruoff
2021-02-28 23:28:05 +01:00
parent fcb453b243
commit 0aaccf6966
7 changed files with 53 additions and 34 deletions

View File

@@ -15,15 +15,10 @@ export default function Select({
}) {
return (
<>
<label htmlFor={name} className="block text-sm font-medium text-gray-700">
<label htmlFor={name} className="pb-label">
{text}
</label>
<select
name={name}
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
onChange={onchange.bind(null, name)}
value={value}
>
<select name={name} className="pb-select" onChange={onchange.bind(null, name)} value={value}>
{options.map((option) => (
<option value={option.value} key={option.value}>
{option.name}