Skip to content

Commit 01280d4

Browse files
authored
Merge pull request #1373 from kleros/fix(web)/Tag-component-accessibility
fix(web): tag-component-accessibility-issue-fix
2 parents 7153a84 + 62d2683 commit 01280d4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

web/src/components/Tag.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
import React from "react";
22
import { Tag as BaseTag } from "@kleros/ui-components-library";
3+
import styled from "styled-components";
34

45
interface ITag {
56
text: string;
67
active: boolean;
78
onClick: () => void;
89
}
10+
11+
const TagContainer = styled.button`
12+
padding: 0;
13+
border: none;
14+
background-color: transparent;
15+
`;
16+
917
const Tag: React.FC<ITag> = ({ text, active, onClick }) => {
1018
return (
11-
<div onClick={onClick}>
19+
<TagContainer onClick={onClick}>
1220
<BaseTag text={text} active={active} />
13-
</div>
21+
</TagContainer>
1422
);
1523
};
1624

0 commit comments

Comments
 (0)