Skip to content

Commit

Permalink
Merge pull request #252 from usnistgov/fix/datacart-number
Browse files Browse the repository at this point in the history
Changed the shape of the badge at top right corner from square to circle
  • Loading branch information
RayPlante authored May 30, 2022
2 parents b197d9f + 8ae5d72 commit 31ba186
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions angular/src/app/frame/headbar.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,11 @@ a:link, a:hover, a:visited{
background-color: transparent;
text-decoration: none;
}

.badge-style {
background-color: var(--nist-green-default);
color: white;
border-radius: 100%;
padding: 2px 2px 2px 2px;
font-size: small;
}
2 changes: 1 addition & 1 deletion angular/src/app/frame/headbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<a href="{{globalCartUrl}}" target="_blank" [ngStyle]="{'color':getMenuColor('Cart')}"
[ngClass]="{'disabled':editEnabled,'enabled':!editEnabled}"><b>Cart</b><i
class="faa faa-shopping-cart faa-1x" [ngStyle]="{'color':getMenuColor('Cart')}"></i><span
class="w3-badge badge-pill badge-notify">&nbsp;{{cartLength}}&nbsp;</span></a>
class="w3-badge badge-pill badge-notify badge-style">&nbsp;{{cartLength}}&nbsp;</span></a>
<span *ngIf="editEnabled && editstatsvc.userID">
| <i class="faa faa-user-circle faa-1x icon-white" style="color: white; cursor: pointer;"
data-toggle="tooltip" title="{{editstatsvc.userID}}" (click)="showUserId()"></i>
Expand Down

0 comments on commit 31ba186

Please sign in to comment.