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
{{ message }}
Repository navigation
CSS in the custom web component overrides other css #13
The styles added in <style> tags are taking priority over all other css, this includes css that is included via a CSS file and imported in the <head>, as well as any ionic CSS that was previously imported after the (now web) component in Sass and therefore took precedence.
Because the <style> tag is injected at the end of the <head>, all of the card styles are taking precedence over the ones in the e2e.shared.css file. We could change where our style tags are injected in the head, or recommend the user moves any css imports to a specific place like the <body>.
Item styling is not applying inside of a card
Previously item was imported after the card SCSS file so it would take precedence when using an item inside of a card, but now the card styling is overriding it.
There isn’t an easy fix for this - we could add more css to the styles that are now being overridden but then it wouldn’t be very decoupled (adding card css into item for example), and it might be fixed when the other component is converted to a web component itself. I tried removing the styles that were overriding the item styles but it causes issues in other places, specifically the paragraph colors when not in an item.
See this image for an example of what happens when the card color styles are removed:
Activity
adamdbradley commentedon May 24, 2017
styles are not prepend above existing styles
chore(testing): Extends Coverage #2 (#6468)