Skip to content

Commit

Permalink
a11y addon: Reverse help and description content in Accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeshwan Khoodeeram committed Jul 2, 2021
1 parent 051a42e commit cad1bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/a11y/src/components/Report/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Wrapper = styled.div({
padding: 12,
marginBottom: 10,
});
const Help = styled.p({
const Description = styled.p({
margin: '0 0 12px',
});
const Link = styled.a({
Expand All @@ -24,7 +24,7 @@ interface InfoProps {
export const Info: FunctionComponent<InfoProps> = ({ item }) => {
return (
<Wrapper>
<Help>{item.help}</Help>
<Description>{item.description}</Description>
<Link href={item.helpUrl} target="_blank">
More info...
</Link>
Expand Down
2 changes: 1 addition & 1 deletion addons/a11y/src/components/Report/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const Item = (props: ItemProps) => {
transform: `rotate(${open ? 0 : -90}deg)`,
}}
/>
{item.description}
{item.help}
</HeaderBar>
<HighlightToggleElement>
<HighlightToggle toggleId={highlightToggleId} elementsToHighlight={item.nodes} />
Expand Down

0 comments on commit cad1bf7

Please sign in to comment.