Skip to content

Commit

Permalink
Couple copy tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jul 14, 2020
1 parent 7cc34d2 commit e0c53d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/content/docs/5.0/components/alerts.md
Expand Up @@ -111,7 +111,7 @@ This makes an alert listen for click events on descendant elements which have th
| --- | --- |
| `close` | Closes an alert by removing it from the DOM. If the `.fade` and `.show` classes are present on the element, the alert will fade out before it is removed. |
| `dispose` | Destroys an element's alert. (Removes stored data on the DOM element) |
| `getInstance` | Static method which allows you to get the alert instance associated to a DOM element, you can use it like this: `bootstrap.Alert.getInstance(alert)`. |
| `getInstance` | Static method which allows you to get the alert instance associated to a DOM element. For example: `bootstrap.Alert.getInstance(alert)`. |
{{< /bs-table >}}

{{< highlight js >}}
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/components/scrollspy.md
Expand Up @@ -276,7 +276,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
{{< bs-table "table bs-js-table" >}}
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `offset` | number | 10 | Pixels to offset from top when calculating position of scroll. |
| `offset` | number | `10` | Pixels to offset from top when calculating position of scroll. |
| `method` | string | `auto` | Finds which section the spied element is in. `auto` will choose the best method to get scroll coordinates. `offset` will use the [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) method to get scroll coordinates. `position` will use the [`HTMLElement.offsetTop`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop) and [`HTMLElement.offsetLeft`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft) properties to get scroll coordinates.` |
| `target` | string, jQuery object, DOM element | | Specifies element to apply Scrollspy plugin. |
{{< /bs-table >}}
Expand Down

0 comments on commit e0c53d9

Please sign in to comment.