Skip to content

Commit

Permalink
Add tab-index to checkboxes on self-registration (bcgov#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes-Reid authored and rafaelponcedeleon committed Jan 22, 2020
1 parent b0fc1ab commit 509be05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ <h2 class="blue-header h3">Evacuee Family Information
</app-font-awesome-icon>
</h2>
<section>
<p class="required">Are you registering family members who live in the same household with you whom you know are safe?</p>
<div class="form-group">
<p class="required">Are you registering immediate family members who live in the same household with you whom you know are safe?</p>
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('registeringFamilyMembers')" class="form-check-input" value="yes" formControlName="registeringFamilyMembers" id="registeringFamilyMembersYes">
<label class="form-check-label" for="registeringFamilyMembersYes">Yes</label>
Expand Down Expand Up @@ -200,7 +200,7 @@ <h2 class="blue-header h3">Evacuee Family Information
<h2 class="blue-header h3">Primary Residence &amp; Contact Details</h2>
<section>
<p class="required">Is your primary residence within BC?</p>
<div class="form-group mb-0">
<div class="form-group mb-0" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('primaryResidenceInBC')" class="form-check-input" formControlName="primaryResidenceInBC" [value]="true" id="primaryResidenceInBCTrue">
<label class="form-check-label" for="primaryResidenceInBCTrue">Yes</label>
Expand Down Expand Up @@ -248,7 +248,7 @@ <h2 class="blue-header h3">Primary Residence &amp; Contact Details</h2>
<h2 class="blue-header h3">Mailing Address</h2>
<section>
<p class="required">Is your mailing address the same as your primary residence?</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('mailingAddressSameAsPrimary')" class="form-check-input" formControlName="mailingAddressSameAsPrimary" [value]="true" (click)="nullMailingAddress()" id="mailingAddressSameAsPrimaryTrue">
<label class="form-check-label" for="mailingAddressSameAsPrimaryTrue">Yes</label>
Expand All @@ -261,7 +261,7 @@ <h2 class="blue-header h3">Mailing Address</h2>
</div>
<section *ngIf="ui.showMailingAddressSelector()" class="feature-block">
<p class="required">Is your mailing address within BC?</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" class="form-check-input" formControlName="mailingAddressInBC" [value]="true" id="mailingAddressInBCTrue">
<label class="form-check-label" for="mailingAddressInBCTrue">Yes</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ <h1 class="mt-3">Register as an Evacuee</h1>
<h2 class="blue-header h3">INSURANCE</h2>
<section>
<p class="required font-weight-bold">Do you have insurance to cover your immediate needs?</p>
<div class="form-group">
<div class="form-check" (click)='openInsuranceInfoModal()'>
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('insuranceCode')" class="form-check-input" value="yes" formControlName="insuranceCode" id="insuranceCodeYes">
<label class="form-check-label" for="insuranceCodeYes">Yes</label>
</div>
Expand Down Expand Up @@ -37,7 +37,7 @@ <h2 class="blue-header h3">INSURANCE</h2>
<h2 class="blue-header h3">FOOD</h2>
<section>
<p class="required font-weight-bold">Do you have food for you and your family while you are evacuated? If you are unsure, select "No".</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('requiresFood')" class="form-check-input" [value]="true" formControlName="requiresFood" id="requiresFoodTrue">
<label class="form-check-label" for="requiresFoodTrue">Yes</label>
Expand All @@ -49,7 +49,7 @@ <h2 class="blue-header h3">FOOD</h2>
<span [class.d-block]="invalid('requiresFood')" class="invalid-feedback">{{validationErrors['requiresFood']}}</span>
</div>
<p class="required font-weight-bold">Do you have any dietary requirements?</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('dietaryNeeds')" class="form-check-input" [value]="true" formControlName="dietaryNeeds" id="dietaryNeedsTrue">
<label class="form-check-label" for="dietaryNeedsTrue">Yes</label>
Expand All @@ -65,7 +65,7 @@ <h2 class="blue-header h3">FOOD</h2>
<h2 class="blue-header h3">LODGING</h2>
<section>
<p class="required font-weight-bold">Are you able to provide lodging for you and your family while you are evacuated? This could include staying with relatives/friends or staying in a hotel. If you are unsure, select "No".</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('requiresAccommodation')" class="form-check-input" [value]="true" formControlName="requiresAccommodation" id="requiresAccommodationTrue">
<label class="form-check-label" for="requiresAccommodationTrue">Yes</label>
Expand All @@ -81,7 +81,7 @@ <h2 class="blue-header h3">LODGING</h2>
<h2 class="blue-header h3">CLOTHING</h2>
<section>
<p class="required font-weight-bold">Do you have appropriate clothing for you and your family while you are evacuated? This includes warm clothing should there be extreme winter conditions. If you are unsure, select "No".</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('requiresClothing')" class="form-check-input" [value]="true" formControlName="requiresClothing" id="requiresClothingTrue">
<label class="form-check-label" for="requiresClothingTrue">Yes</label>
Expand All @@ -97,7 +97,7 @@ <h2 class="blue-header h3">CLOTHING</h2>
<h2 class="blue-header h3">TRANSPORTATION</h2>
<section>
<p class="required font-weight-bold">Do you have transportation to meet your immediate needs? If you are unsure, select "No".</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('requiresTransportation')" class="form-check-input" [value]="true" formControlName="requiresTransportation" id="requiresTransportationTrue">
<label class="form-check-label" for="requiresTransportationTrue">Yes</label>
Expand All @@ -113,7 +113,7 @@ <h2 class="blue-header h3">TRANSPORTATION</h2>
<h2 class="blue-header h3">INCIDENTALS</h2>
<section>
<p class="required font-weight-bold">Do you have necessities for you and your family while you are evacuated? This could include miscellaneous items such as personal hygiene products, laundry supplies and/or pet food. If you are unsure, select "No".</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('requiresIncidentals')" class="form-check-input" [value]="true" formControlName="requiresIncidentals" id="requiresIncidentalsTrue">
<label class="form-check-label" for="requiresIncidentalsTrue">Yes</label>
Expand All @@ -129,7 +129,7 @@ <h2 class="blue-header h3">INCIDENTALS</h2>
<h2 class="blue-header h3">MEDICATION</h2>
<section>
<p class="required font-weight-bold">Do you (or anyone registering with you) take medication?</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('medicationNeeds')" class="form-check-input" [value]="true" formControlName="medicationNeeds" id="medicationNeedsTrue">
<label class="form-check-label" for="medicationNeedsTrue">Yes</label>
Expand All @@ -148,7 +148,7 @@ <h2 class="blue-header h3">MEDICATION</h2>
<h2 class="blue-header h3">PETS</h2>
<section>
<p class="required font-weight-bold">Do you have any pets with you?</p>
<div class="form-group">
<div class="form-group" tabindex="0">
<div class="form-check">
<input type="radio" [class.is-invalid]="invalid('hasPets')" class="form-check-input" [value]="true" formControlName="hasPets" id="hasPetsTrue">
<label class="form-check-label" for="hasPetsTrue">Yes</label>
Expand Down

0 comments on commit 509be05

Please sign in to comment.