|
15 | 15 | <p> |
16 | 16 | When nested amongst paragraphs of text, the anchor tag's default underline gives visual affordance that this selection of text is a${" "} |
17 | 17 | <em>hyperlink</em> |
18 | | - . The color of the link alone would not be sufficient affordance in this context and therefore the underline is required and must not be removed. |
| 18 | + ${" "}. The color of the link alone would not be sufficient affordance in this context and therefore the underline is required and must not be removed. |
19 | 19 | </p> |
20 | 20 |
|
21 | 21 | <div class="demo"> |
|
38 | 38 | </div> |
39 | 39 | </div> |
40 | 40 |
|
41 | | - <highlight-code |
42 | | - type="html" |
43 | | - > |
44 | | -<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod <a href="https://www.ebay.com">tempor incididunt</a> ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation <a href="https://www.ebay.com">ullamco laboris</a> nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in <a href="https://www.ebay.com">voluptate velit esse cillum</a> dolore eu fugiat nulla pariatur.</p> |
| 41 | + <highlight-code type="html"> |
| 42 | + <p> |
| 43 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod${" "} |
| 44 | + <a href="https://www.ebay.com"> |
| 45 | + tempor incididunt |
| 46 | + </a> |
| 47 | + ${" "}ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation${" "} |
| 48 | + <a href="https://www.ebay.com"> |
| 49 | + ullamco laboris |
| 50 | + </a> |
| 51 | + ${" "}nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in${" "} |
| 52 | + <a href="https://www.ebay.com"> |
| 53 | + voluptate velit esse cillum |
| 54 | + </a> |
| 55 | + dolore eu fugiat nulla pariatur. |
| 56 | + </p> |
45 | 57 | </highlight-code> |
46 | 58 | <!-- |
47 | 59 | <h3>Action Link</h3> |
|
107 | 119 | </div> |
108 | 120 | </div> |
109 | 121 |
|
110 | | - <highlight-code |
111 | | - type="html" |
112 | | - > |
113 | | -<nav aria-labelledby="nav-link-heading" role="navigation"> |
114 | | - <h2 id="nav-link-heading">Navigation</h2> |
115 | | - <ul> |
116 | | - <li><a class="nav-link" href="#link1">Link 1</a></li> |
117 | | - <li><a class="nav-link" href="#link2">Link 2</a></li> |
118 | | - <li><a class="nav-link" href="#link3">Link 3</a></li> |
119 | | - <li><a class="nav-link" href="#link4">Link 4</a></li> |
120 | | - <li><a class="nav-link" href="#link5">Link 5</a></li> |
121 | | - </ul> |
122 | | -</nav> |
| 122 | + <highlight-code type="html"> |
| 123 | + <nav aria-labelledby="nav-link-heading" role="navigation"> |
| 124 | + <h2 id="nav-link-heading"> |
| 125 | + Navigation |
| 126 | + </h2> |
| 127 | + <ul> |
| 128 | + <li> |
| 129 | + <a class="nav-link" href="#link1"> |
| 130 | + Link 1 |
| 131 | + </a> |
| 132 | + </li> |
| 133 | + <li> |
| 134 | + <a class="nav-link" href="#link2"> |
| 135 | + Link 2 |
| 136 | + </a> |
| 137 | + </li> |
| 138 | + <li> |
| 139 | + <a class="nav-link" href="#link3"> |
| 140 | + Link 3 |
| 141 | + </a> |
| 142 | + </li> |
| 143 | + <li> |
| 144 | + <a class="nav-link" href="#link4"> |
| 145 | + Link 4 |
| 146 | + </a> |
| 147 | + </li> |
| 148 | + <li> |
| 149 | + <a class="nav-link" href="#link5"> |
| 150 | + Link 5 |
| 151 | + </a> |
| 152 | + </li> |
| 153 | + </ul> |
| 154 | + </nav> |
| 155 | + </highlight-code> |
| 156 | + |
| 157 | + <h3 id="link-legal"> |
| 158 | + Legal Link |
| 159 | + </h3> |
| 160 | + <p> |
| 161 | + For a link used in legal text (such as Terms & Conditions), use the |
| 162 | + <span class="highlight"> |
| 163 | + legal-link |
| 164 | + </span> |
| 165 | + . |
| 166 | + </p> |
| 167 | + <div class="demo"> |
| 168 | + <div class="demo__inner"> |
| 169 | + <div> |
| 170 | + <a class="legal-link" href="https://www.ebay.com"> |
| 171 | + Terms & Conditions |
| 172 | + </a> |
| 173 | + </div> |
| 174 | + <div> |
| 175 | + <button class="fake-link legal-link" type="button"> |
| 176 | + Privacy Policy |
| 177 | + </button> |
| 178 | + </div> |
| 179 | + </div> |
| 180 | + </div> |
| 181 | + |
| 182 | + <highlight-code type="html"> |
| 183 | + <div> |
| 184 | + <a class="legal-link" href="https://www.ebay.com"> |
| 185 | + Terms & Conditions |
| 186 | + </a> |
| 187 | + </div> |
| 188 | + <div> |
| 189 | + <button class="fake-link legal-link" type="button"> |
| 190 | + Privacy Policy |
| 191 | + </button> |
| 192 | + </div> |
123 | 193 | </highlight-code> |
124 | 194 |
|
125 | 195 | <h3 id="link-fake"> |
|
141 | 211 | </div> |
142 | 212 | </div> |
143 | 213 |
|
144 | | - <highlight-code |
145 | | - type="html" |
146 | | - > |
147 | | -<button class="fake-link" type="button">Button</button> |
| 214 | + <highlight-code type="html"> |
| 215 | + <button class="fake-link" type="button"> |
| 216 | + Button |
| 217 | + </button> |
148 | 218 | </highlight-code> |
149 | 219 | <!-- |
150 | 220 | <p>To style a button to look like an <em>action</em> link, use the <span class="highlight">fake-link--action</span> modifier.</p> |
|
0 commit comments