CSS Styling Best Practice Unclear #10074
Labels
0 - new
New issues that need assignment.
design-tokens
Issues requiring design tokens.
docs
Issues relating to documentation updates only.
needs triage
Planning workflow - pending design/dev review.
Description
I am attempting to adjust the styling of a calciteListItem without altering the behavior of a calciteAction which is inside the list item. In particular, the I want to turn the hover color for the outside item off, but keep the inner item as the default value. I can set these using the "--calcite-color-foreground-2" property, and overriding it separately on each component. However, this is not specified in the style list for the components, and it creates a somewhat ugly css document with a hard coded reference to a value.
My question is: What is the correct approach to overriding styling in a case like this, and are there best practices documented about how to override styling like this - it seemed as though this type of styling was not being encouraged by the documentation.
Which Component
CalciteListItem, CalciteAction
Resources
No response
The text was updated successfully, but these errors were encountered: