Card Layout as Button

I am using a cardlayout for customizing my buttons.when i open the interface in tablet/phone mode, the button is not displayed as a link but working fine in Desktop mode.

sample code is as follows:

a!cardLayout(
contents: {
a!richTextDisplayField(
value: a!richTextItem(
text: "FRIENDS",
style:"EMPHASIS",
color:"ACCENT"
)
)
},
link:a!dynamicLink(),
style:""
)

 

Any idea on why it is happening so?

  Discussion posts and replies are publicly visible