fix: cta styling removing color context provider #2005
Closed
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.


Problem
pfe-ctahadcolor-paletteattribute and the@colorContextProvider()decorator applied to it inadvertently causing the variants to display colors incorrectly when inheriting from their parent color context and applying their own overrides.Related issues
Solution
Remove the
@colorContextProvider()decorator and revert back tocolorto a standard property. Also removing the@deprecateddecorator as it is in this case not a part of the color context controller. Update the demo HTML and component scss to reflect this reversion.Browser requirements
Your component should work in all of the following environments:
Ready-for-merge Checklist
Merging
Please squash when merging and ensure your commit message uses conventional commit formatting.
Be sure to share your updates with the patternfly-elements-contribute@redhat.com mailing list!