mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
feat(notification): remove default prop value for title, caption
This commit is contained in:
parent
87bd94ce99
commit
5ba6cc00b0
5 changed files with 11 additions and 11 deletions
|
@ -1758,7 +1758,7 @@ None.
|
||||||
| lowContrast | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to use the low contrast variant |
|
| lowContrast | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to use the low contrast variant |
|
||||||
| timeout | <code>let</code> | No | <code>number</code> | <code>0</code> | Set the timeout duration (ms) to hide the notification after opening it |
|
| timeout | <code>let</code> | No | <code>number</code> | <code>0</code> | Set the timeout duration (ms) to hide the notification after opening it |
|
||||||
| role | <code>let</code> | No | <code>string</code> | <code>"alert"</code> | Set the `role` attribute |
|
| role | <code>let</code> | No | <code>string</code> | <code>"alert"</code> | Set the `role` attribute |
|
||||||
| title | <code>let</code> | No | <code>string</code> | <code>"Title"</code> | Specify the title text |
|
| title | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the title text |
|
||||||
| subtitle | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the subtitle text |
|
| subtitle | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the subtitle text |
|
||||||
| hideCloseButton | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to hide the close button |
|
| hideCloseButton | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to hide the close button |
|
||||||
| iconDescription | <code>let</code> | No | <code>string</code> | <code>"Closes notification"</code> | Specify the ARIA label for the icon |
|
| iconDescription | <code>let</code> | No | <code>string</code> | <code>"Closes notification"</code> | Specify the ARIA label for the icon |
|
||||||
|
@ -3944,9 +3944,9 @@ None.
|
||||||
| lowContrast | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to use the low contrast variant |
|
| lowContrast | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to use the low contrast variant |
|
||||||
| timeout | <code>let</code> | No | <code>number</code> | <code>0</code> | Set the timeout duration (ms) to hide the notification after opening it |
|
| timeout | <code>let</code> | No | <code>number</code> | <code>0</code> | Set the timeout duration (ms) to hide the notification after opening it |
|
||||||
| role | <code>let</code> | No | <code>string</code> | <code>"alert"</code> | Set the `role` attribute |
|
| role | <code>let</code> | No | <code>string</code> | <code>"alert"</code> | Set the `role` attribute |
|
||||||
| title | <code>let</code> | No | <code>string</code> | <code>"Title"</code> | Specify the title text |
|
| title | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the title text |
|
||||||
| subtitle | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the subtitle text |
|
| subtitle | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the subtitle text |
|
||||||
| caption | <code>let</code> | No | <code>string</code> | <code>"Caption"</code> | Specify the caption text |
|
| caption | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the caption text |
|
||||||
| iconDescription | <code>let</code> | No | <code>string</code> | <code>"Closes notification"</code> | Specify the ARIA label for the icon |
|
| iconDescription | <code>let</code> | No | <code>string</code> | <code>"Closes notification"</code> | Specify the ARIA label for the icon |
|
||||||
| hideCloseButton | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to hide the close button |
|
| hideCloseButton | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to hide the close button |
|
||||||
|
|
||||||
|
|
|
@ -4145,7 +4145,7 @@
|
||||||
"kind": "let",
|
"kind": "let",
|
||||||
"description": "Specify the title text",
|
"description": "Specify the title text",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"value": "\"Title\"",
|
"value": "\"\"",
|
||||||
"isFunction": false,
|
"isFunction": false,
|
||||||
"constant": false,
|
"constant": false,
|
||||||
"reactive": false
|
"reactive": false
|
||||||
|
@ -9892,7 +9892,7 @@
|
||||||
"kind": "let",
|
"kind": "let",
|
||||||
"description": "Specify the title text",
|
"description": "Specify the title text",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"value": "\"Title\"",
|
"value": "\"\"",
|
||||||
"isFunction": false,
|
"isFunction": false,
|
||||||
"constant": false,
|
"constant": false,
|
||||||
"reactive": false
|
"reactive": false
|
||||||
|
@ -9912,7 +9912,7 @@
|
||||||
"kind": "let",
|
"kind": "let",
|
||||||
"description": "Specify the caption text",
|
"description": "Specify the caption text",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"value": "\"Caption\"",
|
"value": "\"\"",
|
||||||
"isFunction": false,
|
"isFunction": false,
|
||||||
"constant": false,
|
"constant": false,
|
||||||
"reactive": false
|
"reactive": false
|
||||||
|
|
|
@ -19,13 +19,13 @@
|
||||||
export let role = "alert";
|
export let role = "alert";
|
||||||
|
|
||||||
/** Specify the title text */
|
/** Specify the title text */
|
||||||
export let title = "Title";
|
export let title = "";
|
||||||
|
|
||||||
/** Specify the subtitle text */
|
/** Specify the subtitle text */
|
||||||
export let subtitle = "";
|
export let subtitle = "";
|
||||||
|
|
||||||
/** Specify the caption text */
|
/** Specify the caption text */
|
||||||
export let caption = "Caption";
|
export let caption = "";
|
||||||
|
|
||||||
/** Specify the ARIA label for the icon */
|
/** Specify the ARIA label for the icon */
|
||||||
export let iconDescription = "Closes notification";
|
export let iconDescription = "Closes notification";
|
||||||
|
|
2
types/Notification/InlineNotification.d.ts
vendored
2
types/Notification/InlineNotification.d.ts
vendored
|
@ -35,7 +35,7 @@ export interface InlineNotificationProps
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the title text
|
* Specify the title text
|
||||||
* @default "Title"
|
* @default ""
|
||||||
*/
|
*/
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|
||||||
|
|
4
types/Notification/ToastNotification.d.ts
vendored
4
types/Notification/ToastNotification.d.ts
vendored
|
@ -35,7 +35,7 @@ export interface ToastNotificationProps
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the title text
|
* Specify the title text
|
||||||
* @default "Title"
|
* @default ""
|
||||||
*/
|
*/
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ export interface ToastNotificationProps
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the caption text
|
* Specify the caption text
|
||||||
* @default "Caption"
|
* @default ""
|
||||||
*/
|
*/
|
||||||
caption?: string;
|
caption?: string;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue