summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/PillButton.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'extension/react-app/src/components/PillButton.tsx')
-rw-r--r--extension/react-app/src/components/PillButton.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/extension/react-app/src/components/PillButton.tsx b/extension/react-app/src/components/PillButton.tsx
index 33451db5..55fe1ac6 100644
--- a/extension/react-app/src/components/PillButton.tsx
+++ b/extension/react-app/src/components/PillButton.tsx
@@ -1,6 +1,7 @@
import { useState } from "react";
import styled from "styled-components";
import { defaultBorderRadius } from ".";
+import { XMark } from "@styled-icons/heroicons-outline";
const Button = styled.button`
border: none;
@@ -42,13 +43,12 @@ const PillButton = (props: PillButtonProps) => {
<div
style={{ display: "grid", gridTemplateColumns: "1fr auto", gap: "4px" }}
>
- <span>{props.title}</span>
<span
style={{
cursor: "pointer",
color: "red",
- borderLeft: "1px solid black",
- paddingLeft: "4px",
+ borderRight: "1px solid black",
+ paddingRight: "4px",
}}
hidden={!isHovered}
onClick={() => {
@@ -56,8 +56,9 @@ const PillButton = (props: PillButtonProps) => {
props.onHover?.(false);
}}
>
- X
+ <XMark style={{ padding: "0px" }} size="1.2em" strokeWidth="2px" />
</span>
+ <span>{props.title}</span>
</div>
</Button>
);