Skip to content

Button type 'primary' color style is overired by transparent color #6803

@anhlhpl52119

Description

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

Version

4.0.0-rc.6

Environment

MacOS: Ventura 13.4,
Chrome: 115.0.5790.114 (arm64),
Vue: v3.3.4

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

Install Antdv following: https://next.antdv.com/docs/vue/getting-started
Create file.vue
import {Button} from 'ant-design-vue';
use button component as:

<Button type="primary">
   Primary Button
</Button>

What is expected?

Button display as normal primary button as example : https://antdv.com/components/button

What is actually happening?

Primary button style is display as 'transparent' color, not 'primary color' as default


I inspected the DOM and findout the style of '.ant-btn-primary' is overied by 'button, [type='button'], [type='reset'], [type='submit']'

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions