Skip to content

Commit 0c5b697

Browse files
Ahmed-HakeemthePunderWoman
authored andcommitted
docs: add a note about styles collision resolution (angular#59266)
PR Close angular#59266
1 parent 792954b commit 0c5b697

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adev/src/content/guide/components/styling.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ Shadow DOM in your application before enabling this option.
9797
This mode disables all style encapsulation for the component. Any styles associated with the
9898
component behave as global styles.
9999

100+
Note: In `Emulated` and `ShadowDom` modes, Angular doesn't 100% guarantee that your component's styles will always override styles coming from outside it.
101+
It is assumed that these styles have the same specificity as your component's styles in case of collision.
102+
100103
## Defining styles in templates
101104

102105
You can use the `<style>` element in a component's template to define additional styles. The

0 commit comments

Comments
 (0)