remember me checkbox login form

This commit is contained in:
Fran Jurmanović
2021-07-12 22:26:32 +02:00
parent 836bbd47e2
commit ac13cdcc11
4 changed files with 44 additions and 17 deletions

View File

@@ -131,7 +131,10 @@ class InputFieldElement extends BaseComponentElement {
/>`;
};
return html`<div class="input-main" data-target="input-field.main">
return html`<div
class="input-main${this.type === 'checkbox' ? ' input-main--checkbox' : ''}"
data-target="input-field.main"
>
${renderMessage(this.label)}${renderError(this.error)} ${renderInput(this.type)}
</div>`;
};

View File

@@ -3,7 +3,7 @@ import { html, TemplateResult } from 'core/utils';
import { AppMainElement } from 'components/app-main/AppMainElement';
import { BaseComponentElement } from 'common/';
import { deviceWidths } from 'core/constants';
import { MenuLayoutElement } from 'layouts';
import { MenuLayoutElement } from 'layouts/';
@controller
class MenuItemElement extends BaseComponentElement {