Skip to content

Commit 5b4ac69

Browse files
Merge pull request #435 from communitybridge/fix/text-change
Added title and color change
2 parents 24a3d92 + 51dba95 commit 5b4ac69

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

src/app/app.component.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@
66
<app-alert></app-alert>
77
<div *ngIf="!showDashboard" class="wrapper vcenter-item">
88
<div class="box">
9+
<div class="consent-title">Consent</div>
10+
911
<app-checkbox [checked]="hasTermAccepted" text="I hereby certify that I am not, and/or the organization I am representing is not"
10-
(checkboxEmitter)="onClickTermAccepted($event)" fontSize="16px" topMargin="5px" bold="true">
12+
(checkboxEmitter)="onClickTermAccepted($event)" fontSize="16px" topMargin="5px" bold="true" [required]="true">
1113
</app-checkbox>
1214
<ul class="mt-2" style="width: 800px;">
1315
<li>located in Cuba, Iran, North Korea, Syria, the Crimea Region of Ukraine, or the Russian-controlled areas of the Donetsk or Luhansk regions of Ukraine;
1416
</li>
1517
<li>owned or controlled by, acting for or on behalf of, or an individual or entity that has in the past acted for or on behalf of the Government of Cuba,
1618
Iran, North Korea, Syria, or Venezuela; or</li>
17-
<li>listed as a blocked person by the U.S. Department of the Treasury’s <a href="https://ofac.treasury.gov/sanctions-programs-and-country-information" target="_blank">Office of Foreign Assets Control (OFAC)</a>
19+
<li>listed as a blocked person by the U.S. Department of the Treasury’s
20+
<a style="color: #0099cc;" href="https://ofac.treasury.gov/sanctions-programs-and-country-information" target="_blank">Office of Foreign Assets Control (OFAC)</a>
1821
or directly or indirectly owned 50 percent or more by such a listed person
1922
</li>
2023
</ul>

src/app/app.component.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
min-height: calc(100vh - 125px);
77
}
88

9+
.consent-title{
10+
font-size: 24px;
11+
font-weight: bold;
12+
margin-bottom: 20px;
13+
text-align: center;
14+
}
15+
916
.vcenter-item{
1017
display: flex;
1118
align-items: center;

src/app/shared/components/checkbox/checkbox.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
SPDX-License-Identifier: MIT -->
33

44
<label class="container">
5-
<span [ngStyle]="{'font-size': fontSize, 'font-weight': bold ? 'bold' : 'normal'}">{{text}}</span>
5+
<span [ngStyle]="{'font-size': fontSize, 'font-weight': bold ? 'bold' : 'normal'}">
6+
<span *ngIf="required" style="color: red;padding-right: 2px;">*</span>
7+
{{text}}
8+
</span>
69
<input type="checkbox" [checked]="checked" (click)="onCheckboxClick()">
710
<span class="checkmark" [ngStyle]="{'top': topMargin}"></span>
811
</label>

src/app/shared/components/checkbox/checkbox.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class CheckboxComponent {
1414
@Input() fontSize: string;
1515
@Input() topMargin: string;
1616
@Input() bold: boolean;
17+
@Input() required: boolean;
1718
@Output() checkboxEmitter: EventEmitter<any> = new EventEmitter<any>();
1819

1920
constructor() {}

0 commit comments

Comments
 (0)