-
I want to write something like this and want to change color of just a piece of text, how do I do that please? <p>
Publishing:
@if (cat.PublishedTime is null)
{
<FluentLabel Color="Color.Warning">Unpublished</FluentLabel>
}
else
{
<FluentLabel>@(cat.PublishedTime)</FluentLabel>
}
</p> Currently |
Beta Was this translation helpful? Give feedback.
Answered by
dvoituron
Sep 5, 2023
Replies: 1 comment 1 reply
-
You have to set a style like: Example: <p>
Publishing:
@if (cat.PublishedTime is null)
{
<FluentLabel Color="Color.Warning" Style="display: inline;">Unpublished</FluentLabel>
}
else
{
<FluentLabel Style="display: inline;">@(cat.PublishedTime)</FluentLabel>
}
</p> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
datvm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to set a style like:
display: inline;
.Example: