Skip to content
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

Add inline CSS options #187

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Add inline CSS options #187

merged 4 commits into from
Oct 18, 2024

Conversation

eligrey
Copy link
Member

@eligrey eligrey commented Oct 18, 2024

Related Issues

Security Implications

[none]

System Availability

[none]

Copy link

height bot commented Oct 18, 2024

This pull request has been linked to 1 task:

💡Tip: Add "Close T-39694" to the pull request title or description, to a commit message, or in a comment to mark this task as "Pending Deploy" when the pull request is merged.

Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
consent-manager-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2024 9:20pm

@eligrey eligrey requested review from a team and michaelfarrell76 October 18, 2024 21:03
Comment on lines +70 to +71
appContainer.appendChild(style);
attachToDoc();
Copy link
Member Author

Choose a reason for hiding this comment

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

had to move stuff around to keep this optimal. we want to activate the stylesheet after setup for the external one, and activate it before setup for the inline one

Copy link
Member Author

Choose a reason for hiding this comment

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

(hence the two orthogonal ifs with a between step instead of an if else)

Copy link
Member

Choose a reason for hiding this comment

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

just wanted to ask this, makes sense

Copy link
Member

@kate-kazantseva kate-kazantseva left a comment

Choose a reason for hiding this comment

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

3rd time's a charm ✨

@eligrey eligrey merged commit 1b0d9e6 into main Oct 18, 2024
11 checks passed
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.

3 participants