Skip to content

Commit 8539e07

Browse files
committed
Accessibility fixes
1 parent ca6ac42 commit 8539e07

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

bingus-frontend/src/App.tsx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ function App() {
158158
<Container>
159159
<Stack useFlexGap direction="column" py={2} spacing={2}>
160160
<IconButton
161+
id="themeToggleButton"
162+
aria-label="Theme Toggle Button"
161163
onClick={toggleTheme}
162164
sx={{
163165
width: "fit-content",
@@ -175,18 +177,27 @@ function App() {
175177
<Typography
176178
noWrap
177179
align="center"
178-
variant="h2"
179-
sx={{ typography: { md: "h2", sm: "h3", xs: "h3" } }}
180+
variant="h1"
181+
fontSize={{ md: 64, sm: 56, xs: 48 }}
182+
fontWeight={700}
180183
>
181-
<b>Bingus</b>
184+
Bingus
182185
</Typography>
183-
<Typography align="center" variant="subtitle2" color="textSecondary">
186+
<Typography
187+
align="center"
188+
variant="subtitle1"
189+
fontSize={14}
190+
fontWeight={500}
191+
color="textSecondary"
192+
>
184193
Information may not be up-to-date. If you need further help, join
185194
the <Link href="https://discord.gg/SlimeVR">SlimeVR Discord</Link>.
186195
</Typography>
187196

188197
<TextField
189198
fullWidth
199+
id="searchBar"
200+
aria-label="Search Bar"
190201
label="Ask a question..."
191202
autoFocus
192203
value={input}
@@ -199,7 +210,11 @@ function App() {
199210
endAdornment: loadingResults ? (
200211
<CircularProgress />
201212
) : (
202-
<IconButton onClick={search}>
213+
<IconButton
214+
id="searchButton"
215+
aria-label="Search Button"
216+
onClick={search}
217+
>
203218
<SearchIcon fontSize="inherit" />
204219
</IconButton>
205220
),

0 commit comments

Comments
 (0)