Skip to content

Commit

Permalink
chore(banner): clarify close button label
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Lee committed Jul 14, 2022
1 parent c30e231 commit 23284e6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
6 changes: 5 additions & 1 deletion src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ export const Banner = ({
status="neutral"
variant="icon"
>
<Icon name={'close'} purpose="informative" title={'dismiss module'} />
<Icon
name="close"
purpose="informative"
title="dismiss notification"
/>
</Button>
)}

Expand Down
16 changes: 8 additions & 8 deletions src/components/Banner/__snapshots__/Banner.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exports[`<Banner /> BrandDismissable story renders snapshot 1`] = `
<title
id="13"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -199,7 +199,7 @@ exports[`<Banner /> DismissableWithAction story renders snapshot 1`] = `
<title
id="23"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -325,7 +325,7 @@ exports[`<Banner /> ErrorDismissable story renders snapshot 1`] = `
<title
id="21"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -545,7 +545,7 @@ exports[`<Banner /> NeutralDismissable story renders snapshot 1`] = `
<title
id="15"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -793,7 +793,7 @@ exports[`<Banner /> SuccessDismissable story renders snapshot 1`] = `
<title
id="17"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -966,7 +966,7 @@ exports[`<Banner /> VerticalDismissable story renders snapshot 1`] = `
<title
id="28"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -1034,7 +1034,7 @@ exports[`<Banner /> VerticalDismissableWithAction story renders snapshot 1`] = `
<title
id="31"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -1218,7 +1218,7 @@ exports[`<Banner /> WarningDismissable story renders snapshot 1`] = `
<title
id="19"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down
6 changes: 5 additions & 1 deletion src/components/PageLevelBanner/PageLevelBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ export const PageLevelBanner = ({
status="neutral"
variant="icon"
>
<Icon name={'close'} purpose="informative" title={'dismiss module'} />
<Icon
name="close"
purpose="informative"
title="dismiss notification"
/>
</Button>
)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exports[`<PageLevelBanner /> BrandDismissable story renders snapshot 1`] = `
<title
id="7"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -168,7 +168,7 @@ exports[`<PageLevelBanner /> ErrorDismissable story renders snapshot 1`] = `
<title
id="13"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -342,7 +342,7 @@ exports[`<PageLevelBanner /> SuccessDismissable story renders snapshot 1`] = `
<title
id="9"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down Expand Up @@ -449,7 +449,7 @@ exports[`<PageLevelBanner /> WarningDismissable story renders snapshot 1`] = `
<title
id="11"
>
dismiss module
dismiss notification
</title>
<use
xlink:href="test-file-stub#close"
Expand Down

0 comments on commit 23284e6

Please sign in to comment.