From 07d9aeee9cf6b8b54644469b118fb0a3cfa60e63 Mon Sep 17 00:00:00 2001 From: Barsukov Nikita Date: Tue, 20 Sep 2022 17:35:35 +0300 Subject: [PATCH] chore(demo): `Svg` improve documentation (#2737) --- .../src/modules/components/svg/svg.module.ts | 3 +- .../modules/components/svg/svg.template.html | 34 +++++++++++++------ 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/projects/demo/src/modules/components/svg/svg.module.ts b/projects/demo/src/modules/components/svg/svg.module.ts index 73fcc087927c..399c32595c82 100644 --- a/projects/demo/src/modules/components/svg/svg.module.ts +++ b/projects/demo/src/modules/components/svg/svg.module.ts @@ -2,7 +2,7 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {RouterModule} from '@angular/router'; import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc'; -import {TuiLinkModule, TuiSvgModule} from '@taiga-ui/core'; +import {TuiLinkModule, TuiNotificationModule, TuiSvgModule} from '@taiga-ui/core'; import {TuiPresentModule} from '@taiga-ui/kit'; import {TuiSvgExample1} from './examples/1'; @@ -17,6 +17,7 @@ import {ExampleTuiSvgComponent} from './svg.component'; TuiPresentModule, TuiLinkModule, TuiAddonDocModule, + TuiNotificationModule, RouterModule.forChild(tuiGenerateRoutes(ExampleTuiSvgComponent)), ], declarations: [ExampleTuiSvgComponent, TuiSvgExample1, TuiSvgExample2], diff --git a/projects/demo/src/modules/components/svg/svg.template.html b/projects/demo/src/modules/components/svg/svg.template.html index 03464b33e094..a8e0d46dcfb3 100644 --- a/projects/demo/src/modules/components/svg/svg.template.html +++ b/projects/demo/src/modules/components/svg/svg.template.html @@ -6,18 +6,32 @@

Svg - is a component for working with SVG-image and its colors. If you want to use custom icons that you don't - trust, you need to provide a - - sanitizer - - . + is a component for working with SVG-image and its colors.

+ +

+ You need to + + provide TUI_SANITIZER + + if you want to use + Svg + -component with: +

+
    +
  • icon which was imported from source code
  • +
  • custom icons that you don't trust
  • +
+
+