Browse Source

Defect/[PM-1887] - Fix Account Creation Terms of Service Checkbox not clickable in Safari (#5240)

* PM-1887 - Fix Account Creation Terms of service checkbox not clickable in Safari. Reworked check for breaches and terms of service checkboxes to be implemented with Tailwind instead of a mix of Tailwind & Bootstrap as well. Confirmed checkboxes still work in Edge, Firefiox, and Chrome as well as Safari now.

* PM-1887 - Add for="<id>" attributes to bit-labels for accessibility.

* PM-1887 - Make ID consistent w/ dashes instead of underlines and dashes.
pull/5241/head
Jared Snider 3 years ago committed by GitHub
parent
commit
aa26bc5e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      apps/web/src/auth/register-form/register-form.component.html

42
apps/web/src/auth/register-form/register-form.component.html

@ -91,31 +91,27 @@
<div [hidden]="!showCaptcha()"> <div [hidden]="!showCaptcha()">
<iframe id="hcaptcha_iframe" height="80"></iframe> <iframe id="hcaptcha_iframe" height="80"></iframe>
</div> </div>
<div class="form-group"> <div class="tw-mb-4 tw-flex tw-items-start">
<div class="form-check"> <input
<input class="mt-1"
class="form-check-input" type="checkbox"
type="checkbox" bitCheckbox
id="checkForBreaches" id="checkForBreaches"
name="CheckBreach" name="CheckBreach"
formControlName="checkForBreaches" formControlName="checkForBreaches"
/> />
<label class="form-check-label" for="checkForBreaches"> <bit-label for="checkForBreaches"> {{ "checkForBreaches" | i18n }}</bit-label>
{{ "checkForBreaches" | i18n }}
</label>
</div>
</div> </div>
<div class="tw-mb-3 tw-flex tw-items-start" *ngIf="showTerms"> <div class="tw-mb-3 tw-flex tw-items-start" *ngIf="showTerms">
<div class="tw-flex tw-h-6 tw-items-center"> <input
<input class="mt-1"
id="register-form_input_accept-policies" id="register-form-input-accept-policies"
class="tw-border-gray-300 tw-w-4 tw-rounded tw-border" bitCheckbox
bitInput type="checkbox"
type="checkbox" formControlName="acceptPolicies"
formControlName="acceptPolicies" />
/>
</div> <bit-label for="register-form-input-accept-policies">
<bit-label class="ml-2">
{{ "acceptPolicies" | i18n }}<br /> {{ "acceptPolicies" | i18n }}<br />
<a href="https://bitwarden.com/terms/" target="_blank" rel="noopener">{{ <a href="https://bitwarden.com/terms/" target="_blank" rel="noopener">{{
"termsOfService" | i18n "termsOfService" | i18n

Loading…
Cancel
Save