Closed Stef733 closed 5 months ago
Hi @Stef733, thanks for the request!
We've added support for this now. I haven't updated the docs yet but you can add tone="critical"
to the ui-title-bar
element inside a ui-modal
to get destructive buttons. Docs to follow shortly!
We're not adding support for it in the normal app title bar at this time.
Describe the bug
The API
To Reproduce
Attempt to add
tone="critical"
to a<ui-title-bar>
Steps to reproduce the behaviour:
<ui-title-bar>
with the following configurationExpected behaviour
The modal should allow destructive buttons for delete actions.
Note: This is especially relevant in the
<ui-modal />
componentContextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/shopify-app-remix
@2.3.0
@shopify/polaris
@12.1.1
Platform