Skip to content

Commit f4f64ef

Browse files
committed
docs: update documentation
1 parent a046790 commit f4f64ef

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

packages/docs/content/components/dropdown.mdx

+6-6
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ Historically dropdown menu contents _had_ to be links, but that's no longer the
390390
You can also create non-interactive dropdown items with `<CDropdownItemPlain>`.
391391

392392
```jsx preview
393-
<div className="border rounded py-2">
393+
<CDropdownMenu>
394394
<CDropdownItemPlain>Dropdown item text</CDropdownItemPlain>
395395
<CDropdownItem href="#">Action</CDropdownItem>
396396
<CDropdownItem href="#">Another action</CDropdownItem>
397397
<CDropdownItem href="#">Something else here</CDropdownItem>
398-
</div>
398+
</CDropdownMenu>
399399
```
400400

401401
### Active
@@ -405,11 +405,11 @@ Set boolean property `active` to **style item as active**.
405405
In the following example we use `div` instead of `<CDropdownMenu>` to show `<CDropdownMenu>` content.
406406

407407
```jsx preview
408-
<div className="border rounded py-2">
408+
<CDropdownMenu>
409409
<CDropdownItem href="#">Regular link</CDropdownItem>
410410
<CDropdownItem href="#" active>Active link</CDropdownItem>
411411
<CDropdownItem href="#">Another link</CDropdownItem>
412-
</div>
412+
</CDropdownMenu>
413413
```
414414

415415
### Disabled
@@ -419,11 +419,11 @@ Add `disabled` boolean property to items in the dropdown to **style them as disa
419419
In the following example we use `div` instead of `<CDropdownMenu>` to show `<CDropdownMenu>` content.
420420

421421
```jsx preview
422-
<div className="border rounded py-2">
422+
<CDropdownMenu>
423423
<CDropdownItem href="#">Regular link</CDropdownItem>
424424
<CDropdownItem href="#" disabled>Disabled link</CDropdownItem>
425425
<CDropdownItem href="#">Another link</CDropdownItem>
426-
</div>
426+
</CDropdownMenu>
427427
```
428428

429429
## Menu alignment

packages/docs/content/components/list-group.mdx

+9-10
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,15 @@ And if you want `<label>`s as the `.list-group-item` for large hit areas, you ca
300300

301301
```jsx preview
302302
<CListGroup>
303-
<CFormCheck className="list-group-item" hitArea="full" label="Cras justo odio" />
304-
<CFormCheck
305-
className="list-group-item"
306-
hitArea="full"
307-
label="Dapibus ac facilisis in"
308-
defaultChecked
309-
/>
310-
<CFormCheck className="list-group-item" hitArea="full" label="Morbi leo risus" defaultChecked />
311-
<CFormCheck className="list-group-item" hitArea="full" label="orta ac consectetur ac" />
312-
<CFormCheck className="list-group-item" hitArea="full" label="Vestibulum at eros" />
303+
<CListGroupItem>
304+
<CFormCheck hitArea="full" label="First checkbox" value="" id="firstCheckboxStretched" />
305+
</CListGroupItem>
306+
<CListGroupItem>
307+
<CFormCheck hitArea="full" label="Second checkbox" value="" id="secondCheckboxStretched" defaultChecked/>
308+
</CListGroupItem>
309+
<CListGroupItem>
310+
<CFormCheck hitArea="full" label="Third checkbox" value="" id="thirdCheckboxStretched"/>
311+
</CListGroupItem>
313312
</CListGroup>
314313
```
315314

packages/docs/src/templates/DefaultLayout.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import DocsLayout from './DocsLayout'
55

66
import { AppContext } from '../AppContext'
77
import { Script } from 'gatsby'
8-
import { Helmet } from 'react-helmet'
98

109
interface DefaultLayoutProps {
1110
children: any

0 commit comments

Comments
 (0)