From e1e974f32f9bb883954e8e23e4aa6cebe470458d Mon Sep 17 00:00:00 2001 From: Kevin Buhmann Date: Mon, 10 Oct 2022 14:07:23 -0500 Subject: [PATCH] feat(modal): allow custom aria-label for close button VPAT-758 --- .storybook/stories/modal/modal.stories.ts | 6 +++++- projects/angular/clarity.api.md | 4 +++- projects/angular/src/modal/modal.html | 2 +- projects/angular/src/modal/modal.spec.ts | 11 ++++++++++- projects/angular/src/modal/modal.ts | 1 + 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.storybook/stories/modal/modal.stories.ts b/.storybook/stories/modal/modal.stories.ts index 2f4201a469..54b6a00c8a 100644 --- a/.storybook/stories/modal/modal.stories.ts +++ b/.storybook/stories/modal/modal.stories.ts @@ -4,13 +4,15 @@ * The full license information can be found in LICENSE in the root directory of this project. */ -import { ClrModal, ClrModalModule } from '@clr/angular'; +import { ClrCommonStringsService, ClrModal, ClrModalModule } from '@clr/angular'; import { action } from '@storybook/addon-actions'; import { Parameters } from '@storybook/addons'; import { Story } from '@storybook/angular'; import { setupStorybook } from '../../helpers/setup-storybook.helpers'; +const commonStringsService = new ClrCommonStringsService(); + const defaultStory: Story = args => ({ template: ` @@ -22,6 +24,7 @@ const defaultStory: Story = args => ({ ; + static ɵcmp: i0.ɵɵComponentDeclaration; // (undocumented) static ɵfac: i0.ɵɵFactoryDeclaration; } diff --git a/projects/angular/src/modal/modal.html b/projects/angular/src/modal/modal.html index 864cc5f2a3..f14a7ea36d 100644 --- a/projects/angular/src/modal/modal.html +++ b/projects/angular/src/modal/modal.html @@ -30,7 +30,7 @@