Skip to content

Commit

Permalink
Fix #17621: Removed duplicate class attribute in examples of DataView (
Browse files Browse the repository at this point in the history
…#17620)

* Remove duplicate class attribute in example basicdoc.ts

* Remove duplicate class attribute in example paginationdoc.ts
  • Loading branch information
Wendelstein7 authored Feb 14, 2025
1 parent 50362c6 commit 5c502bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/showcase/doc/dataview/basicdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Component, inject, signal } from '@angular/core';
<p-dataview #dv [value]="products()">
<ng-template #list let-items>
<div class="grid grid-cols-12 gap-4 grid-nogutter">
<div class="col-span-12" *ngFor="let item of items; let first = first" class="col-span-12">
<div class="col-span-12" *ngFor="let item of items; let first = first">
<div class="flex flex-col sm:flex-row sm:items-center p-6 gap-4" [ngClass]="{ 'border-t border-surface-200 dark:border-surface-700': !first }">
<div class="md:w-40 relative">
<img class="block xl:block mx-auto rounded-border w-full" [src]="'https://primefaces.org/cdn/primeng/images/demo/product/' + item.image" [alt]="item.name" />
Expand Down
2 changes: 1 addition & 1 deletion apps/showcase/doc/dataview/paginationdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Component, signal } from '@angular/core';
<p-dataview #dv [value]="products()" [rows]="5" [paginator]="true">
<ng-template #list let-items>
<div class="grid grid-cols-12 gap-4 grid-nogutter">
<div class="col-span-12" *ngFor="let item of items; let first = first" class="col-span-12">
<div class="col-span-12" *ngFor="let item of items; let first = first">
<div class="flex flex-col sm:flex-row sm:items-center p-6 gap-4" [ngClass]="{ 'border-t border-surface-200 dark:border-surface-700': !first }">
<div class="md:w-40 relative">
<img class="block xl:block mx-auto rounded-border w-full" [src]="'https://primefaces.org/cdn/primeng/images/demo/product/' + item.image" [alt]="item.name" />
Expand Down

0 comments on commit 5c502bb

Please sign in to comment.