Skip to content

Commit

Permalink
Merge pull request #41 from redwoodjs/jgmw/improve-accessibility-score
Browse files Browse the repository at this point in the history
Fix some accessibility issues
  • Loading branch information
Josh-Walker-GM authored Jul 3, 2024
2 parents 854be36 + 3154c01 commit 8ba2211
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/src/components/BlogCard/BlogCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ interface BlogCardProps {
const BlogCard = ({ post }: BlogCardProps) => {
return (
<article className="rounded-[4px] border-1 border-maiTai p-7 pb-5">
<h4 className="mb-2 text-sm font-bold uppercase text-maiTai">
<p className="mb-2 text-sm font-bold uppercase text-maiTai">
{prettifyDate(post.publishedAt)}
</h4>
</p>
<Link
to={routes.blogIndividual({ slug: post.slug })}
className="text-white hover:text-sulu"
Expand Down
1 change: 1 addition & 0 deletions web/src/components/Home/NavHome/NavHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ const Nav = () => {
onClick={() => {
setIsThemeDropdownShowing((prevValue) => !prevValue)
}}
aria-label="switch theme"
>
<Icon
id={selectedTheme}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Home/RedwoodIs/RedwoodIs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const RedwoodIs = () => {
>
{Constants.CREATE_REDWOOD_SCRIPT}
</div>
<button onClick={copyToClipboard}>
<button onClick={copyToClipboard} aria-label="copy install command">
{isCopied ? (
<span className="text-sulu">
<Icon id="check" />
Expand Down
1 change: 1 addition & 0 deletions web/src/components/Nav/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ const Nav = () => {
onClick={() => {
setIsThemeDropdownShowing((prevValue) => !prevValue)
}}
aria-label="switch theme"
>
<Icon
id={selectedTheme}
Expand Down

0 comments on commit 8ba2211

Please sign in to comment.