UI-Button: Add Background, text and icon color option #1087
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add properties to allow the user to set the color to be used for:
If empty string in any of these properties, the default theme color will be used.
The text color allows the use of Helper Class, for example having the field defined as
red text-decoration-underline text-h3 font-weight-black
results in:Alternatively, for the text part we could allow html injection like it was done to
ui-text
.Most if not all of these are possible to be done via
class
using CSS, this is a more "direct"/"user friendly" way of doing it.Related Issue(s)
Close #375
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
area:migration
label