Skip to content

Tab size inside a card according to the card size #8187

Open
@SuichiM

Description

@SuichiM
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

When the size prop is set to 'small' for a card, and that card uses tabs, the tabs size should be set to small as well instead of the fixes 'large' size set currently

What does the proposed API look like?

no changes in the api, just consider the card size to set the tabs size as well

add the size prop in:
https://github.com/vueComponent/ant-design-vue/blob/main/components/card/Card.tsx#L103

hoverable,
size,
activeTabKey,

define the tab size according to the card size
https://github.com/vueComponent/ant-design-vue/blob/main/components/card/Card.tsx#L133

size: size === 'small' ? 'small' : 'large' as SizeType,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions