Skip to content

Commit a1febaa

Browse files
committed
[UGN-353] Fix icon highlight style
1 parent b6fc0da commit a1febaa

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/steps/MatchColumnsStep/components/MatchIcon.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ type MatchIconProps = {
1919

2020
export const MatchIcon = (props: MatchIconProps) => {
2121
const style = useStyleConfig("MatchIcon", props)
22+
23+
console.log(props.isChecked)
2224
return (
2325
<chakra.div
2426
__css={style}

src/theme.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,19 @@ const StepsComponent: typeof StepsTheme = {
3636
const MatchIconTheme: any = {
3737
baseStyle: (props: any) => {
3838
return {
39+
display: "flex",
40+
alignItems: "center",
41+
justifyContent: "center",
3942
borderRadius: "50%",
4043
borderWidth: "2px",
4144
bg: "background",
4245
borderColor: "yellow.500",
4346
color: "background",
4447
transitionDuration: "ultra-fast",
48+
_highlighted: {
49+
bg: "green.500",
50+
borderColor: "green.500",
51+
},
4552
}
4653
},
4754
defaultProps: {

0 commit comments

Comments
 (0)