Skip to content

Commit

Permalink
[PS-1872] remember me label triggers toggle (bitwarden#4046)
Browse files Browse the repository at this point in the history
* remember me label triggers toggle

* fix using new bitCheckbox

* changes using merge

* Update apps/web/src/app/accounts/login/login.component.html

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>

* CheckboxModule imported

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
  • Loading branch information
jcuenca95 and djsmith85 authored Jan 17, 2023
1 parent 11a30ea commit a9db6b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 4 additions & 12 deletions apps/web/src/app/accounts/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,10 @@
</div>

<div class="tw-mb-3 tw-flex tw-items-start">
<div class="tw-flex tw-h-6 tw-items-center">
<input
id="login_input_remember-email"
class="tw-w-4 tw-rounded tw-border"
bitInput
type="checkbox"
formControlName="rememberEmail"
/>
</div>
<bit-label class="ml-2">
{{ "rememberEmail" | i18n }}
</bit-label>
<bit-form-control class="tw-mb-0">
<input type="checkbox" bitCheckbox formControlName="rememberEmail" />
<bit-label>{{ "rememberEmail" | i18n }}</bit-label>
</bit-form-control>
</div>

<div class="tw-mb-3">
Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/app/accounts/login/login.module.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { NgModule } from "@angular/core";

import { CheckboxModule } from "@bitwarden/components";

import { SharedModule } from "../../shared";

import { LoginWithDeviceComponent } from "./login-with-device.component";
import { LoginComponent } from "./login.component";

@NgModule({
imports: [SharedModule],
imports: [SharedModule, CheckboxModule],
declarations: [LoginComponent, LoginWithDeviceComponent],
exports: [LoginComponent, LoginWithDeviceComponent],
})
Expand Down

0 comments on commit a9db6b2

Please sign in to comment.