Applying web-style from action

I was trying to modify the color of my text sent from action, however the ‘web-style’ is not being applied. If anyone can point out what I am doing wrong, it will be of great help.

const payload = await bp.cms.renderElement(
        markdown: true,
        typing: true,
        text: 'hello custom',
        web-style: {
          color: 'red',
          fontWeight: '300',
          fontSize: '18px'
    await, payload)

The text is sent as it is , without the style being applied.
I also tried wrapping ‘web-style’ in a single quote as well.

1 Like