From e0c53d9064ca43c3708ff5833accfed68bf33ea1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 14 Jul 2020 13:21:20 -0700 Subject: [PATCH] Couple copy tweaks --- site/content/docs/5.0/components/alerts.md | 2 +- site/content/docs/5.0/components/scrollspy.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/docs/5.0/components/alerts.md b/site/content/docs/5.0/components/alerts.md index e80fca547d72..8cca93d34c96 100644 --- a/site/content/docs/5.0/components/alerts.md +++ b/site/content/docs/5.0/components/alerts.md @@ -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 >}} diff --git a/site/content/docs/5.0/components/scrollspy.md b/site/content/docs/5.0/components/scrollspy.md index 5957769c03ae..72c732d97b2d 100644 --- a/site/content/docs/5.0/components/scrollspy.md +++ b/site/content/docs/5.0/components/scrollspy.md @@ -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 >}}