Solved

App Bridge - Icons in Buttons on TitleBar

DiscountNinja
Shopify Partner
104 0 65

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
Accepted Solution (1)

iain-campbell
Shopify Staff (Retired)
54 9 23

This is an accepted solution.

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

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 3 (3)

iain-campbell
Shopify Staff (Retired)
54 9 23

This is an accepted solution.

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

To learn more visit the Shopify Help Center or the Community Blog.

DiscountNinja
Shopify Partner
104 0 65

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
iain-campbell
Shopify Staff (Retired)
54 9 23

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.

To learn more visit the Shopify Help Center or the Community Blog.