Colors for Blox ActionSet

Comments

2 comments

  • Avatar
    Nathan Giusti

    Hey Hendrik

    You can attach a style section to just about any component I believe. Here's a button action with a style that sets the background color to red

     

    "actions": [
    {
      "style": {
        "background-color": "red"
      },
      "type": "Action.OpenUrl",
      "title": "Open In Web",
    }
    0
    Comment actions Permalink
  • Avatar
    Ido Darnell

    Thanks Nathan Giusti

    Hendrik Hanneman

    To add to this, to make the font color other than the default black, you can add "color": "white"

    "actions": [
    {
      "style": {
        "background-color": "red",
        "color": "white"
      },
      "type": "Action.OpenUrl",
      "title": "Open In Web",
    }
    0
    Comment actions Permalink

Please sign in to leave a comment.