Skip to content

Commit

Permalink
Fix portal submission detail banners and crown owner dialog buttons (#…
Browse files Browse the repository at this point in the history
…1637)

* Remove duplicated absolute positioned banner that hid page elements

* Update crowner owner modal buttons styling and apply padding to similar modal actions
  • Loading branch information
sandratoh authored Apr 30, 2024
1 parent 95dda05 commit 70c3446
Show file tree
Hide file tree
Showing 17 changed files with 78 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.actions {
display: flex;
padding: 0 rem(24);
padding: rem(16) rem(24);
width: 100%;
gap: rem(16);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<div aria-hidden="true" class="banner absolute">
<div>
<h4 *ngIf="application">Application ID: {{ application.fileNumber }} | {{ application.type }}</h4>
</div>
<div class="banner-status">
<div>
<div class="subheading2">Status Date</div>
<span *ngIf="application">{{ application.lastStatusUpdate | date }}</span>
</div>
<div>
<div class="subheading2">Application Status</div>
<span *ngIf="application">{{ application.status.label }}</span>
</div>
</div>
</div>
<div class="banner">
<div>
<h4 *ngIf="application">Application ID: {{ application.fileNumber }}</h4>
<h4 *ngIf="application">Application ID: {{ application.fileNumber }} | {{ application.type }}</h4>
</div>
<div class="banner-status">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,15 @@
}
}

.absolute {
position: absolute;
left: 0;
right: 0;
}

.banner {
background-color: colors.$secondary-color;
width: 100%;
width: 100vw;
color: #fff;
padding: rem(16) rem(24);
margin-bottom: rem(32);
margin-bottom: rem(16);
position: relative;
left: 50%;
transform: translateX(-50%);

@media screen and (min-width: $tabletBreakpoint) {
padding: rem(12) rem(36) !important;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<div aria-hidden="true" class="banner absolute">
<div>
<h4 *ngIf="submission">NOI ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
<div class="subheading2">Status Date</div>
<span *ngIf="submission">{{ submission.lastStatusUpdate | date }}</span>
</div>
<div>
<div class="subheading2">NOI Status</div>
<span *ngIf="submission">{{ submission.status.label }}</span>
</div>
</div>
</div>
<div class="banner">
<div>
<h4 *ngIf="submission">NOI ID: {{ submission.fileNumber }}</h4>
<h4 *ngIf="submission">NOI ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@
}
}

.absolute {
position: absolute;
left: 0;
right: 0;
}

.banner {
background-color: colors.$secondary-color;
width: 100%;
width: 100vw;
color: #fff;
padding: rem(16) rem(24);
margin-bottom: rem(32);
margin-bottom: rem(16);
position: relative;
left: 50%;
transform: translateX(-50%);

@media screen and (min-width: $tabletBreakpoint) {
padding: rem(12) rem(36) !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.actions {
display: flex;
padding: 0 rem(24);
padding: rem(16) rem(24);
width: 100%;
gap: rem(16);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<div aria-hidden="true" class="banner absolute">
<div>
<h4 *ngIf="submission">Notification ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
<div class="subheading2">Status Date</div>
<span *ngIf="submission">{{ submission.lastStatusUpdate | date }}</span>
</div>
<div>
<div class="subheading2">Notification Status</div>
<span *ngIf="submission">{{ submission.status.label }}</span>
</div>
</div>
</div>
<div class="banner">
<div>
<h4 *ngIf="submission">Notification ID: {{ submission.fileNumber }}</h4>
<h4 *ngIf="submission">Notification ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@
}
}

.absolute {
position: absolute;
left: 0;
right: 0;
}

.banner {
background-color: colors.$secondary-color;
width: 100%;
width: 100vw;
color: #fff;
padding: rem(16) rem(24);
margin-bottom: rem(32);
margin-bottom: rem(16);
position: relative;
left: 50%;
transform: translateX(-50%);

@media screen and (min-width: $tabletBreakpoint) {
padding: rem(12) rem(36) !important;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<div aria-hidden="true" class="banner absolute">
<div>
<h4 *ngIf="submission">Application ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
<div class="subheading2">Status Date</div>
<span *ngIf="submission">{{ submission.lastStatusUpdate | date }}</span>
</div>
<div>
<div class="subheading2">Application Status</div>
<span *ngIf="submission">{{ submission.status.label }}</span>
</div>
</div>
</div>
<div class="banner">
<div>
<h4 *ngIf="submission">Application ID: {{ submission.fileNumber }}</h4>
<h4 *ngIf="submission">Application ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@
}
}

.absolute {
position: absolute;
left: 0;
right: 0;
}

.banner {
background-color: colors.$secondary-color;
width: 100%;
width: 100vw;
color: #fff;
padding: rem(16) rem(24);
margin-bottom: rem(32);
margin-bottom: rem(16);
position: relative;
left: 50%;
transform: translateX(-50%);

@media screen and (min-width: $tabletBreakpoint) {
padding: rem(12) rem(36) !important;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<div aria-hidden="true" class="banner absolute">
<div>
<h4 *ngIf="submission">Notice of Intent ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
<div class="subheading2">Status Date</div>
<span *ngIf="submission">{{ submission.lastStatusUpdate | date }}</span>
</div>
<div>
<div class="subheading2">Status</div>
<span *ngIf="submission">{{ submission.status.label }}</span>
</div>
</div>
</div>
<div class="banner">
<div>
<h4 *ngIf="submission">Notice of Intent ID: {{ submission.fileNumber }}</h4>
<h4 *ngIf="submission">Notice of Intent ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@
}
}

.absolute {
position: absolute;
left: 0;
right: 0;
}

.banner {
background-color: colors.$secondary-color;
width: 100%;
width: 100vw;
color: #fff;
padding: rem(16) rem(24);
margin-bottom: rem(32);
margin-bottom: rem(16);
position: relative;
left: 50%;
transform: translateX(-50%);

@media screen and (min-width: $tabletBreakpoint) {
padding: rem(12) rem(36) !important;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<div aria-hidden="true" class="banner absolute">
<div>
<h4 *ngIf="submission">Notification ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
<div class="subheading2">Status Date</div>
<span *ngIf="submission">{{ submission.lastStatusUpdate | date }}</span>
</div>
<div>
<div class="subheading2">Status</div>
<span *ngIf="submission">{{ submission.status.label }}</span>
</div>
</div>
</div>
<div class="banner">
<div>
<h4 *ngIf="submission">Notification ID: {{ submission.fileNumber }}</h4>
<h4 *ngIf="submission">Notification ID: {{ submission.fileNumber }} | {{ submission.type }}</h4>
</div>
<div class="banner-status">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@
}
}

.absolute {
position: absolute;
left: 0;
right: 0;
}

.banner {
background-color: colors.$secondary-color;
width: 100%;
width: 100vw;
color: #fff;
padding: rem(16) rem(24);
margin-bottom: rem(32);
margin-bottom: rem(16);
position: relative;
left: 50%;
transform: translateX(-50%);

@media screen and (min-width: $tabletBreakpoint) {
padding: rem(12) rem(36) !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,8 @@ <h2 *ngIf="isEdit">Edit Government Contact</h2>
</form>
</div>

<div mat-dialog-actions class="actions">
<button
*ngIf="isEdit"
mat-stroked-button
color="warn"
style="margin-right: auto"
class="delete-btn"
(click)="onDelete()"
>
Delete Contact
</button>
<div mat-dialog-actions class="actions" align="end">
<button *ngIf="isEdit" mat-stroked-button color="warn" class="delete-btn" (click)="onDelete()">Delete Contact</button>
<div class="btn-group">
<button mat-stroked-button (click)="onClose()" style="margin-left: auto">Cancel</button>
<button mat-flat-button color="primary" *ngIf="!isEdit" [disabled]="isLoading" (click)="onCreate()">Add</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,32 @@

.actions {
display: flex;
justify-content: space-between;
padding: 10px 24px 10px 24px;
button:not(:last-child) {
margin-right: rem(8) !important;
padding: rem(16) rem(24);
flex-direction: column-reverse;
gap: rem(8);

@media screen and (min-width: $tabletBreakpoint) {
flex-direction: unset;
gap: unset;
margin-top: unset;
}
}

.btn-group {
width: 100%;
display: flex;
gap: rem(16);

button {
flex: 1 1 auto;
}

@media screen and (min-width: $tabletBreakpoint) {
width: unset;

button {
flex: unset;
}
}
}

Expand All @@ -26,4 +48,14 @@
.warning-banner {
padding: 0 !important;
}
}
}

.delete-btn {
order: -1;
margin-right: auto !important;
width: 100%;

@media screen and (min-width: $tabletBreakpoint) {
width: unset;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

.actions {
display: flex;
padding: 0 rem(24);
padding: rem(16) rem(24);
flex-direction: column-reverse;
gap: rem(8);
margin-top: rem(8);

@media screen and (min-width: $tabletBreakpoint) {
flex-direction: unset;
Expand Down

0 comments on commit 70c3446

Please sign in to comment.