Skip to content

Commit

Permalink
docs: fix small documentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Feb 18, 2021
1 parent 4721286 commit bc249ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/esl-alert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ESLAlert is a component to show small notifications on your pages. ESLAlert can
##Usage

First, use the common approach to register component: `ESLAlert.register()`.
Then you can attach `<esl-alert>` component in the expected place in the document or initialize it globally using `ESLAlert.init` shortcut.
Then you can attach `<esl-alert>` component to the expected place in the document or initialize it globally by using `ESLAlert.init` shortcut.

ESL Alert listens to DOM alerts to control its state.
By default, the target to catch alerts is the `esl-alert` parent element.
Expand All @@ -22,7 +22,7 @@ ESL Alert listens to the following events:
- `esl:alert:show` to show alert
- `esl:alert:hide` to hide alert

Use CustomEvent `details` to customize alert. Alert `details` accept the following properties:
Use CustomEvent `details` to customize alert. Alert `details` accepts the following properties:

- `cls` - to pass class or classes(separated by space) to add to alert inner.
- `text` - to specify alert text content
Expand Down

0 comments on commit bc249ba

Please sign in to comment.