Skip to content

Commit

Permalink
Fix accessibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sophschneider committed Mar 25, 2024
1 parent 634a6f3 commit e6a9d12
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ export function Default() {
<TopBar.Menu
activatorContent={
<ThemeProvider theme="dark-experimental">
<Icon source={SidekickIcon} />
<span>
<Icon source={SidekickIcon} />
<Text as="span" visuallyHidden>
Light theme popover button
</Text>
</span>
</ThemeProvider>
}
open={isSidekickMenuOpen}
Expand All @@ -55,7 +60,14 @@ export function Default() {
const notificationsMenu = (
<ThemeProvider theme="dark-experimental">
<TopBar.Menu
activatorContent={<Icon source={NotificationIcon} />}
activatorContent={
<span>
<Icon source={NotificationIcon} />
<Text as="span" visuallyHidden>
Dark theme popover button
</Text>
</span>
}
open={isNotificationsMenuOpen}
onOpen={toggleIsNotificationsMenuOpen}
onClose={toggleIsNotificationsMenuOpen}
Expand Down

0 comments on commit e6a9d12

Please sign in to comment.