Skip to content

Why isn't my text appearing inside the rectangle even though they have entirely different color? #6879

Answered by tronical
timelessnesses asked this question in Q&A
Discussion options

You must be logged in to vote

To clarify further:

  • The provided example uses color: background-color; for the Text element.
  • The component declares in property <color> background-color;
  • However, the initialisation uses a different property: background: black;. Therefore background-color remains initialised to transparent.
  • Change background: black; to background-color: black;` and the text isn't shown transparent anymore.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tronical
Comment options

Answer selected by tronical
@hunger
Comment options

hunger Nov 25, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants