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: docs/4.0/components/CBreadcrumb.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
---
2
2
title: React Breadcrumb Component
3
3
name: Breadcrumb
4
+
description: React breadcrumb navigation component which indicates the current location within a navigational hierarchy that automatically adds separators.
@@ -25,12 +25,12 @@ CoreUI includes a bunch of predefined buttons components, each serving its own s
25
25
<CButtoncolor="link">Link</CButton>
26
26
</Playground>
27
27
28
-
<divclassName="callout callout-info">
28
+
<CCalloutcolor="info">
29
29
<h5>Conveying meaning to assistive technologies</h5>
30
30
<p>
31
31
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.visually-hidden` class.
32
32
</p>
33
-
</div>
33
+
</CCallout>
34
34
35
35
## Disable text wrapping
36
36
@@ -80,7 +80,9 @@ If you need a ghost variant of button, set `variant="ghost"` prop to remove all
CALLOUT: Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast.
83
+
<CCalloutcolor="info">
84
+
Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast.
Copy file name to clipboardExpand all lines: docs/4.0/components/COffcanvas.mdx
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ import {
23
23
24
24
### Offcanvas components
25
25
26
-
Below is an offcanvas example that is shown by default (via `.show` on `.offcanvas`). Offcanvas includes support for a header with a close button and an optional body class for some initial `padding`. We suggest that you include offcanvas headers with dismiss actions whenever possible, or provide an explicit dismiss action.
26
+
Below is an offcanvas example that is shown by default (via `visible={true}`). Offcanvas includes support for a header with a close button and an optional body class for some initial `padding`. We suggest that you include offcanvas headers with dismiss actions whenever possible, or provide an explicit dismiss action.
27
27
28
28
<Playground>
29
29
<divclassName="docs-example-offcanvas bg-light">
@@ -42,12 +42,10 @@ Below is an offcanvas example that is shown by default (via `.show` on `.offcanv
42
42
43
43
### Live demo
44
44
45
-
Use the buttons below to show and hide an offcanvas element via JavaScript that toggles the `.show` class on an element with the `.offcanvas` class.
45
+
Use the buttons below to show and hide an offcanvas component.
46
46
47
-
-`.offcanvas` hides content (default)
48
-
-`.offcanvas.show` shows content
49
-
50
-
You can use a link with the `href` attribute, or a button with the `data-coreui-target` attribute. In both cases, the `data-coreui-toggle="offcanvas"` is required.
47
+
-`visible={false}` hides content (default)
48
+
-`visible` or `visible={true}` shows content
51
49
52
50
<Playground>
53
51
{() => {
@@ -74,10 +72,10 @@ You can use a link with the `href` attribute, or a button with the `data-coreui-
74
72
75
73
There's no default placement for offcanvas components, so you must add one of the modifier classes below;
76
74
77
-
-`.offcanvas-start` places offcanvas on the left of the viewport (shown above)
78
-
-`.offcanvas-end` places offcanvas on the right of the viewport
79
-
-`.offcanvas-top` places offcanvas on the top of the viewport
80
-
-`.offcanvas-bottom` places offcanvas on the bottom of the viewport
75
+
-`placement="start"` places offcanvas on the left of the viewport (shown above)
76
+
-`placement="end"` places offcanvas on the right of the viewport
77
+
-`placement="top"` places offcanvas on the top of the viewport
78
+
-`placement="bottom"` places offcanvas on the bottom of the viewport
81
79
82
80
Try the top, right, and bottom examples out below.
0 commit comments