Round badges completely, tweak border #critfeedback
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { transparentize } from "polished";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
const Badge = styled.span<{ yellow?: boolean; primary?: boolean }>`
|
const Badge = styled.span<{ yellow?: boolean; primary?: boolean }>`
|
||||||
@@ -9,8 +10,10 @@ const Badge = styled.span<{ yellow?: boolean; primary?: boolean }>`
|
|||||||
primary ? theme.white : yellow ? theme.almostBlack : theme.textTertiary};
|
primary ? theme.white : yellow ? theme.almostBlack : theme.textTertiary};
|
||||||
border: 1px solid
|
border: 1px solid
|
||||||
${({ primary, yellow, theme }) =>
|
${({ primary, yellow, theme }) =>
|
||||||
primary || yellow ? "transparent" : theme.textTertiary};
|
primary || yellow
|
||||||
border-radius: 8px;
|
? "transparent"
|
||||||
|
: transparentize(0.4, theme.textTertiary)};
|
||||||
|
border-radius: 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user