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:
Nicco 2021-03-20 19:05:38 +01:00 committed by GitHub
commit 121062a80c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View file

@ -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 |
| 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 |
| 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 |
| 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 |
@ -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 |
| 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 |
| 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 |
| 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 |
| hideCloseButton | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to hide the close button |

View file

@ -4488,7 +4488,7 @@
"kind": "let",
"description": "Specify the title text",
"type": "string",
"value": "\"Title\"",
"value": "\"\"",
"isFunction": false,
"constant": false,
"reactive": false
@ -10430,7 +10430,7 @@
"kind": "let",
"description": "Specify the title text",
"type": "string",
"value": "\"Title\"",
"value": "\"\"",
"isFunction": false,
"constant": false,
"reactive": false
@ -10450,7 +10450,7 @@
"kind": "let",
"description": "Specify the caption text",
"type": "string",
"value": "\"Caption\"",
"value": "\"\"",
"isFunction": false,
"constant": false,
"reactive": false

View file

@ -19,7 +19,7 @@
export let role = "alert";
/** Specify the title text */
export let title = "Title";
export let title = "";
/** Specify the subtitle text */
export let subtitle = "";

View file

@ -19,13 +19,13 @@
export let role = "alert";
/** Specify the title text */
export let title = "Title";
export let title = "";
/** Specify the subtitle text */
export let subtitle = "";
/** Specify the caption text */
export let caption = "Caption";
export let caption = "";
/** Specify the ARIA label for the icon */
export let iconDescription = "Closes notification";

View file

@ -35,7 +35,7 @@ export interface InlineNotificationProps
/**
* Specify the title text
* @default "Title"
* @default ""
*/
title?: string;

View file

@ -35,7 +35,7 @@ export interface ToastNotificationProps
/**
* Specify the title text
* @default "Title"
* @default ""
*/
title?: string;
@ -47,7 +47,7 @@ export interface ToastNotificationProps
/**
* Specify the caption text
* @default "Caption"
* @default ""
*/
caption?: string;