From aed7549f617496d829b76f6763a3039c6b13201d Mon Sep 17 00:00:00 2001 From: Adithya Sreyaj Date: Tue, 19 Sep 2023 15:54:50 +0530 Subject: [PATCH] style: add reset styles mixin (#2401) --- projects/assets-library/assets/styles/_mixins.scss | 1 + projects/assets-library/assets/styles/_resets.scss | 11 +++++++++++ .../pipes/extract-value/extract-values.pipe.ts | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 projects/assets-library/assets/styles/_resets.scss diff --git a/projects/assets-library/assets/styles/_mixins.scss b/projects/assets-library/assets/styles/_mixins.scss index d74a455cf..d6067299d 100644 --- a/projects/assets-library/assets/styles/_mixins.scss +++ b/projects/assets-library/assets/styles/_mixins.scss @@ -3,3 +3,4 @@ @import 'layout'; @import 'interaction'; @import 'animation'; +@import 'resets'; diff --git a/projects/assets-library/assets/styles/_resets.scss b/projects/assets-library/assets/styles/_resets.scss new file mode 100644 index 000000000..395156d11 --- /dev/null +++ b/projects/assets-library/assets/styles/_resets.scss @@ -0,0 +1,11 @@ +@mixin reset-list-defaults { + padding: 0; + margin: 0; + list-style: none; +} + +@mixin reset-fieldset-defaults { + padding: 0; + margin: 0; + border: none; +} diff --git a/projects/common/src/utilities/angular/pipes/extract-value/extract-values.pipe.ts b/projects/common/src/utilities/angular/pipes/extract-value/extract-values.pipe.ts index 6d128e884..7a115061e 100644 --- a/projects/common/src/utilities/angular/pipes/extract-value/extract-values.pipe.ts +++ b/projects/common/src/utilities/angular/pipes/extract-value/extract-values.pipe.ts @@ -5,6 +5,12 @@ import { Dictionary } from '../../../types/types'; /** * Extracts the value of a key from an array of objects. * Can be extended for more use cases in the future. + * + * Example: + * ``` + * Value: [{ a: 1, b: 2 }, { a: 3, b: 4 }, { a: 3, b: 6 }] + * Result: [1, 3] + * ``` */ @Pipe({ name: 'htExtractValues'