Skip to content

Background Color of an Anchor #1804

Discussion options

You must be logged in to vote

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:

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 public/styles.less

#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 app…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gramian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants