Polaris-react: No built-in way to dismiss callout cards

Created on 8 Jun 2018  路  3Comments  路  Source: Shopify/polaris-react

The "best practices" documentation for the CalloutCard component state that cards "should be dismissable so merchants can get rid of cards about features they鈥檙e not interested in". However, unlike other components (e.g. Banner), there doesn't seem to be any built-in way to dismiss the callout card. What's the recommended way of doing this?

馃悰Bug

Most helpful comment

Marking this as a bug rather than a feature request as it鈥檚 something the component should be capable of.

All 3 comments

This would be really nice, I would also add that a more generic popover at the top-right with various actions would be even better (like Shopify Admin home page has)

example
screen shot 2018-06-19 at 2 00 08 am

@andrewpye Thanks for raising this. I'll add this to our internal project board.

Marking this as a bug rather than a feature request as it鈥檚 something the component should be capable of.

Was this page helpful?
0 / 5 - 0 ratings