Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit fe2072d

Browse files
author
Andrey Okonetchnikov
committed
fix: Remove hover styles from Swatch
1 parent 2cbb3e5 commit fe2072d

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

src/components/Swatch.jsx

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
11
import React from "react";
22
import PropTypes from "prop-types";
3-
import styled from "@emotion/styled";
43
import copy from "clipboard-copy";
5-
import { css } from "theme-ui";
6-
7-
const SwatchBase = styled("div")`
8-
&:hover,
9-
&:active,
10-
&:focus {
11-
outline: 0;
12-
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.7);
13-
cursor: pointer;
14-
}
15-
`;
164

175
function Swatch(props) {
18-
console.log(props);
196
return (
20-
<SwatchBase
21-
{...props}
7+
<div
8+
aria-roledescription="Copy to clipboard"
229
onClick={() => copy(props.token)}
23-
css={css({
24-
"&:hover, &:active, &:focus": {
25-
bg: "muted"
26-
}
27-
// fontFamily: "body",
28-
// fontSize: "md"
29-
})}
10+
css={{
11+
cursor: "pointer"
12+
}}
13+
{...props}
3014
/>
3115
);
3216
}

0 commit comments

Comments
 (0)