Skip to content

Commit

Permalink
fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed Feb 27, 2024
1 parent 8b4355a commit 476e1dc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,19 @@ <h2 class="h4">Sortable</h2>
>
<ng-template pTemplate="header">
<tr>
<th pSortableColumn="code" style="width: 20%">Code <p-sortIcon field="code"></p-sortIcon></th>
<th pSortableColumn="name" style="width: 20%">Name <p-sortIcon field="name"></p-sortIcon></th>
<th pSortableColumn="category" style="width: 20%">
<th scope="col" pSortableColumn="code" style="width: 20%">
Code <p-sortIcon field="code"></p-sortIcon>
</th>
<th scope="col" pSortableColumn="name" style="width: 20%">
Name <p-sortIcon field="name"></p-sortIcon>
</th>
<th scope="col" pSortableColumn="category" style="width: 20%">
Category <p-sortIcon field="category"></p-sortIcon>
</th>
<th pSortableColumn="quantity" style="width: 20%">
<th scope="col" pSortableColumn="quantity" style="width: 20%">
Quantity <p-sortIcon field="quantity"></p-sortIcon>
</th>
<th pSortableColumn="price" style="width: 20%">
<th scope="col" pSortableColumn="price" style="width: 20%">
Price <p-sortIcon field="price"></p-sortIcon>
</th>
</tr>
Expand Down Expand Up @@ -98,28 +102,28 @@ <h2 class="h4">Filterable</h2>
>
<ng-template pTemplate="header">
<tr>
<th style="min-width: 15rem">
<th scope="col" style="min-width: 15rem">
<div class="d-flex align-items-center">
Code
<p-columnFilter type="text" field="code" display="menu"></p-columnFilter>
</div>
</th>
<th style="min-width: 15rem">
<th scope="col" style="min-width: 15rem">
<div class="d-flex align-items-center">
Name
<p-columnFilter type="text" field="name" display="menu"></p-columnFilter>
</div>
</th>
<th style="min-width: 15rem">
<th scope="col" style="min-width: 15rem">
<div class="d-flex align-items-center">
Category
<p-columnFilter type="text" field="category" display="menu"></p-columnFilter>
</div>
</th>
<th style="min-width: 15rem">
<th scope="col" style="min-width: 15rem">
<div class="flex align-items-center">Quantity</div>
</th>
<th style="min-width: 10rem">
<th scope="col" style="min-width: 10rem">
<div class="flex align-items-center">Price</div>
</th>
</tr>
Expand Down Expand Up @@ -152,8 +156,8 @@ <h2 class="h4">Orderable</h2>
>
<ng-template pTemplate="header" let-columns>
<tr>
<th style="width: 3rem"></th>
<th *ngFor="let col of columns" pReorderableColumn>
<th scope="col" style="width: 3rem"></th>
<th scope="col" *ngFor="let col of columns" pReorderableColumn>
{{ col.header }}
</th>
</tr>
Expand Down Expand Up @@ -185,10 +189,10 @@ <h2 class="h4">Selectable</h2>
<ng-template pTemplate="caption"> Multiple Selection with MetaKey </ng-template>
<ng-template pTemplate="header">
<tr>
<th>Code</th>
<th>Name</th>
<th>Category</th>
<th>Quantity</th>
<th scope="col">Code</th>
<th scope="col">Name</th>
<th scope="col">Category</th>
<th scope="col">Quantity</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-product let-rowIndex="rowIndex">
Expand All @@ -214,13 +218,13 @@ <h2 class="h4">With Checkboxes</h2>
>
<ng-template pTemplate="header">
<tr>
<th style="width: 4rem">
<th scope="col" style="width: 4rem">
<p-tableHeaderCheckbox></p-tableHeaderCheckbox>
</th>
<th>Code</th>
<th>Name</th>
<th>Category</th>
<th>Quantity</th>
<th scope="col">Code</th>
<th scope="col">Name</th>
<th scope="col">Category</th>
<th scope="col">Quantity</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-product>
Expand Down Expand Up @@ -248,11 +252,11 @@ <h2 class="h4">With Radio buttons</h2>
>
<ng-template pTemplate="header">
<tr>
<th style="width: 4rem"></th>
<th>Code</th>
<th>Name</th>
<th>Category</th>
<th>Quantity</th>
<th scope="col" style="width: 4rem"></th>
<th scope="col">Code</th>
<th scope="col">Name</th>
<th scope="col">Category</th>
<th scope="col">Quantity</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
}

.p-dropdown,
.p-inputtext,
.p-checkbox-box {
.p-inputtext {
border-radius: 0;
}

.p-checkbox-box {
border-radius: 0;
color: post.$black;
}

Expand Down

0 comments on commit 476e1dc

Please sign in to comment.