Skip to content

Commit

Permalink
Update messages and add line-height
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 10, 2025
1 parent 5e280c4 commit 781a430
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
12 changes: 6 additions & 6 deletions src/app/pages/uikit/messagesdemo.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MessageService, ToastMessageOptions } from 'primeng/api';
import { ButtonModule } from 'primeng/button';
import { InputTextModule } from 'primeng/inputtext';
import { ToastModule } from 'primeng/toast';
import { MessageModule } from 'primeng/message';
import { FormsModule } from '@angular/forms';
import { ToastModule } from 'primeng/toast';

@Component({
selector: 'app-messages-demo',
Expand All @@ -25,13 +25,13 @@ import { FormsModule } from '@angular/forms';
</div>
<div class="font-semibold text-xl mt-4 mb-4">Inline</div>
<div class="flex flex-wrap mb-4 gap-2">
<div class="flex flex-col mb-4 gap-1">
<input pInputText [(ngModel)]="username" placeholder="Username" aria-label="username" class="ng-dirty ng-invalid" />
<p-message severity="error">Username is required</p-message>
<p-message severity="error" variant="simple" size="small">Username is required</p-message>
</div>
<div class="flex flex-wrap gap-2">
<div class="flex flex-col flex-wrap gap-1">
<input pInputText [(ngModel)]="email" placeholder="Email" aria-label="email" class="ng-dirty ng-invalid" />
<p-message severity="error" icon="pi pi-times-circle" />
<p-message severity="error" variant="simple" size="small">Email is required</p-message>
</div>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions src/app/pages/uikit/miscdemo.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { ProgressBarModule } from 'primeng/progressbar';
import { AvatarModule } from 'primeng/avatar';
import { AvatarGroupModule } from 'primeng/avatargroup';
import { CommonModule } from '@angular/common';
import { ScrollTopModule } from 'primeng/scrolltop';
import { SkeletonModule } from 'primeng/skeleton';
import { BadgeModule } from 'primeng/badge';
import { AvatarModule } from 'primeng/avatar';
import { ScrollPanelModule } from 'primeng/scrollpanel';
import { TagModule } from 'primeng/tag';
import { ChipModule } from 'primeng/chip';
import { ButtonModule } from 'primeng/button';
import { ChipModule } from 'primeng/chip';
import { OverlayBadgeModule } from 'primeng/overlaybadge';
import { ProgressBarModule } from 'primeng/progressbar';
import { ScrollPanelModule } from 'primeng/scrollpanel';
import { ScrollTopModule } from 'primeng/scrolltop';
import { SkeletonModule } from 'primeng/skeleton';
import { TagModule } from 'primeng/tag';

@Component({
selector: 'app-misc-demo',
Expand Down Expand Up @@ -136,7 +136,7 @@ import { OverlayBadgeModule } from 'primeng/overlaybadge';
<p-tag icon="pi pi-user" value="Primary"></p-tag>
<p-tag icon="pi pi-check" severity="success" value="Success"></p-tag>
<p-tag icon="pi pi-info-circle" severity="info" value="Info"></p-tag>
<p-tag con="pi pi-exclamation-triangle" severity="warn" value="Warning"></p-tag>
<p-tag icon="pi pi-exclamation-triangle" severity="warn" value="Warning"></p-tag>
<p-tag icon="pi pi-times" severity="danger" value="Danger"></p-tag>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/assets/layout/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ body {
min-height: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: 1.2;
}

a {
Expand Down
5 changes: 1 addition & 4 deletions src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* You can add global styles to this file, and also import other style files */
@use './tailwind.css';
@use './assets/layout/layout.scss';
@use 'primeicons/primeicons.css';
@use './assets/demo/demo.scss';

@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 3 additions & 0 deletions src/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

0 comments on commit 781a430

Please sign in to comment.