Hi,

I would like to set color for button's badge,

Please show me how to do that

Thank you

alt text

asked 01 Oct, 07:14

hai%20le's gravatar image

hai le
12
accept rate: 0%


To do this you add a Badge CSS class that defines your color e.g.

.badge-green:after {
   background: green !important;
}

alt text

However there is a bug in v3.0.1 that causes a JS error on page render which we will be fixing in the next hotfix release. As a workaround you can also define the colour using the following CSS (with a STATIC ID set on your region e.g. MY_STATIC_ID)

#MY_STATIC_ID .fx-badge[data-fx-badge]:after {
   background: #268b26; /* green */
}
link

answered 02 Oct, 07:17

FOEX-SUPPORT's gravatar image

FOEX-SUPPORT
4.6k15
accept rate: 32%

edited 03 Oct, 07:30

This JS error is now fixed in HFXP-3328 for v3.0.1 which you can now download from the support portal.

(03 Oct, 07:34) FOEX-SUPPORT FOEX-SUPPORT's gravatar image

This JS error is now fixed in HFXP-3328 for v3.0.1 which you can now download from the support portal.

(03 Oct, 07:35) FOEX-SUPPORT FOEX-SUPPORT's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 01 Oct, 07:14

Seen: 70 times

Last updated: 03 Oct, 07:35

FOEX Links

Related questions