Awesome Reviewers

When styling component states (e.g., selected/active), keep descendant visuals consistent by using inheritance and tightly scoped rules—and manage the cascade without descendant-state selectors or !important.

Do

Example

/* Selected state should propagate to the child label */
.ai-customization-management-editor
  .sidebar-migration-button.selected {
  background-color: var(--vscode-list-activeSelectionBackground);
  color: var(--vscode-list-activeSelectionForeground);
}

.ai-customization-management-editor
  .sidebar-migration-button.selected
  .sidebar-migration-count {
  color: inherit;
}

/* Instead of :has(), use a stable marker class and scope specificity */
.ai-customization-management-editor
  .embedded-detail-fact-value--has-actions {
  /* stateful styles here */
}

Rule of thumb: if the visual state depends on “what descendants exist,” prefer a marker class on the owning node; if the visual state depends on “being selected,” prefer inheritance plus a targeted selected/active descendant selector.