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
Separators are automatically added in CSS through [`::before`](https://developer.mozilla.org/en-US/docs/Web/CSS/::before) and [`content`](https://developer.mozilla.org/en-US/docs/Web/CSS/content). They can be changed by changing `$breadcrumb-divider`. The [quote](https://sass-lang.com/documentation/functions/string#quote) function is needed to generate the quotes around a string, so if you want `>` as separator, you can use this:
63
+
Separators are automatically added in CSS through [`::before`][1] and [`content`][2].
64
+
They can be changed by changing `$breadcrumb-divider`.
65
+
The [quote][3] function is needed to generate the quotes around a string,
66
+
so if you want `>` as separator, you can use this:
61
67
62
68
```scss
63
69
$breadcrumb-divider: quote('>');
@@ -74,3 +80,7 @@ The separator can be removed by setting `$breadcrumb-divider` to `none`:
import { Example } from'../../../source/component/Example';
11
12
12
13
## Accordion example
13
14
14
-
Using the [card](components/card) component, you can extend the default collapse behavior to create an accordion. To properly achieve the accordion style, be sure to use `.accordion` as a wrapper.
15
+
Using the [card](components/card) component, you can extend the default collapse behavior to create an accordion.
15
16
16
17
<Example>
17
18
<AccordionList
@@ -37,21 +38,23 @@ Using the [card](components/card) component, you can extend the default collapse
import { Example } from'../../../source/component/Example';
11
12
12
13
## Overview
13
14
14
-
DropMenu are toggleable, contextual overlays for displaying lists of links and more. They're toggled by clicking, not by hovering; this is [an intentional design decision](http://markdotto.com/2012/02/27/bootstrap-explained-dropdowns/).
15
+
DropMenu are toggleable, contextual overlays for displaying lists of links and more.
16
+
They're toggled by clicking, not by hovering; this is [an intentional design decision][1].
15
17
16
18
## Accessibility
17
19
18
-
The [<abbrtitle="Web Accessibility Initiative">WAI</abbr> <abbrtitle="Accessible Rich Internet Applications">ARIA</abbr>](https://www.w3.org/TR/wai-aria/) standard defines an actual [`role="menu"` widget](https://www.w3.org/WAI/PF/aria/roles#menu), but this is specific to application-like menus which trigger actions or functions. <abbrtitle="Accessible Rich Internet Applications">ARIA</abbr> menus can only contain menu items, checkbox menu items, radio button menu items, radio button groups, and sub-menus.
20
+
The [<abbrtitle="Web Accessibility Initiative">WAI</abbr> <abbrtitle="Accessible Rich Internet Applications">ARIA</abbr>][2]
21
+
standard defines an actual [`role="menu"` widget][3], but this is specific to application-like menus which trigger actions or functions.
22
+
23
+
<abbrtitle="Accessible Rich Internet Applications">
24
+
ARIA
25
+
</abbr> menus can only contain menu items,
26
+
checkbox menu items, radio button menu items, radio button groups, and sub-menus.
19
27
20
-
Bootstrap's dropdowns, on the other hand, are designed to be generic and applicable to a variety of situations and markup structures. For instance, it is possible to create dropdowns that contain additional inputs and form controls, such as search fields or login forms. For this reason, Bootstrap does not expect (nor automatically add) any of the `role` and `aria-` attributes required for true <abbrtitle="Accessible Rich Internet Applications">ARIA</abbr> menus. Authors will have to include these more specific attributes themselves.
28
+
Bootstrap's dropdowns, on the other hand, are designed to be generic and applicable to a variety of situations and markup structures.
29
+
For instance, it is possible to create dropdowns that contain additional inputs and form controls, such as search fields or login forms.
30
+
For this reason, Bootstrap does not expect (nor automatically add) any of the `role` and `aria-` attributes required for true <abbrtitle="Accessible Rich Internet Applications">ARIA</abbr> menus.
31
+
Authors will have to include these more specific attributes themselves.
21
32
22
-
However, Bootstrap does add built-in support for most standard keyboard menu interactions, such as the ability to move through individual `.dropdown-item` elements using the cursor keys and close the menu with the <kbd>ESC</kbd> key.
33
+
However, Bootstrap does add built-in support for most standard keyboard menu interactions,
34
+
such as the ability to move through individual `.dropdown-item` elements using the cursor keys and close the menu with the <kbd>ESC</kbd> key.
23
35
24
36
## Examples
25
37
26
-
Wrap the dropdown's toggle (your button or link) and the dropdown menu within `.dropdown`, or another element that declares `position: relative;`. DropMenu can be triggered from `<a>` or `<button>` elements to better fit your potential needs. The examples shown here use semantic `<ul>` elements where appropriate, but custom markup is supported.
38
+
Wrap the dropdown's toggle (your button or link) and the dropdown menu within `.dropdown`,
39
+
or another element that declares `position: relative;`.
40
+
DropMenu can be triggered from `<a>` or `<button>` elements to better fit your potential needs.
41
+
The examples shown here use semantic `<ul>` elements where appropriate, but custom markup is supported.
27
42
28
43
### Single button
29
44
30
-
Any single `.btn` can be turned into a dropdown toggle with some markup changes. Here's how you can put them to work with either `<button>` elements:
45
+
Any single `.btn` can be turned into a dropdown toggle with some markup changes.
46
+
Here's how you can put them to work with either `<button>` elements:
31
47
32
48
<Example>
33
49
<DropMenu
@@ -44,14 +60,16 @@ Any single `.btn` can be turned into a dropdown toggle with some markup changes.
0 commit comments