Applying web-style from action

Hello,
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(
      'builtin_text',
      {
        markdown: true,
        typing: true,
        text: 'hello custom',
        web-style: {
          color: 'red',
          fontWeight: '300',
          fontSize: '18px'
        }
      },
      event
    )
    await bp.events.replyToEvent(event, 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