Skip to content

[Bug]: [blocklist] can't remove [type='button'] selector #1339

@chenqiangkobe

Description

@chenqiangkobe

Describe the bug

i I want to remove [type='button'] selector.

preflight.css:
button,
[type='button'],
[type='reset'],
[type='submit'] {
-webkit-appearance: button; /* 1 /
background-color: transparent; /
2 /
background-image: none; /
2 */
}
my postcss.config.js :
blocklist: ['[type='button']', /^[type='button']/]

finally, [type='button'] exists in the index.css file. The blocklist configuration doesn't work, my blocklist expression is wrong?

To Reproduce

steps

Expected Behavior

expected behavior

Environment

environment

Add any other context about the problem here

context

Code of Conduct

  • I agree to follow this project's Code of Conduct

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