mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
Merge pull request #38 from SuperMeepBoy/accessbility-ignore-icons-screen-reader
accessibility: ignore icons for screen readers
This commit is contained in:
commit
ddf929f4c0
@ -48,14 +48,14 @@ export function PlayButton() {
|
|||||||
>
|
>
|
||||||
{isPlaying ? (
|
{isPlaying ? (
|
||||||
<>
|
<>
|
||||||
<span>
|
<span aria-hidden="true">
|
||||||
<BiPause />
|
<BiPause />
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
Pause
|
Pause
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<span>
|
<span aria-hidden="true">
|
||||||
<BiPlay />
|
<BiPlay />
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
Play
|
Play
|
||||||
|
@ -9,7 +9,7 @@ export function Donate() {
|
|||||||
<div className={styles.donate}>
|
<div className={styles.donate}>
|
||||||
<div className={styles.iconContainer}>
|
<div className={styles.iconContainer}>
|
||||||
<div className={styles.tail} />
|
<div className={styles.tail} />
|
||||||
<div className={styles.icon}>
|
<div aria-hidden="true" className={styles.icon}>
|
||||||
<FaCoffee />
|
<FaCoffee />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,9 @@ export function Category({
|
|||||||
<div className={styles.category} id={`category-${id}`}>
|
<div className={styles.category} id={`category-${id}`}>
|
||||||
<div className={styles.iconContainer}>
|
<div className={styles.iconContainer}>
|
||||||
<div className={styles.tail} />
|
<div className={styles.tail} />
|
||||||
<div className={styles.icon}>{icon}</div>
|
<div aria-hidden="true" className={styles.icon}>
|
||||||
|
{icon}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.title}>{title}</div>
|
<div className={styles.title}>{title}</div>
|
||||||
|
@ -13,6 +13,7 @@ const count = soundCount();
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<img
|
<img
|
||||||
alt="Faded Moodist Logo"
|
alt="Faded Moodist Logo"
|
||||||
|
aria-hidden="true"
|
||||||
class="logo"
|
class="logo"
|
||||||
height={45}
|
height={45}
|
||||||
src="/logo.svg"
|
src="/logo.svg"
|
||||||
@ -28,7 +29,7 @@ const count = soundCount();
|
|||||||
<h1 class="desc">Ambient sounds for focus and calm.</h1>
|
<h1 class="desc">Ambient sounds for focus and calm.</h1>
|
||||||
|
|
||||||
<p class="sounds">
|
<p class="sounds">
|
||||||
<span class="icon">
|
<span aria-hidden="true" class="icon">
|
||||||
<BsSoundwave />
|
<BsSoundwave />
|
||||||
</span>
|
</span>
|
||||||
<span>{count} Sounds</span>
|
<span>{count} Sounds</span>
|
||||||
|
@ -56,6 +56,7 @@ export function Favorite({ id, label }: FavoriteProps) {
|
|||||||
>
|
>
|
||||||
<motion.span
|
<motion.span
|
||||||
animate="show"
|
animate="show"
|
||||||
|
aria-hidden="true"
|
||||||
exit="hidden"
|
exit="hidden"
|
||||||
initial="hidden"
|
initial="hidden"
|
||||||
key={isFavorite ? `${id}-is-favorite` : `${id}-not-favorite`}
|
key={isFavorite ? `${id}-is-favorite` : `${id}-not-favorite`}
|
||||||
|
@ -97,11 +97,11 @@ export const Sound = forwardRef<HTMLDivElement, SoundProps>(function Sound(
|
|||||||
<Favorite id={id} label={label} />
|
<Favorite id={id} label={label} />
|
||||||
<div className={styles.icon}>
|
<div className={styles.icon}>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<span className={styles.spinner}>
|
<span aria-hidden="true" className={styles.spinner}>
|
||||||
<ImSpinner9 />
|
<ImSpinner9 />
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
icon
|
<span aria-hidden="true">{icon}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.label} id={id}>
|
<div className={styles.label} id={id}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user