This demo uses an Accordion component to showcase scoping styles with HTML and CSS classes.
It demonstrates the behavior with the three use cases:
The demo uses the two following CSS properties in the Accordion header to highlight the behavior:
background-color
and color
properties are encapsulated inside the the Accordion component.
background-color
and color
are overridden by the page styles.