@@ -7,8 +7,9 @@ image: assets/images/components/breadcrumbs.png
7
7
storybook : https://vue.dialpad.design/?path=/story/components-breadcrumbs--default
8
8
figma_url : https://www.figma.com/file/2adf7JhZOncRyjYiy2joil/DT-Core%3A-Components-7?node-id=8918%3A21306&viewport=-61%2C443%2C1.12&t=xHutRjwo1o5zMTgT-11
9
9
---
10
+
10
11
<code-well-header >
11
- <nav class =" d-breadcrumbs d-bgc-primary d-py16 d-px12 " aria-label =" breadcrumb " >
12
+ <nav class =" d-breadcrumbs " aria-label =" breadcrumb " >
12
13
<ol>
13
14
<li class="d-breadcrumbs__item">
14
15
<a href="#" class="d-link d-link--muted">Root</a>
@@ -47,8 +48,10 @@ Breadcrumbs are always treated as secondary and should not entirely replace the
47
48
48
49
## Variants and examples
49
50
51
+ ### Default
52
+
50
53
<code-well-header >
51
- <nav class="d-breadcrumbs d-bgc-primary d-py16 d-px12 " aria-label="breadcrumb">
54
+ <nav class="d-breadcrumbs" aria-label="breadcrumb">
52
55
<ol>
53
56
<li class="d-breadcrumbs__item">
54
57
<a href="#" class="d-link d-link--muted">Root</a>
@@ -67,25 +70,6 @@ Breadcrumbs are always treated as secondary and should not entirely replace the
67
70
</li>
68
71
</ol>
69
72
</nav>
70
- <nav class="d-breadcrumbs d-breadcrumbs--inverted d-bgc-contrast d-py16 d-px12 d-mt0" aria-label="inverted breadcrumb">
71
- <ol>
72
- <li class="d-breadcrumbs__item">
73
- <a href="#" class="d-link d-link--inverted">Root</a>
74
- </li>
75
- <li class="d-breadcrumbs__item">
76
- <a href="#" class="d-link d-link--inverted">Section</a>
77
- </li>
78
- <li class="d-breadcrumbs__item">
79
- <a href="#" class="d-link d-link--inverted">Section</a>
80
- </li>
81
- <li class="d-breadcrumbs__item">
82
- <a href="#" class="d-link d-link--inverted">Section</a>
83
- </li>
84
- <li class="d-breadcrumbs__item d-breadcrumbs__item--selected">
85
- <a href="#" class="d-link d-link--inverted" aria-current="location">Current Page</a>
86
- </li>
87
- </ol>
88
- </nav>
89
73
</code-well-header >
90
74
91
75
``` html
@@ -108,12 +92,50 @@ Breadcrumbs are always treated as secondary and should not entirely replace the
108
92
</li >
109
93
</ol >
110
94
</nav >
111
- <nav class =" d-breadcrumbs d-breadcrumbs--inverted" aria-label =" breadcrumb" >
95
+ ```
96
+
97
+ ### Inverted
98
+
99
+ <code-well-header class =" d-bgc-contrast " >
100
+ <nav class="d-breadcrumbs d-breadcrumbs--inverted d-bgc-contrast" aria-label="inverted breadcrumb">
101
+ <ol>
102
+ <li class="d-breadcrumbs__item">
103
+ <a href="#" class="d-link d-link--inverted">Root</a>
104
+ </li>
105
+ <li class="d-breadcrumbs__item">
106
+ <a href="#" class="d-link d-link--inverted">Section</a>
107
+ </li>
108
+ <li class="d-breadcrumbs__item">
109
+ <a href="#" class="d-link d-link--inverted">Section</a>
110
+ </li>
111
+ <li class="d-breadcrumbs__item">
112
+ <a href="#" class="d-link d-link--inverted">Section</a>
113
+ </li>
114
+ <li class="d-breadcrumbs__item d-breadcrumbs__item--selected">
115
+ <a href="#" class="d-link d-link--inverted" aria-current="location">Current Page</a>
116
+ </li>
117
+ </ol>
118
+ </nav>
119
+ </code-well-header >
120
+
121
+ ``` html
122
+ <nav class =" d-breadcrumbs d-breadcrumbs--inverted" aria-label =" inverted breadcrumb" >
112
123
<ol >
113
- <li class =" d-breadcrumbs__item" >
114
- <a href =" #" class =" d-link d-link--inverted" >Root</a >
115
- </li >
116
- ...
124
+ <li class =" d-breadcrumbs__item" >
125
+ <a href =" #" class =" d-link d-link--inverted" >Root</a >
126
+ </li >
127
+ <li class =" d-breadcrumbs__item" >
128
+ <a href =" #" class =" d-link d-link--inverted" >Section</a >
129
+ </li >
130
+ <li class =" d-breadcrumbs__item" >
131
+ <a href =" #" class =" d-link d-link--inverted" >Section</a >
132
+ </li >
133
+ <li class =" d-breadcrumbs__item" >
134
+ <a href =" #" class =" d-link d-link--inverted" >Section</a >
135
+ </li >
136
+ <li class =" d-breadcrumbs__item d-breadcrumbs__item--selected" >
137
+ <a href =" #" class =" d-link d-link--inverted" aria-current =" location" >Current Page</a >
138
+ </li >
117
139
</ol >
118
140
</nav >
119
141
```
0 commit comments