You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call `recommend_checks` with your code — it analyzes the content type and returns a prioritized list.
@@ -117,3 +145,5 @@ Call `recommend_checks` with your code — it analyzes the content type and retu
117
145
16.**Don't set `innerHTML` on web components** — use slot content or the component's properties/methods
118
146
17.**Don't transition standard CSS properties on component hosts** — transitions on `color`, `background`, etc. only affect the host box, not shadow internals. Transition CSS custom properties instead.
119
147
18.**Don't hardcode colors alongside design tokens** — if background uses a token but text color is hardcoded, theme changes will break contrast
148
+
19.**Style slotted content in light DOM CSS, not `::slotted()`** — `::slotted()` only works inside shadow root stylesheets. Target slotted elements directly in your page CSS before they're slotted in.
149
+
20.**Slotted content inherits font styles but not layout** — `color`, `font-size`, `line-height` inherit from the shadow DOM, but `margin`, `padding`, `display` must be set in light DOM CSS
0 commit comments