Merge remote-tracking branch 'origin/v14/dev' into contrib

This commit is contained in:
Jacob Overgaard
2024-05-23 14:32:53 +02:00
19 changed files with 1685 additions and 29 deletions

View File

@@ -19,6 +19,7 @@ const createInput = (opts: {
autocomplete: AutoFill;
label: string;
inputmode: string;
autofocus?: boolean;
}) => {
const input = document.createElement('input');
input.type = opts.type;
@@ -28,6 +29,7 @@ const createInput = (opts: {
input.required = true;
input.inputMode = opts.inputmode;
input.ariaLabel = opts.label;
input.autofocus = opts.autofocus || false;
return input;
};
@@ -171,6 +173,7 @@ export default class UmbAuthElement extends UmbLitElement {
autocomplete: 'username',
label: labelUsername,
inputmode: this.usernameIsEmail ? 'email' : '',
autofocus: true,
});
this._passwordInput = createInput({
id: 'password-input',