Skip to content

Commit

Permalink
Merge branch 'main' into fix-colorpicker-focus-blip
Browse files Browse the repository at this point in the history
  • Loading branch information
staxly[bot] authored Mar 22, 2024
2 parents 39d18eb + e28d229 commit 89fed4b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/app/components/DotMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ export const DotMenuIcon = styled(EllipsisV)`
`;

// tslint:disable-next-line:variable-name
export const DotMenuToggle = styled(React.forwardRef<HTMLDivElement>((props, ref) =>
<PlainButton {...props} ref={ref}>
<div tabIndex={-1}>
<DotMenuIcon />
</div>
</PlainButton>
))`
export const DotMenuToggle = styled(
React.forwardRef<HTMLDivElement, {isOpen: boolean}>(
({isOpen, ...props}, ref) => {

return (
<PlainButton aria-label='Actions' aria-expanded={isOpen} {...props} ref={ref}>
<div tabIndex={-1}>
<DotMenuIcon />
</div>
</PlainButton>
);
}
)
)`
border: none;
display: block;
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/__snapshots__/DotMenu.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ exports[`Dropdown matches snapshot 1`] = `
className="c3 c4"
>
<button
aria-label="Actions"
className="c5 c6 c7 c8"
tabIndex={0}
>
Expand Down Expand Up @@ -247,6 +248,7 @@ exports[`Dropdown matches snapshot 1`] = `
</ol>
</div>
<button
aria-label="Actions"
className="c5 c6 c7 c8"
tabIndex={0}
>
Expand Down Expand Up @@ -473,6 +475,7 @@ exports[`Dropdown matches snapshot on right align 1`] = `
className="c3 c4"
>
<button
aria-label="Actions"
className="c5 c6 c7 c8"
tabIndex={0}
>
Expand Down Expand Up @@ -518,6 +521,7 @@ exports[`Dropdown matches snapshot on right align 1`] = `
</ol>
</div>
<button
aria-label="Actions"
className="c5 c6 c7 c8"
tabIndex={0}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ exports[`ContextMenu match snapshot when closed 1`] = `
className="c1 c2 c3"
>
<button
aria-expanded={false}
aria-label="Edit this highlight"
className="c4 c5 c6 c7 c8"
onClick={[Function]}
Expand Down Expand Up @@ -575,6 +576,7 @@ exports[`ContextMenu match snapshot when open 1`] = `
className="c1 c2 c3"
>
<button
aria-expanded={true}
aria-label="Edit this highlight"
className="c4 c5 c6 c7 c8"
onClick={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ exports[`DisplayNote matches snapshot 1`] = `
className="c1 c2 c3"
>
<button
aria-expanded={false}
aria-label="Actions"
className="c4 c5 c6 c7"
onClick={[Function]}
>
Expand Down Expand Up @@ -330,6 +332,8 @@ exports[`DisplayNote matches snapshot when focused 1`] = `
className="c1 c2 c3"
>
<button
aria-expanded={false}
aria-label="Actions"
className="c4 c5 c6 c7"
onClick={[Function]}
>
Expand Down Expand Up @@ -585,6 +589,8 @@ exports[`DisplayNote matches snapshot when focused with opened dropdown 1`] = `
className="c1 c2 c3"
>
<button
aria-expanded={true}
aria-label="Actions"
className="c4 c5 c6 c7"
onClick={[Function]}
>
Expand Down
4 changes: 4 additions & 0 deletions src/app/developer/components/__snapshots__/Home.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ Array [
className="c12 c13 c14"
>
<button
aria-expanded={false}
aria-label="Actions"
className="c15 c16 c17 c18"
onClick={[Function]}
>
Expand Down Expand Up @@ -667,6 +669,8 @@ Array [
className="c12 c13 c14"
>
<button
aria-expanded={false}
aria-label="Actions"
className="c15 c16 c17 c18"
onClick={[Function]}
>
Expand Down

0 comments on commit 89fed4b

Please sign in to comment.