mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Typo fixes (#34914)
This commit is contained in:
parent
aa06dffdf6
commit
23b3d636e1
16 changed files with 16 additions and 16 deletions
|
@ -74,7 +74,7 @@ describe('FocusTrap', () => {
|
||||||
document.dispatchEvent(focusInEvent)
|
document.dispatchEvent(focusInEvent)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should wrap focus around foward on tab', done => {
|
it('should wrap focus around forward on tab', done => {
|
||||||
fixtureEl.innerHTML = [
|
fixtureEl.innerHTML = [
|
||||||
'<a href="#" id="outside">outside</a>',
|
'<a href="#" id="outside">outside</a>',
|
||||||
'<div id="focustrap" tabindex="-1">',
|
'<div id="focustrap" tabindex="-1">',
|
||||||
|
|
|
@ -238,7 +238,7 @@ See the [triggers](#triggers) section for more details.
|
||||||
<code>getOrCreateInstance</code>
|
<code>getOrCreateInstance</code>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Static method which returns an alert instance associated to a DOM element or create a new one in case it wasn't initialised.
|
Static method which returns an alert instance associated to a DOM element or create a new one in case it wasn't initialized.
|
||||||
You can use it like this: <code>bootstrap.Alert.getOrCreateInstance(element)</code>
|
You can use it like this: <code>bootstrap.Alert.getOrCreateInstance(element)</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -210,7 +210,7 @@ var bsButton = new bootstrap.Button(button)
|
||||||
<code>getOrCreateInstance</code>
|
<code>getOrCreateInstance</code>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Static method which returns a button instance associated to a DOM element or create a new one in case it wasn't initialised.
|
Static method which returns a button instance associated to a DOM element or create a new one in case it wasn't initialized.
|
||||||
You can use it like this: <code>bootstrap.Button.getOrCreateInstance(element)</code>
|
You can use it like this: <code>bootstrap.Button.getOrCreateInstance(element)</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -425,7 +425,7 @@ var carousel = new bootstrap.Carousel(myCarousel, {
|
||||||
<code>getOrCreateInstance</code>
|
<code>getOrCreateInstance</code>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Static method which returns a carousel instance associated to a DOM element or create a new one in case it wasn't initialised.
|
Static method which returns a carousel instance associated to a DOM element or create a new one in case it wasn't initialized.
|
||||||
You can use it like this: <code>bootstrap.Carousel.getOrCreateInstance(element)</code>
|
You can use it like this: <code>bootstrap.Carousel.getOrCreateInstance(element)</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -222,7 +222,7 @@ var bsCollapse = new bootstrap.Collapse(myCollapse, {
|
||||||
<code>getOrCreateInstance</code>
|
<code>getOrCreateInstance</code>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Static method which returns a collapse instance associated to a DOM element or create a new one in case it wasn't initialised.
|
Static method which returns a collapse instance associated to a DOM element or create a new one in case it wasn't initialized.
|
||||||
You can use it like this: <code>bootstrap.Collapse.getOrCreateInstance(element)</code>
|
You can use it like this: <code>bootstrap.Collapse.getOrCreateInstance(element)</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1148,7 +1148,7 @@ var dropdown = new bootstrap.Dropdown(element, {
|
||||||
<code>getOrCreateInstance</code>
|
<code>getOrCreateInstance</code>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Static method which returns a dropdown instance associated to a DOM element or create a new one in case it wasn't initialised.
|
Static method which returns a dropdown instance associated to a DOM element or create a new one in case it wasn't initialized.
|
||||||
You can use it like this: <code>bootstrap.Dropdown.getOrCreateInstance(element)</code>
|
You can use it like this: <code>bootstrap.Dropdown.getOrCreateInstance(element)</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -486,7 +486,7 @@ var tab = bootstrap.Tab.getInstance(triggerEl) // Returns a Bootstrap tab instan
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the tab instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the tab instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var triggerEl = document.querySelector('#trigger')
|
var triggerEl = document.querySelector('#trigger')
|
||||||
|
|
|
@ -964,7 +964,7 @@ var modal = bootstrap.Modal.getInstance(myModalEl) // Returns a Bootstrap modal
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the modal instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the modal instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var myModalEl = document.querySelector('#myModal')
|
var myModalEl = document.querySelector('#myModal')
|
||||||
|
|
|
@ -626,7 +626,7 @@ var tab = bootstrap.Tab.getInstance(triggerEl) // Returns a Bootstrap tab instan
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the tab instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the tab instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var triggerEl = document.querySelector('#trigger')
|
var triggerEl = document.querySelector('#trigger')
|
||||||
|
|
|
@ -251,7 +251,7 @@ var bsOffcanvas = new bootstrap.Offcanvas(myOffcanvas)
|
||||||
| `show` | Shows an offcanvas element. **Returns to the caller before the offcanvas element has actually been shown** (i.e. before the `shown.bs.offcanvas` event occurs).|
|
| `show` | Shows an offcanvas element. **Returns to the caller before the offcanvas element has actually been shown** (i.e. before the `shown.bs.offcanvas` event occurs).|
|
||||||
| `hide` | Hides an offcanvas element. **Returns to the caller before the offcanvas element has actually been hidden** (i.e. before the `hidden.bs.offcanvas` event occurs).|
|
| `hide` | Hides an offcanvas element. **Returns to the caller before the offcanvas element has actually been hidden** (i.e. before the `hidden.bs.offcanvas` event occurs).|
|
||||||
| `getInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element |
|
| `getInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element |
|
||||||
| `getOrCreateInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element, or create a new one in case it wasn't initialised |
|
| `getOrCreateInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element, or create a new one in case it wasn't initialized |
|
||||||
{{< /bs-table >}}
|
{{< /bs-table >}}
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
|
@ -86,7 +86,7 @@ We apply additional styling to `.btn`s via `::before` to ensure the `height` is
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
|
|
||||||
{{< callout info >}}
|
{{< callout info >}}
|
||||||
The use of `aria-hidden="true"` only indicates that the element should be hidden to screen readers. The *loading* behaviour of the placeholder depends on how authors will actually use the placeholder styles, how they plan to update things, etc. Some JavasSript code may be needed to *swap* the state of the placeholder and inform AT users of the update.
|
The use of `aria-hidden="true"` only indicates that the element should be hidden to screen readers. The *loading* behavior of the placeholder depends on how authors will actually use the placeholder styles, how they plan to update things, etc. Some JavasSript code may be needed to *swap* the state of the placeholder and inform AT users of the update.
|
||||||
{{< /callout >}}
|
{{< /callout >}}
|
||||||
|
|
||||||
### Width
|
### Width
|
||||||
|
|
|
@ -395,7 +395,7 @@ var popover = bootstrap.Popover.getInstance(exampleTriggerEl) // Returns a Boots
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the popover instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the popover instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var exampleTriggerEl = document.getElementById('example')
|
var exampleTriggerEl = document.getElementById('example')
|
||||||
|
|
|
@ -300,7 +300,7 @@ var scrollSpy = bootstrap.ScrollSpy.getInstance(scrollSpyContentEl) // Returns a
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the scrollspy instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the scrollspy instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var scrollSpyContentEl = document.getElementById('content')
|
var scrollSpyContentEl = document.getElementById('content')
|
||||||
|
|
|
@ -424,7 +424,7 @@ var myToast = bootstrap.Toast.getInstance(myToastEl) // Returns a Bootstrap toas
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the toast instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the toast instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var myToastEl = document.getElementById('myToastEl')
|
var myToastEl = document.getElementById('myToastEl')
|
||||||
|
|
|
@ -419,7 +419,7 @@ var tooltip = bootstrap.Tooltip.getInstance(exampleTriggerEl) // Returns a Boots
|
||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the tooltip instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the tooltip instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var exampleTriggerEl = document.getElementById('example')
|
var exampleTriggerEl = document.getElementById('example')
|
||||||
|
|
|
@ -115,7 +115,7 @@ include_js: false
|
||||||
<li>Second list item with a longer description</li>
|
<li>Second list item with a longer description</li>
|
||||||
<li>Third list item to close it out</li>
|
<li>Third list item to close it out</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p>And this is a definiton list:</p>
|
<p>And this is a definition list:</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>HyperText Markup Language (HTML)</dt>
|
<dt>HyperText Markup Language (HTML)</dt>
|
||||||
<dd>The language used to describe and define the content of a Web page</dd>
|
<dd>The language used to describe and define the content of a Web page</dd>
|
||||||
|
|
Loading…
Add table
Reference in a new issue