feat: SupplementaryInfo supports inherit colour#702
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) ✅ code/snyk check is complete. No issues have been found. (View Details) |
3ba8fc4 to
4abeac5
Compare
4abeac5 to
9d8d36b
Compare
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesFootnotes
|
This PR
colourprop toSupplementaryInfothat supports all the same colours asSupplementaryInfo.Item. This prop allows the colour of all items to be set, while still permitting individual items to be uniquely coloured via their owncolourprop.inheritcolour value that causes the parent's colour to be inherited. This is useful when the supplementary info is being displayed in a parent that wants to control the default colour of items.inheritthe new default for both theSupplementaryInfoandSupplementaryInfo.Itemcomponents.