You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/dropdown/README.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ clicking (or pressing space or enter when focused), not by hovering; this is an
26
26
27
27
## Dropdown supported sub-components
28
28
The following components can be placed inside of your dropdowns. Using any other
29
-
component or markup may break lauout and/or keyboard navigation.
29
+
component or markup may break layout and/or keyboard navigation.
30
30
31
31
| Sub-component | Description | Aliases
32
32
| --------- | ----------- | -------
33
-
| `<b-dropdown-item>` | Action items that provide click, link, and `<router-link>` functionality. renders as an `<a>` element by default. | `<b-dd-item>`
33
+
| `<b-dropdown-item>` | Action items that provide click, link, and `<router-link>` functionality. Renders as an `<a>` element by default. | `<b-dd-item>`
34
34
| `<b-dropdown-item-button>` | An alternative to `<b-dropdown-item>` that renders a menu item using a `<button>` element. | `<b-dropdown-item-btn>`, `<b-dd-item-button>`, `<b-dd-item-btn>`
35
35
| `<b-dropdown-header>` | A header item, used to help identify a group of dropdown items. | `<b-dd-header>`
36
36
| `<b-dropdown-divider>` | A divider / spacer which can be used to separate dropdown items. | `<b-dd-divider>`
@@ -40,8 +40,8 @@ component or markup may break lauout and/or keyboard navigation.
40
40
### `<b-dropdown-item>`
41
41
The `<b-dropdown-item>` is typically used to create a navigation link inside your menu.
42
42
Use either the `href` prop or the `to` prop (for router link support) to generate the
43
-
apropriate navigation link. IF neither `href` nor `to` are provided, a standard `<a>`
44
-
link will be generated with an `href` of `#` (with an event hander that will prevent
43
+
appropriate navigation link. If neither `href` nor `to` are provided, a standard `<a>`
44
+
link will be generated with an `href` of `#` (with an event handler that will prevent
45
45
scroll to top behaviour by preventing the default link action).
46
46
47
47
Disabled the dropdown item by setting the `disabled` prop.
@@ -67,8 +67,8 @@ Disabled the dropdown item button by setting the `disabled` prop.
67
67
<!-- dropdown-item-buttons.vue -->
68
68
```
69
69
70
-
When the menu item doesn't trigger navigation, it is reccomended to use
71
-
the `<b-dropdown-item-button>` sub-component
70
+
When the menu item doesn't trigger navigation, it is recommended to use
71
+
the `<b-dropdown-item-button>` sub-component.
72
72
73
73
### `<b-dropdown-item-divider>`
74
74
Separate groups of related menu items with `<b-dropdown-divider>`.
@@ -174,10 +174,10 @@ the toggle button:
174
174
### Boundary constraint
175
175
By default, dropdowns are visually constrained to its scroll parent, which will suffice
176
176
in most situations. However, if you place a dropdown inside an element that has `overflow: scroll`
177
-
(or similar) set, the drodpwon menu may - in some situations - get cut off. To get around this,
178
-
you can sepcify a boundary element via the `boundary` prop. Supported values are `'scrollParent'`
177
+
(or similar) set, the dropdown menu may - in some situations - get cut off. To get around this,
178
+
you can specify a boundary element via the `boundary` prop. Supported values are `'scrollParent'`
179
179
(the default), `'viewport'`, `'window'` or a reference to an HTML element. The boundary value
180
-
is passed directly to Popper.js's `boundariesElement`configurtion option.
180
+
is passed directly to Popper.js's `boundariesElement`configuration option.
181
181
182
182
**Note:** when `boundary` is any value other than the default of `'scrollParent'`, the style
183
183
`position: static` is applied to to the dropdown component's root element in order to allow the
@@ -239,7 +239,7 @@ Set the `size` prop to either `sm` for small button(s), or `lg` for large button
239
239
240
240
241
241
## Dropdown color variants
242
-
The dropdown trigger buttons can have one of the standard Boostrap contextual variants applied
242
+
The dropdown trigger buttons can have one of the standard Bootstrap contextual variants applied
243
243
by setting the prop `variant` to `success`, `primary`, `info`, `danger`, `link` etc.
244
244
245
245
See the [Variant Reference](/docs/reference/variants) for a list of supported contextual variants.
@@ -276,7 +276,7 @@ the appropriate `aria-*` attributes in the rendered markup.
276
276
The default ARIA role is set to `menu`, but you can change this default to another role
277
277
(such as `navigation`) via the `role` prop, depending on your user case.
278
278
279
-
When a menu item doesn't trigger navigation, it is reccomended to use the
279
+
When a menu item doesn't trigger navigation, it is recommended to use the
280
280
`<b-dropdown-item-button>` sub-component (which is not announced as a link) instead of
281
281
`<b-dropdown-item>` (which is presented as a link to the user).
0 commit comments