Skip to content

Commit

Permalink
[notice] removed critical notification label from notice with warning…
Browse files Browse the repository at this point in the history
… theme
  • Loading branch information
msereniti committed Jun 27, 2024
1 parent 7f82e95 commit 229ba89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions semcore/notice/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).

## [5.35.1] - 2024-06-27

### Fixed

- Notice only with `danger` theme has aria-label "Critical Notification" (`warning` theme gets "Notification" as all other themes).

## [5.35.0] - 2024-06-19

### Changed
Expand Down
2 changes: 1 addition & 1 deletion semcore/notice/src/Notice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class RootNotice extends Component {
backgroundColor={color}
role='region'
aria-live={ariaLive}
aria-label={getI18nText(isAssertive ? 'criticalNotification' : 'notification')}
aria-label={getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification')}
>
<Children />
</SNotice>,
Expand Down

0 comments on commit 229ba89

Please sign in to comment.