mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The example viewer has some `::ng-deep` styles that are used to reset global styles that leak into the live examples. It works by applying a style like `.docs-example-viewer-preview * {all: revert;}`.
The problem with this is that depending on when the first example is rendered, the styles will be lower or higher in the cascade, thus making the reset unreliable. Furthermore, it can affect structural styles from the CDK which intentionally have low specificity.
These changes move the resets into the global stylesheet to make them more predictable.
|
||
|---|---|---|
| .. | ||
| algolia-icon | ||
| breadcrumb | ||
| cookie-popup | ||
| copy-source-code-button | ||
| icon | ||
| navigation-list | ||
| search-dialog | ||
| search-history | ||
| select | ||
| slide-toggle | ||
| tab-group | ||
| table-of-contents | ||
| text-field | ||
| top-level-banner | ||
| viewers | ||
| BUILD.bazel | ||
| index.ts | ||