Color broken in inner components inside shadow-dom
See original GitHub issuebadgeColor in ion-tab
does not work because ion-tab-button
lives inside the shadow-dom of ion-tabs
which prevents it from accessing the colors.css global styles
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Color broken in inner components inside shadow-dom #14840
This is fundamentally a problem with shadow-dom, so we recommend to avoid using native shadow-dom for user's components that use ionic, ...
Read more >CSS is not fully applying on a shadow DOM using <slot>
1 Answer 1 ; Default value for CCS property color is inherit. ; Default style for CSS property background-color is transparent (won't inherit...
Read more >Shadow DOM v1 - Self-Contained Web Components
Shadow DOM is local to the component and defines its internal structure, scoped CSS, and encapsulates your implementation details.
Read more >Styling in the Shadow DOM With CSS Shadow Parts
Base styles and CSS resets Styles can be applied using HTML element selectors like <button> and <div> . These styles could break a...
Read more >Using shadow DOM - Web Components | MDN
Internal versus external styles. In the above example we apply style to the Shadow DOM using a <style> element, but it is perfectly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still broken beta.13 https://codepen.io/corysmc/pen/LgPPRb
Fixed in beta.15 https://codepen.io/corysmc/pen/RqwwbX?editors=1010