Skip to content

DataViews: Style destructive secondary actions #66810

Open
@doekenorg

Description

What problem does this address?

Actions can be made "destructive" by setting the isDestructive attribute to true. When viewing this as a primary action, this is apparent by the red color. These styles are not applied to a secondary destructive action.

What is your proposed solution?

Apply destructive styling on secondary actions, and provide a is-destructive class there as well, for any required customisation.

Image

CC: @WordPress/gutenberg-components

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions