Skip to content

Commit

Permalink
Fix bold for ghost and move active of ghost state out of ghost-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
cibietici committed Nov 20, 2024
1 parent 608bf61 commit 87c3054
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/spor-react/src/input/CardSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ export const CardSelect = forwardRef<CardSelectProps, "button">(
>
<Flex gap={1.5} alignItems="center">
{icon}
<Box as="span" display={props["aria-label"] ? "none" : "inline"}>
<Box
as="span"
paddingRight={state.isOpen ? 0 : 1}
display={props["aria-label"] ? "none" : "inline"}
>
{label}
</Box>
{withChevron ? (
Expand Down
3 changes: 2 additions & 1 deletion packages/spor-react/src/theme/components/card-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ const config = helpers.defineMultiStyleConfig({
...ghostBackground("active", props),
},
_expanded: {
...ghostBackground("selected", props),
...ghostBackground("active", props),
fontWeight: "bold",
},
},
}),
Expand Down
1 change: 0 additions & 1 deletion packages/spor-react/src/theme/utils/ghost-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export function ghostText(state: GhostTextState, props: StyleFunctionProps) {
case "selected":
return {
color: mode("ghost.text.light", "ghost.text.dark")(props),
fontWeights: fontWeights.bold,
};
default:
return {
Expand Down

0 comments on commit 87c3054

Please sign in to comment.