Skip to content

DataViews: Style destructive secondary actions #66810

@doekenorg

Description

@doekenorg

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

Metadata

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