Skip to content

Commit

Permalink
Make buttons visible in dark theme for accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshire137 committed Feb 1, 2020
1 parent 5d4367c commit 9141870
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/AccountListItem/ButtonShownOnHover.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import styled from "styled-components";
import LinkButton from "../LinkButton";
import LinkButton, { Props } from "../LinkButton";

export default styled(LinkButton)`
export default styled(LinkButton)<Props>`
visibility: hidden;
color: ${props => props.theme.colors.gray[8]};
color: ${props => props.appTheme === "dark" ? props.theme.colors.gray[3] : props.theme.colors.gray[8]};
font-size: 12px;
`;
2 changes: 1 addition & 1 deletion src/components/LinkButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from "styled-components";
import { Button } from "@primer/components";

interface Props {
export interface Props {
appTheme: string;
}

Expand Down

0 comments on commit 9141870

Please sign in to comment.