Links
Atomic classes for creating SEO-friendly and accessible links.
Link Overlay
#
The .link--overlay
and .link--wrapper
classes allow you to make an
entire container clickable while keeping semantic HTML for SEO. Based on
best practices from Enodo's SEO guide .
Class | Description |
---|---|
.link--overlay |
Creates a clickable overlay. Use on the <a> tag. |
.link--wrapper |
Parent wrapper with position: relative . Automatically elevates secondary
links and buttons.
|
SEO Benefits
#
Using .link--overlay
instead of wrapping the entire card in an
<a>
tag provides significant SEO and accessibility advantages:
Best Practices
#Advanced Usage
#How It Works
#
The .link--overlay
class uses a CSS pseudo-element to create an invisible layer
that covers the parent container. The .link--wrapper
class includes
position: relative
and automatically elevates secondary interactive elements: