Skip to content

Commit

Permalink
Update description style & adjust properties' order (#31703)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Jan 13, 2024
1 parent 101cd92 commit bcb7e55
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ browser-compat: api.Notification.close

{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}

The `close()` method of the {{domxref("Notification")}} interface is used to
The **`close()`** method of the {{domxref("Notification")}} interface is used to
close/remove a previously displayed notification.

> **Note:** This API shouldn't be used just to have the notification
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/dir/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ browser-compat: api.Notification.dir

{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}

The `dir` read-only property of the {{domxref("Notification")}} interface indicates the text direction of the notification, as specified in the `dir` option of the {{domxref("Notification.Notification","Notification()")}} constructor.
The **`dir`** read-only property of the {{domxref("Notification")}} interface indicates the text direction of the notification, as specified in the `dir` option of the {{domxref("Notification.Notification","Notification()")}} constructor.

## Value

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/image/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ browser-compat: api.Notification.image

{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{SecureContext_Header}}{{SeeCompatTable}}

The `image` read-only property of the
The **`image`** read-only property of the
{{domxref("Notification")}} interface contains the URL of an image to be displayed as
part of the notification, as specified in the `image` option of the
{{domxref("Notification.Notification","Notification()")}} constructor.
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/notification/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ _Also inherits properties from its parent interface, {{domxref("EventTarget")}}_
- : Returns a structured clone of the notification's data.
- {{domxref("Notification.dir")}} {{ReadOnlyInline}}
- : The text direction of the notification as specified in the constructor's `options` parameter.
- {{domxref("Notification.lang")}} {{ReadOnlyInline}}
- : The language code of the notification as specified in the constructor's `options` parameter.
- {{domxref("Notification.tag")}} {{ReadOnlyInline}}
- : The ID of the notification (if any) as specified in the constructor's `options` parameter.
- {{domxref("Notification.icon")}} {{ReadOnlyInline}}
- : The URL of the image used as an icon of the notification as specified in the constructor's `options` parameter.
- {{domxref("Notification.image")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : The URL of an image to be displayed as part of the notification, as specified in the constructor's `options` parameter.
- {{domxref("Notification.lang")}} {{ReadOnlyInline}}
- : The language code of the notification as specified in the constructor's `options` parameter.
- {{domxref("Notification.renotify")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Specifies whether the user should be notified after a new notification replaces an old one.
- {{domxref("Notification.requireInteraction")}} {{ReadOnlyInline}}
- : A boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
- {{domxref("Notification.silent")}} {{ReadOnlyInline}}
- : Specifies whether the notification should be silent — i.e., no sounds or vibrations should be issued, regardless of the device settings.
- {{domxref("Notification.tag")}} {{ReadOnlyInline}}
- : The ID of the notification (if any) as specified in the constructor's `options` parameter.
- {{domxref("Notification.timestamp")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Specifies the time at which a notification is created or applicable (past, present, or future).
- {{domxref("Notification.title")}} {{ReadOnlyInline}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/timestamp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ missed message could be set in the past.

## Value

A number representing a timestamp, given as [Unix time](/en-US/docs/Glossary/Unix_time) in milliseconds.
A number representing a timestamp, given as {{Glossary("Unix time")}} in milliseconds.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/vibrate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ browser-compat: api.Notification.vibrate

{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{SecureContext_Header}}{{SeeCompatTable}}

The `vibrate` read-only property of the {{domxref("Notification")}}
The **`vibrate`** read-only property of the {{domxref("Notification")}}
interface specifies a [vibration pattern](/en-US/docs/Web/API/Vibration_API#vibration_patterns)
for the device's vibration hardware to emit when the notification fires. This is
specified in the `vibrate` option of the
Expand Down

0 comments on commit bcb7e55

Please sign in to comment.