mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
remove default from inline notification (#553)
* remove default from inline notification * feat(notification): remove default prop value for title, caption Co-authored-by: Eric Y Liu <ericyl.us@gmail.com>
This commit is contained in:
parent
5fad0cb3c7
commit
121062a80c
6 changed files with 12 additions and 12 deletions
|
@ -1907,7 +1907,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 |
|
||||||
|
@ -4149,9 +4149,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 |
|
||||||
|
|
||||||
|
|
|
@ -4488,7 +4488,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
|
||||||
|
@ -10430,7 +10430,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
|
||||||
|
@ -10450,7 +10450,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,7 +19,7 @@
|
||||||
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 = "";
|
||||||
|
|
|
@ -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