Skip to content

Commit

Permalink
💄 style: Fix Collapse style
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jun 21, 2024
1 parent 0fc726d commit b24a38a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Collapse/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,24 @@ export const useStyles = createStyles(
);

const defaultStyle = cx(
css`
.${prefixCls}-collapse-item:not(:last-child) {
.${prefixCls}-collapse-header {
border-block-end: 1px solid ${token.colorBorderSecondary};
}
}
`,
isSplit
? css`
background: transparent;
.${prefixCls}-collapse-item {
overflow: hidden;
background: ${token.colorFillQuaternary};
border: 1px solid ${token.colorBorderSecondary};
border: 1px solid ${token.colorBorderSecondary} !important;
border-radius: ${token.borderRadiusLG}px !important;
}
`
: css`
background: ${token.colorFillQuaternary};
border-radius: ${token.borderRadiusLG}px;
.${prefixCls}-collapse-item:not(:last-child) {
.${prefixCls}-collapse-header {
border-block-end: 1px solid ${token.colorBorderSecondary};
}
}
`,
);

Expand Down

0 comments on commit b24a38a

Please sign in to comment.