Skip to content

Commit

Permalink
fix(RequirementButton): consistent styling with chain & visibility in…
Browse files Browse the repository at this point in the history
…dicators
  • Loading branch information
BrickheadJohnny committed Oct 4, 2024
1 parent 473da3e commit 7958830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Requirement = ({
</ImageWrapper>
</RequirementImageCircle>
</Box>
<VStack alignItems={"flex-start"} alignSelf="center" spacing={0.5}>
<VStack alignItems={"flex-start"} alignSelf="center" spacing={1}>
<ChildrenWrapper display="inline-block">
{requirement?.isNegated && <Tag mr="2">DON'T</Tag>}
{requirement?.type === "LINK_VISIT"
Expand All @@ -80,7 +80,7 @@ const Requirement = ({
</ChildrenWrapper>

{shouldShowFooter && (
<div className="flex flex-wrap items-center gap-1.5">
<div className="flex flex-wrap items-center gap-2">
{!setValue && (
<Visibility
visibilityRoleId={requirement?.visibilityRoleId || null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const RequirementButton = forwardRef(
[anchorVariants({ variant: "muted", className: "px-0" })]:
variant === "unstyled",
},
"h-5 rounded-md",
className
)}
{...buttonProps}
Expand Down Expand Up @@ -52,6 +53,7 @@ const RequirementLink = ({
variant === "link" ? "unstyled" : (variant as ButtonProps["variant"]),
size: "xs",
className: [
"h-5 rounded-md",
{
[anchorVariants({ variant: "muted", className: "px-0" })]:
variant === "link",
Expand Down

0 comments on commit 7958830

Please sign in to comment.