mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(notification)!: change InlineNotification props
Add new props: statusIconDescription and closeButtonDescription BREAKING CHANGE: remove iconDescription prop
This commit is contained in:
parent
8d55752a18
commit
ee21257300
8 changed files with 74 additions and 32 deletions
|
@ -52,10 +52,16 @@ export interface InlineNotificationProps
|
|||
hideCloseButton?: boolean;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
export default class InlineNotification extends SvelteComponentTyped<
|
||||
|
|
|
@ -22,9 +22,9 @@ export interface NotificationIconProps {
|
|||
|
||||
/**
|
||||
* Specify the ARIA label for the icon
|
||||
* @default "Closes notification"
|
||||
* @default undefined
|
||||
*/
|
||||
iconDescription?: string;
|
||||
iconDescription: undefined;
|
||||
}
|
||||
|
||||
export default class NotificationIcon extends SvelteComponentTyped<
|
||||
|
|
|
@ -43,6 +43,7 @@ export interface PaginationNavProps
|
|||
export default class PaginationNav extends SvelteComponentTyped<
|
||||
PaginationNavProps,
|
||||
{
|
||||
/** fires after every user interaction */
|
||||
change: CustomEvent<{ page: number }>;
|
||||
["click:button--previous"]: CustomEvent<{ page: number }>;
|
||||
["click:button--next"]: CustomEvent<{ page: number }>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue