Tailwind the Language picker

Changes the style and gives Class the ability to receive css-classes. There should also be a label-text given; something like "Change language" which is then hidden for `sr-only`.
This commit is contained in:
Tobias 2021-01-17 21:06:54 +01:00
parent 415010ba47
commit 40b6b97521
2 changed files with 12 additions and 10 deletions

View file

@ -16,7 +16,7 @@ export default class LanguagePicker {
return new DropDown(label, languages.map(lang => {
return {value: lang, shown: lang}
}
), Locale.language);
), Locale.language, 'sr-only', 'bg-indigo-100 p-1 rounded hover:bg-indigo-200');
}