Skip to content

Commit

Permalink
fix(Tag): border-radius on responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Apr 24, 2023
1 parent dbd7e6c commit dddf4a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/orbit-components/src/Tag/index.tsx
Expand Up @@ -10,6 +10,7 @@ import { SIZES, STATES, TYPES } from "./consts";
import KEY_CODE_MAP from "../common/keyMaps";
import resolveColor from "./helpers/resolveColor";
import resolveCircleColor from "./helpers/resolveCircleColor";
import mq from "../utils/mediaQuery";
import type { Props, Type } from "./types";

const getFontSize = ({ theme, size }: { theme: Theme; size: Props["size"] }): string | null => {
Expand Down Expand Up @@ -115,12 +116,16 @@ export const StyledTag = styled.div<{
align-items: center;
font-size: ${getFontSize};
font-weight: ${theme.orbit.fontWeightMedium};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadiusLarge};
padding: ${theme.orbit.spaceXSmall};
transition: color ${theme.orbit.durationFast} ease-in-out,
box-shadow ${theme.orbit.durationFast} ease-in-out,
background ${theme.orbit.durationFast} ease-in-out;
${mq.tablet(css`
border-radius: ${theme.orbit.borderRadiusNormal};
`)}
${actionable &&
css`
cursor: pointer;
Expand Down

0 comments on commit dddf4a4

Please sign in to comment.