Skip to content

Commit

Permalink
A11y fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Apr 16, 2024
1 parent 73f4456 commit b4453e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 5 additions & 3 deletions components/SectionNav/SectionNavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export const SectionNavItem = ({
href,
label,
}: SectionNavItemProps) => (
<a href={href} className="block text-19 w-fit mb-10 last:mb-0 2xl:max-w-300 2xl:w-300">
{label}
</a>
<li className="mb-10 last:mb-0">
<a href={href} className="block text-19 w-fit 2xl:max-w-300 2xl:w-300">
{label}
</a>
</li>
);
4 changes: 3 additions & 1 deletion components/SidebarNav/SidebarMenuGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export const SidebarMenuGroup = ({
<Collapse in={isExpanded} unmountOnExit>
<ul className={styles.childMenu}>
{menuLinks?.map((menuItem) => (
<SidebarMenuLink key={menuItem.label} label={menuItem.label} href={menuItem.href} isSecondLevel />
<li className="mb-0" key={ "list-" + menuItem.label }>
<SidebarMenuLink key={menuItem.label} label={menuItem.label} href={menuItem.href} isSecondLevel />
</li>
))}
</ul>
</Collapse>
Expand Down
2 changes: 1 addition & 1 deletion content/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Decanter includes both the Decanter Design System built in Figma and the Decante

<Section heading="Awesome Decanter projects">

<p>Check out the official Decanter <a href="https://github.com/SU-SWS/Awesome-Decanter/" className="inline-block"><img src="https://cdn.jsdelivr.net/gh/sindresorhus/awesome@d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" className="inline-block"/> list</a></p>
<p>Check out the official Decanter <a href="https://github.com/SU-SWS/Awesome-Decanter/" className="inline-block"><img src="https://cdn.jsdelivr.net/gh/sindresorhus/awesome@d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome Decanter repository badge" className="inline-block"/> list</a></p>

- <a href="/">Stanford Homesite</a>
- <a href="https://giving.stanford.edu/">Giving</a>
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const { withContentlayer } = require('next-contentlayer');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
i18n: {
locales: ["en"],
defaultLocale: "en",
},
};

module.exports = withContentlayer(nextConfig);

0 comments on commit b4453e6

Please sign in to comment.