Skip to content

Commit

Permalink
fix: update link styles throughout the site (#776)
Browse files Browse the repository at this point in the history
* fix: update link styles throughout the site

* fix: use class instead of id

* fix: use class instead of id

---------

Co-authored-by: Ned Zimmerman <[email protected]>
  • Loading branch information
chosww and greatislander authored Apr 5, 2024
1 parent daaa8f2 commit 79a7db8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/_includes/partials/components/pagination.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<h2 id="pagination" class="visually-hidden">news page navigation</h2>
<ul class="container">
{%- if pagination.href.previous %}
<li><a href="{{ pagination.href.previous }}">{% include 'svg/previous.svg' %}<span class="visually-hidden">previous</span></a></li>
<li><a class="pagination-link" href="{{ pagination.href.previous }}">{% include 'svg/previous.svg' %}<span class="visually-hidden">previous</span></a></li>
{%- endif %}
{%- for pageEntry in pagination.pages %}
<li><a href="{{ pagination.hrefs[ loop.index0 ] }}"{% if page.url == pagination.hrefs[ loop.index0 ] %} aria-current="page"{% endif %}>{{ loop.index }}</a></li>
<li><a class="pagination-link" href="{{ pagination.hrefs[ loop.index0 ] }}"{% if page.url == pagination.hrefs[ loop.index0 ] %} aria-current="page"{% endif %}>{{ loop.index }}</a></li>
{%- endfor %}
{%- if pagination.href.next %}
<li><a href="{{ pagination.href.next }}"><span class="visually-hidden">next</span>{% include 'svg/next.svg' %}</a></li>
<li><a class="pagination-link" href="{{ pagination.href.next }}"><span class="visually-hidden">next</span>{% include 'svg/next.svg' %}</a></li>
{%- endif %}
</ul>
</nav>
8 changes: 3 additions & 5 deletions src/assets/styles/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ a {
color: var(--fl-linkColor);
font-family: var(--fl-font-family, var(--ff-display));
text-decoration: underline;
text-underline-offset: 0.3em;
}

main,
Expand All @@ -44,7 +45,8 @@ footer {
a:hover {
background: var(--fl-linkColor, var(--accent, var(--yellow-500)));
color: var(--fl-bgColor, currentColor);
outline-color: var(--fl-linkColor, var(--accent, var(--yellow-500)));
text-decoration: none;
text-underline-offset: unset;
}

a:focus {
Expand Down Expand Up @@ -83,10 +85,6 @@ a[hreflang] {
margin-block-start: var(--step-2);
}

.content a:visited {
text-decoration-color: var(--fl-linkColor, var(--yellow-500));
}

main h1,
main h2,
main h3,
Expand Down
4 changes: 4 additions & 0 deletions src/assets/styles/components/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@
block-size: rem(24);
inline-size: rem(24);
}

a.pagination-link {
text-decoration: none;
}
3 changes: 2 additions & 1 deletion src/assets/styles/layout/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
margin-block-end: rem(8);
}

.footer .social a {
.footer .social a,
.footer .contact a {
text-decoration: none;
}

Expand Down

0 comments on commit 79a7db8

Please sign in to comment.