diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-08-18 20:05:04 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-08-18 20:43:53 +0200 |
commit | bd8cef8e6ad283fff82e25efd7a71851b3bcd2d3 (patch) | |
tree | 92f567fd2cc79115364214b29f47c61aa3ff027b /src/components/landing/sections/Software.tsx | |
parent | Blog post readability (diff) | |
download | blog-bd8cef8e6ad283fff82e25efd7a71851b3bcd2d3.tar.gz blog-bd8cef8e6ad283fff82e25efd7a71851b3bcd2d3.tar.zst blog-bd8cef8e6ad283fff82e25efd7a71851b3bcd2d3.zip |
Improve landing page accessibility
Diffstat (limited to 'src/components/landing/sections/Software.tsx')
-rw-r--r-- | src/components/landing/sections/Software.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/landing/sections/Software.tsx b/src/components/landing/sections/Software.tsx index c44a6ad..34178cc 100644 --- a/src/components/landing/sections/Software.tsx +++ b/src/components/landing/sections/Software.tsx | |||
@@ -30,8 +30,8 @@ function ScreenshotImage() { | |||
30 | // Force re-render in browser. | 30 | // Force re-render in browser. |
31 | // https://github.com/facebook/docusaurus/blob/e012e0315862b2ca02cad40c58d11d31c319ff75/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx#L32-L36 | 31 | // https://github.com/facebook/docusaurus/blob/e012e0315862b2ca02cad40c58d11d31c319ff75/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx#L32-L36 |
32 | const isBrowser = useIsBrowser(); | 32 | const isBrowser = useIsBrowser(); |
33 | const { isDarkTheme } = useColorMode(); | 33 | const { colorMode } = useColorMode(); |
34 | const refineryScreenshot = isDarkTheme | 34 | const refineryScreenshot = colorMode === 'dark' |
35 | ? refineryScreenshotLight | 35 | ? refineryScreenshotLight |
36 | : refineryScreenshotDark; | 36 | : refineryScreenshotDark; |
37 | 37 | ||
@@ -190,7 +190,10 @@ export default function Software() { | |||
190 | )} | 190 | )} |
191 | > | 191 | > |
192 | <div className={styles.ferdium__icon}> | 192 | <div className={styles.ferdium__icon}> |
193 | <FerdiumLogo className={styles.ferdium__logo} /> | 193 | <FerdiumLogo |
194 | className={styles.ferdium__logo} | ||
195 | aria-hidden="true" | ||
196 | /> | ||
194 | </div> | 197 | </div> |
195 | <div | 198 | <div |
196 | className={clsx(styles.ferdium__content, styles.description)} | 199 | className={clsx(styles.ferdium__content, styles.description)} |