Skip to content

Commit 2052285

Browse files
author
shleewhite
committed
fix: duplicated docs example
1 parent c9f7367 commit 2052285

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

website/docs/components/breadcrumb/partials/code/component-api.md

-18
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,3 @@ The Breadcrumb component is composed of three different parts, each with their o
5959
This component supports use of [`...attributes`](https://guides.emberjs.com/release/in-depth-topics/patterns-for-components/#toc_attribute-ordering).
6060
</C.Property>
6161
</Doc::ComponentApi>
62-
63-
#### Width-based truncation
64-
65-
!!! Warning
66-
67-
The text will automatically truncate and be replaced with an ellipsis to fit within the container. Please be aware there are [serious accessibility concerns](/components/copy/snippet?tab=accessibility) with using this feature.
68-
!!!
69-
70-
```handlebars
71-
<Hds::Breadcrumb @itemsCanWrap={{false}}>
72-
<Hds::Breadcrumb::Item @text="Level one with a very long string" @icon="org" />
73-
<Hds::Breadcrumb::Item @text="Level two with a very long string" @icon="folder" />
74-
<Hds::Breadcrumb::Item @text="Level three with a very long string" />
75-
<Hds::Breadcrumb::Item @text="Level four with a very long string" />
76-
<Hds::Breadcrumb::Item @text="Level five with a very long string" />
77-
<Hds::Breadcrumb::Item @text="Current with a very long string" @current={{true}} />
78-
</Hds::Breadcrumb>
79-
```

website/docs/components/breadcrumb/partials/code/how-to-use.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ It’s possible to hide part of the Breadcrumb tree under a "truncated" item tha
6767
```
6868
#### Width-based truncation
6969

70-
By setting `@itemsCanWrap` to `false`, it is possible to constrain the text to one-line and truncate it if it does not fit the available space. Please be aware there are [serious accessibility concerns](/components/copy/snippet?tab=accessibility) with using this feature.
70+
By setting `@itemsCanWrap` to `false`, it is possible to constrain the text to one-line and truncate it if it does not fit the available space.
71+
72+
!!! Warning
73+
74+
The text will automatically truncate and be replaced with an ellipsis to fit within the container. Please be aware there are [serious accessibility concerns](/components/copy/snippet?tab=accessibility) with using this feature.
75+
76+
!!!
7177

7278
```handlebars
7379
<Hds::Breadcrumb @itemsCanWrap={{false}}>
@@ -78,4 +84,4 @@ By setting `@itemsCanWrap` to `false`, it is possible to constrain the text to o
7884
<Hds::Breadcrumb::Item @text="Level five with a very long string" />
7985
<Hds::Breadcrumb::Item @text="Current with a very long string" @current={{true}} />
8086
</Hds::Breadcrumb>
81-
```
87+
```

0 commit comments

Comments
 (0)