mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
- Replaced <a><button></button></a> with a proper <a> containing text and aria-label to ensure links have discernible text. - Added main tag in home page to provide a consistent main landmark, improving accessibility for screen readers and satisfying WCAG and Lighthouse requirements. Fixes #65181.
28 lines
679 B
HTML
28 lines
679 B
HTML
@if (!hasAccepted()) {
|
|
<div class="docs-cookies-popup docs-invert-mode">
|
|
<p>This site uses cookies from Google to deliver its services and to analyze traffic.</p>
|
|
|
|
<div>
|
|
<a
|
|
href="https://policies.google.com/technologies/cookies"
|
|
target="_blank"
|
|
rel="noopener"
|
|
class="docs-primary-btn"
|
|
aria-label="Learn more about how Google uses cookies"
|
|
text="Learn more"
|
|
>
|
|
Learn more
|
|
</a>
|
|
|
|
<button
|
|
type="button"
|
|
(click)="accept()"
|
|
class="docs-primary-btn"
|
|
text="Ok, Got it"
|
|
aria-label="Ok, Got it"
|
|
>
|
|
Ok, Got it
|
|
</button>
|
|
</div>
|
|
</div>
|
|
}
|