Skip to content

Commit

Permalink
fix(comp:card): add css class to footer button (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Aug 21, 2023
1 parent 830be33 commit 54f2c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/card/src/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const renderFooter = (props: CardProps, slots: Slots, prefixCls: string) => {
} else {
const { text, ...rest } = item
itemChild = (
<IxButton waveless={true} {...rest}>
<IxButton class={`${prefixCls}-footer-button`} waveless={true} {...rest}>
{text}
</IxButton>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/card/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
> li {
flex: 1;

> .@{idux-prefix}-button {
> .@{card-prefix}-footer-button {
border: none;
width: 100%;
}
Expand Down

0 comments on commit 54f2c7f

Please sign in to comment.