Skip to content

Commit

Permalink
Small fixes, add more accessiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
lourou committed Oct 25, 2024
1 parent 391f117 commit ae5cf8d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BottomSheetContentContainer } from "@design-system/BottomSheet/BottomSheetContentContainer";
import { BottomSheetHeader } from "@design-system/BottomSheet/BottomSheetHeader";
import { BottomSheetModal } from "@design-system/BottomSheet/BottomSheetModal";
import { HStack } from "@design-system/HStack";
Expand All @@ -14,7 +15,6 @@ import {
resetMessageReactionsDrawer,
useMessageReactionsRolledUpReactions,
} from "./MessageReactionsDrawer.service";
import { BottomSheetContentContainer } from "../../../../../design-system/BottomSheet/BottomSheetContentContainer";

export const MessageReactionsDrawer = memo(function MessageReactionsDrawer() {
const { theme } = useAppTheme();
Expand Down Expand Up @@ -43,7 +43,6 @@ export const MessageReactionsDrawer = memo(function MessageReactionsDrawer() {
style={{
paddingLeft: theme.spacing.lg,
flexDirection: "row",
gap: 20,
}}
>
<Text>All {rolledUpReactions.totalReactions}</Text>
Expand All @@ -60,6 +59,9 @@ export const MessageReactionsDrawer = memo(function MessageReactionsDrawer() {
: theme.colors.background.raised,
}}
underlayColor={theme.colors.border.subtle}
accessible
accessibilityRole="button"
accessibilityLabel={`${details.count} ${emoji} reactions`}
>
<HStack style={{ alignItems: "center" }}>
<Text>{emoji}</Text>
Expand Down

0 comments on commit ae5cf8d

Please sign in to comment.