Background Color of an Anchor #1804
-
Dear All, I would like to use an Anchor block with a success/warning/error background-color, like the Alert block. As this seems not possible directly (?), I am trying to emulate this by custom styling of an Can I access the success/warning/error colors somehow in a Thank you for your input |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @gramian Due to css specificity, and how we apply styles, this get over written by the antd lowdefy: local
pages:
- id: card
type: Box
blocks:
- id: error-link
type: Anchor
properties:
url: aaa
- id: warning-link
type: Anchor
properties:
url: bbb
- id: link
type: Anchor
properties:
url: ccc And #warning-link {
color: @warning-color;
}
#error-link {
color: @error-color;
} It makes use of id css selectors to modify the specific block-id, since there is nomore resetriction on duplicate block ids, this could be applied as a work around. |
Beta Was this translation helpful? Give feedback.
Hi @gramian
Due to css specificity, and how we apply styles, this get over written by the antd
a
tag base style.However, the following works:
And
public/styles.less
It makes use of id css selectors to modify the specific block-id, since there is nomore resetriction on duplicate block ids, this could be app…