We have a couple of confluence macros that we recently also enabled in mobile view. These macros are really simple that just render a vm template with some regular link buttons. There is some CSS but no JS.
The action buttons styling is following AUI buttons class description here:
However, the above method didn’t work. I’ve tried different ways too but it won’t work. The only way that worked with me was to put my own CSS file and style the buttons similar to the AUI buttons style. But this is not a good fix at all, and I want to use the proper AUI resources to match between mobile and desktop. Any ideas or tips?
How are you constructing the mobile view? Do you reuse the product’s webResourceManager or pageBuilderService, or do you construct your own?
Are you able to provide a sample of the URLs that end up in the browser? Typically, the WRM will generate batch resource URLs that help illustrate which resources have been included and which have been excluded. As an example, on the dashboard page in Jira, you might see a URL like the following:
This URL is loading all web-resources referenced in the browser-metrics-plugin.contrib context, but omitting resources referenced in the superbatch, the atl.dashboard, and atl.general contexts.
What may be happening in your mobile view – depending on how you’re constructing and using the WRM – is that the WRM thinks the aui-buttons resource has already been loaded (e.g., it was referenced in the superbatch), so it is not being output in your page’s resource request.
@asalma
We fixed this issue using a condition. In mobile view, it seems that the css used is using different classes. I’m not sure if this is the ideal fix tbh but it works, and our buttons seem to match the other buttons used by confluence that we see in the mobile view.