Skip to content

Commit

Permalink
fix: add AA WCAG compliant link styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Oct 8, 2024
1 parent 2309ab7 commit 672fd6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/foundation/app/(Site)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const dynamic = 'force-static';
async function ReadMoreText() {
const blogDictionary = await getTranslations('blog');
return (
<span className="group-hover:border-b-session-green group-hover:text-session-text-black hover:border-b-session-green border-b-session-black mt-1 w-max border-b text-sm group-hover:border-b-2">
<span className="group-hover:decoration-session-green decoration-session-black mt-1 w-max text-sm underline">
{blogDictionary('readMore')}
</span>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity-cms/components/SanityPortableText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const basicComponents: BasicComponentsType = {
},
marks: {
link: ({ children, value }) => (
<NavLink href={value.href} className="text-session-green-dark hover:text-session-green">
<NavLink href={value.href} unStyled className="text-session-green-link hover:underline">
{children}
</NavLink>
),
Expand Down
1 change: 1 addition & 0 deletions packages/ui/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
rgba(188, 200, 193, 1) 100%
);
--session-green-dark: #00aa59;
--session-green-link: #008547;
--session-disabled: #939393;

/* Definitions */
Expand Down
1 change: 1 addition & 0 deletions packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default {
session: {
green: 'var(--session-green)',
'green-dark': 'var(--session-green-dark)',
'green-link': 'var(--session-green-link)',
black: 'var(--session-black)',
white: 'var(--session-white)',
text: 'var(--session-text)',
Expand Down

0 comments on commit 672fd6d

Please sign in to comment.