Skip to content

Commit

Permalink
#57 - wrap action buttons in toolbar role and specify control of valu…
Browse files Browse the repository at this point in the history
…e output
  • Loading branch information
jnahumphreys authored Jan 25, 2024
1 parent 601d6df commit eaffac2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/counter-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { memo } from "react";
import styled from "@emotion/styled";
import { useCounterState, useCounterActions } from "./counter-provider";
import { Button } from "./button";
import { COUNTER_VALUE_CONTAINER_ID } from "./counter-output";

function DecrementCount() {
const count = useCounterState();
Expand Down Expand Up @@ -58,7 +59,11 @@ const Container = styled.div({

function CounterActions() {
return (
<Container>
<Container
aria-label="Counter actions"
role="toolbar"
aria-controls={COUNTER_VALUE_CONTAINER_ID}
>
<DecrementCount />
<IncrementCount />
<ResetCount />
Expand Down

0 comments on commit eaffac2

Please sign in to comment.