Skip to content

Commit 2a308e3

Browse files
mdoXhmikosR
authored andcommitted
Couple copy tweaks
1 parent bfafc06 commit 2a308e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/content/docs/5.0/components/alerts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This makes an alert listen for click events on descendant elements which have th
111111
| --- | --- |
112112
| `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. |
113113
| `dispose` | Destroys an element's alert. (Removes stored data on the DOM element) |
114-
| `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)`. |
114+
| `getInstance` | Static method which allows you to get the alert instance associated to a DOM element. For example: `bootstrap.Alert.getInstance(alert)`. |
115115
{{< /bs-table >}}
116116

117117
```js

site/content/docs/5.0/components/scrollspy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
281281
{{< bs-table "table bs-js-table" >}}
282282
| Name | Type | Default | Description |
283283
| --- | --- | --- | --- |
284-
| `offset` | number | 10 | Pixels to offset from top when calculating position of scroll. |
284+
| `offset` | number | `10` | Pixels to offset from top when calculating position of scroll. |
285285
| `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.` |
286286
| `target` | string, jQuery object, DOM element | | Specifies element to apply Scrollspy plugin. |
287287
{{< /bs-table >}}

0 commit comments

Comments
 (0)