Skip to content

Commit

Permalink
Merge pull request #7178 from Sage/FE-7058
Browse files Browse the repository at this point in the history
fix(flex-tile-divider): add aria-hidden attribute to hr element
  • Loading branch information
tomdavies73 authored Jan 24, 2025
2 parents 58041d0 + e9d1639 commit a49c1c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const FlexTileDivider = (): JSX.Element => {
width="100vw"
m="0px 0px -1px 0px"
>
<Hr m={0} />
<Hr aria-hidden="true" m={0} />
</Box>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import FlexTileDivider from "./flex-tile-divider.component";

test("hr element has aria-hidden attribute set to true", () => {
render(<FlexTileDivider />);
expect(screen.getByTestId("hr")).toHaveAttribute("aria-hidden", "true");
});

0 comments on commit a49c1c0

Please sign in to comment.