mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(notification)!: replace iconDescription
prop with statusIconDescription
, closeButtonDescription
(#1591)
Fixes #672, fixes #1563 * breaking: remove `iconDescription` prop from `InlineNotification`, `ToastNotification` * breaking: require `iconDescription` prop in `NotificationIcon` * feat: add new `statusIconDescription` and `closeButtonDescription` to `InlineNotification`, `ToastNotification`
This commit is contained in:
parent
e258db0cae
commit
50066966da
10 changed files with 144 additions and 53 deletions
12
types/Notification/ToastNotification.svelte.d.ts
vendored
12
types/Notification/ToastNotification.svelte.d.ts
vendored
|
@ -52,10 +52,16 @@ export interface ToastNotificationProps
|
|||
caption?: string;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the icon
|
||||
* @default "Closes notification"
|
||||
* Specify the ARIA label for the status icon
|
||||
* @default kind + " icon"
|
||||
*/
|
||||
iconDescription?: string;
|
||||
statusIconDescription?: string;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the close button
|
||||
* @default "Close notification"
|
||||
*/
|
||||
closeButtonDescription?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to hide the close button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue