feat: add CSS variables for status border and text #54492
Merged
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.
Summary
The variables like
--color-errornow are based on our secondarytheming, thus they are less "aggressive" colors. But there are two
usecases for primary based status colors:
To simplify app changes due to the secondary color theme change this
introduces 3 new variables:
--color-text-errorthis shall be used if text should have errorstatus theming and is displayed on normal background (while
--color-error-textis only for text shown on--color-errorsimilaras primary and secondary colors)
--color-border-errorand--color-border-successthose should beused for element borders if there is one of those statuses to be
reported (we use this for validation errors as well as for indicating a
value was saved)
So basically this follows the previous naming schema:
--color-text-...for text on normal backgrounds--color-xyz-textfor text on--color-xyz--color-border-...for special bordersChecklist