Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): audit-1591-breadcrumbs-usage-header-id #2150

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 66 additions & 3 deletions src/pages/components/breadcrumb/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,83 @@ Truncated breadcrumbs are not currently built into the breadcrumb component. The
following colors from the [overflow menu](/components/overflow-menu/style) are
recommended for the overflow breadcrumb list.

### Color
<h3
class="AutolinkHeader-module--header--1G1tm Markdown-module--h3--Gwbvh"
id="truncated breadcrumbs color">
Color
<a
class="AutolinkHeader-module--anchor--36UpA AutolinkHeader-module--left-anchor--1SDoO"
href="#color"
aria-label="Color permalink">
<svg
focusable="false"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
width="20"
height="20"
viewBox="0 0 32 32"
aria-hidden="true">
<path d="M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"></path>
<path d="M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"></path>
</svg>
</a>
</h3>

| Class | Property | Color token |
| ------------------------------------------ | ---------------- | ----------- |
| `.bx--overflow-menu-options__btn` | color | `$icon-01` |
| `.bx--overflow-menu-options__option:hover` | background-color | `$hover-ui` |

### Typography
<h3
class="AutolinkHeader-module--header--1G1tm Markdown-module--h3--Gwbvh"
id="truncated breadcrumbs typography">
Typography
<a
class="AutolinkHeader-module--anchor--36UpA AutolinkHeader-module--left-anchor--1SDoO"
href="#typography"
aria-label="Typography permalink">
<svg
focusable="false"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
width="20"
height="20"
viewBox="0 0 32 32"
aria-hidden="true">
<path d="M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"></path>
<path d="M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"></path>
</svg>
</a>
</h3>

| Class | Font-size (px/rem) | Font-weight | Type token |
| --------------------------------- | ------------------ | ------------- | ---------------- |
| `.bx--overflow-menu-options__btn` | 14 / 0.875 | Regular / 400 | `$body-short-01` |

### Structure
<h3
class="AutolinkHeader-module--header--1G1tm Markdown-module--h3--Gwbvh"
id="truncated breadcrumbs structure">
Structure
<a
class="AutolinkHeader-module--anchor--36UpA AutolinkHeader-module--left-anchor--1SDoO"
href="#structure"
aria-label="Structure permalink">
<svg
focusable="false"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
width="20"
height="20"
viewBox="0 0 32 32"
aria-hidden="true">
<path d="M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"></path>
<path d="M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"></path>
</svg>
</a>
</h3>

| Class | Property | px / rem | Spacing token |
| ---------------------------- | -------- | -------- | ------------- |
Expand Down