Skip to content

Use CSS properties everywhere #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: davidfischer/fixedheader-ad-style
Choose a base branch
from

Conversation

davidfischer
Copy link
Contributor

This is branched and based off #218.

  • Use styles in our CSS
  • Document styles in the docs

Just a note that since the ad client styles are injected into the head, they will take precedence over something a publisher puts in their CSS file (eg. if they put something like [data-ea-publisher] { --ea-color-domain: black; } in their main.css). They can use !important or they can inline the style (<div style="--ea-color-domain: black" data-ea-publisher="...">). Perhaps we should change this?

- Use styles in our CSS
- Document styles in the docs
@davidfischer davidfischer requested review from a team and ericholscher February 21, 2025 23:49
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that since the ad client styles are injected into the head, they will take precedence over something a publisher puts in their CSS file (eg. if they put something like [data-ea-publisher] { --ea-color-domain: black; } in their main.css). They can use !important or they can inline the style (

). Perhaps we should change this?

Does that mean this will break publishers styling if we ship it? If so, we should try to find a way to make it backwards compatible in some fashion.

@davidfischer
Copy link
Contributor Author

Does that mean this will break publishers styling if we ship it?

No. Any existing styling publishers have should work. What I'm saying is that overriding is a little tricky but not trickier than it was before.

@davidfischer davidfischer requested a review from agjohnson March 12, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants