Action "Set style" not really working...
Hello,
Under pega version 7.2.1 I would like to use the built-in "Set style" action to add a class name to an element after it is clicked.
I did set up an "action set" to listen on click events and used the set style as an action.
However, this simply does not work (other actions as for example Run Script work). I have tried these combinations:
Hello,
Under pega version 7.2.1 I would like to use the built-in "Set style" action to add a class name to an element after it is clicked.
I did set up an "action set" to listen on click events and used the set style as an action.
However, this simply does not work (other actions as for example Run Script work). I have tried these combinations:
Action | Style setting type | Outcome |
Click | Style Class | not working |
Click | Inline css | not working |
Hover | Style Class | not working |
Hover | Inline css | works |
Focus | Style Class | not working |
Focus | Inline css | works |
Also pretty strange that the additional style seems to be discarded if the focus on the element is lost, however, if the element was once hovered and later another element gets the hover, the previous element will still have the styles added with inline. I think this behaviour is pretty inconsistent.
Are you experiencing this issue too?
***Edited by Moderator: Marissa to update categories***