App Bridge - Icons in Buttons on TitleBar

Solved
Shopify Partner
51 0 12

Buttons seem to support an "icon" property.

 

icon button.png

 

The feature is however undocumented.

I couldn't find documentation:

- here https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/titlebar

- or here https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/button

 

How do we use this feature?

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016
0 Likes

Success.

Shopify Staff
Shopify Staff
21 3 6

Hi Bart,

 

The icon property on Button isn’t supported. Currently, it exists to cover a specific legacy compatibility case on mobile.

 

Could you share a bit about your use case for an icon feature?

 

Iain

0 Likes
Highlighted
Shopify Partner
51 0 12

I was thinking of adding an icon for a Save and Delete button.

We use font-awesome icons in our menus to visually support the label of the button.

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016
0 Likes
Shopify Staff
Shopify Staff
21 3 6

Got it, thanks for explaining.

 

In the meantime, the Contextual Save Bar pattern might also do what you need? It’s available as an App Bridge action.

0 Likes