From c6bda985551ec9d943294fc64853b1e075d4388c Mon Sep 17 00:00:00 2001 From: Egor Volvachev Date: Tue, 16 Jul 2024 20:41:38 +0300 Subject: [PATCH] fix(primeng/documentation): unnecessary ripple effect on button in toast examples Fixes #16025. --- src/app/showcase/doc/toast/animationdoc.ts | 6 ++-- src/app/showcase/doc/toast/basicdoc.ts | 6 ++-- src/app/showcase/doc/toast/cleardoc.ts | 8 ++--- src/app/showcase/doc/toast/headlessdoc.ts | 6 ++-- src/app/showcase/doc/toast/lifedoc.ts | 8 ++--- src/app/showcase/doc/toast/multipledoc.ts | 4 +-- src/app/showcase/doc/toast/positiondoc.ts | 12 ++------ src/app/showcase/doc/toast/responsivedoc.ts | 6 ++-- src/app/showcase/doc/toast/severitydoc.ts | 34 +++++++-------------- src/app/showcase/doc/toast/stickydoc.ts | 16 ++++------ src/app/showcase/doc/toast/targetdoc.ts | 16 ++++------ src/app/showcase/doc/toast/templatedoc.ts | 6 ++-- 12 files changed, 46 insertions(+), 82 deletions(-) diff --git a/src/app/showcase/doc/toast/animationdoc.ts b/src/app/showcase/doc/toast/animationdoc.ts index efe08ccfe19..b8c8256248b 100644 --- a/src/app/showcase/doc/toast/animationdoc.ts +++ b/src/app/showcase/doc/toast/animationdoc.ts @@ -10,7 +10,7 @@ import { Code } from '@domain/code';
- +
`, @@ -29,14 +29,14 @@ export class AnimationDoc { [showTransitionOptions]="'1000ms'" [hideTransitionOptions]="'1000ms'" [showTransformOptions]="'translateX(100%)'" /> -`, +`, html: `
- +
`, typescript: `import { Component } from '@angular/core'; import { MessageService } from 'primeng/api'; diff --git a/src/app/showcase/doc/toast/basicdoc.ts b/src/app/showcase/doc/toast/basicdoc.ts index e4bd9b7d8f9..4af6d7fd8c2 100644 --- a/src/app/showcase/doc/toast/basicdoc.ts +++ b/src/app/showcase/doc/toast/basicdoc.ts @@ -13,7 +13,7 @@ import { Code } from '@domain/code';
- +
`, @@ -28,10 +28,10 @@ export class BasicDoc { code: Code = { basic: ` -`, +`, html: `
- +
`, typescript: `import { Component } from '@angular/core'; import { MessageService } from 'primeng/api'; diff --git a/src/app/showcase/doc/toast/cleardoc.ts b/src/app/showcase/doc/toast/cleardoc.ts index 87de728aa34..120dfd06574 100644 --- a/src/app/showcase/doc/toast/cleardoc.ts +++ b/src/app/showcase/doc/toast/cleardoc.ts @@ -13,8 +13,8 @@ import { Code } from '@domain/code';
- - + +
`, @@ -34,22 +34,18 @@ export class ClearDoc { code: Code = { basic: ` `, html: `
diff --git a/src/app/showcase/doc/toast/headlessdoc.ts b/src/app/showcase/doc/toast/headlessdoc.ts index a95255d6efa..abf81cbd8ab 100644 --- a/src/app/showcase/doc/toast/headlessdoc.ts +++ b/src/app/showcase/doc/toast/headlessdoc.ts @@ -28,7 +28,7 @@ import { Code } from '@domain/code'; - +
`, @@ -115,7 +115,7 @@ export class HeadlessDoc {
-`, +`, html: `
- +
`, typescript: `import { ChangeDetectorRef, Component } from '@angular/core'; import { MessageService } from 'primeng/api'; diff --git a/src/app/showcase/doc/toast/lifedoc.ts b/src/app/showcase/doc/toast/lifedoc.ts index f1098b30c80..0bd3c0c5587 100644 --- a/src/app/showcase/doc/toast/lifedoc.ts +++ b/src/app/showcase/doc/toast/lifedoc.ts @@ -10,8 +10,8 @@ import { Code } from '@domain/code';
- - + +
`, @@ -31,21 +31,17 @@ export class LifeDoc { code: Code = { basic: ` `, html: `
`, diff --git a/src/app/showcase/doc/toast/multipledoc.ts b/src/app/showcase/doc/toast/multipledoc.ts index 0822d5589fb..8561b2e1ffd 100644 --- a/src/app/showcase/doc/toast/multipledoc.ts +++ b/src/app/showcase/doc/toast/multipledoc.ts @@ -10,7 +10,7 @@ import { Code } from '@domain/code';
- +
`, @@ -31,14 +31,12 @@ export class MultipleDoc { code: Code = { basic: ` `, html: `
diff --git a/src/app/showcase/doc/toast/positiondoc.ts b/src/app/showcase/doc/toast/positiondoc.ts index 43b8621a046..7da0ad27a8f 100644 --- a/src/app/showcase/doc/toast/positiondoc.ts +++ b/src/app/showcase/doc/toast/positiondoc.ts @@ -13,9 +13,9 @@ import { Code } from '@domain/code'; - - - + + +
`, @@ -42,16 +42,13 @@ export class PositionDoc { `, @@ -62,16 +59,13 @@ export class PositionDoc { diff --git a/src/app/showcase/doc/toast/responsivedoc.ts b/src/app/showcase/doc/toast/responsivedoc.ts index 536369bc939..b2a9cc5149d 100644 --- a/src/app/showcase/doc/toast/responsivedoc.ts +++ b/src/app/showcase/doc/toast/responsivedoc.ts @@ -13,7 +13,7 @@ import { Code } from '@domain/code';
- +
`, @@ -28,10 +28,10 @@ export class ResponsiveDoc { code: Code = { basic: ` -`, +`, html: `
- +
`, typescript: `import { Component } from '@angular/core'; import { MessageService } from 'primeng/api'; diff --git a/src/app/showcase/doc/toast/severitydoc.ts b/src/app/showcase/doc/toast/severitydoc.ts index 3f9742701d9..e2e10746b63 100644 --- a/src/app/showcase/doc/toast/severitydoc.ts +++ b/src/app/showcase/doc/toast/severitydoc.ts @@ -13,12 +13,12 @@ import { Code } from '@domain/code';
- - - - - - + + + + + +
`, @@ -55,75 +55,63 @@ export class SeverityDoc { basic: ` `, html: `
diff --git a/src/app/showcase/doc/toast/stickydoc.ts b/src/app/showcase/doc/toast/stickydoc.ts index 434fea5d1aa..819b7ccf47e 100644 --- a/src/app/showcase/doc/toast/stickydoc.ts +++ b/src/app/showcase/doc/toast/stickydoc.ts @@ -11,8 +11,8 @@ import { Code } from '@domain/code';
- - + +
@@ -33,26 +33,22 @@ export class StickyDoc { code: Code = { basic: `
- -
`, html: `
- -
diff --git a/src/app/showcase/doc/toast/targetdoc.ts b/src/app/showcase/doc/toast/targetdoc.ts index 881253f2e7e..a8a0549c386 100644 --- a/src/app/showcase/doc/toast/targetdoc.ts +++ b/src/app/showcase/doc/toast/targetdoc.ts @@ -11,8 +11,8 @@ import { Code } from '@domain/code';
- - + +
`, @@ -34,24 +34,20 @@ export class TargetDoc { code: Code = { basic: ` - -`, html: `
- - diff --git a/src/app/showcase/doc/toast/templatedoc.ts b/src/app/showcase/doc/toast/templatedoc.ts index 622b7b6d542..7bf19691770 100644 --- a/src/app/showcase/doc/toast/templatedoc.ts +++ b/src/app/showcase/doc/toast/templatedoc.ts @@ -21,7 +21,7 @@ import { Code } from '@domain/code';
- +
`, @@ -72,7 +72,7 @@ export class TemplateDoc {
-`, +`, html: `
- +
`, typescript: `import { Component } from '@angular/core'; import { MessageService } from 'primeng/api';