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

[Code blocks][Firefox-specific] Fix dark mode colors on small screens #145

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

seshrs
Copy link
Member

@seshrs seshrs commented Jan 11, 2022

I noticed a bug in Firefox when the screen / browser window is "small" and Primer Spec is using a dark mode theme. The issue was that the dark-colored "enhanced code block" wasn't explicitly marked as "full-width". It looks like Chrome uses a more convenient default, whereas Firefox does not.

This PR fixes the colors by making the code block container table as full-width.

BeforeAfter
Screen Shot 2022-01-10 at 7 53 44 PM Screen Shot 2022-01-10 at 7 54 06 PM

@seshrs seshrs added bug Something isn't working semver/patch Pull Request proposes "patch" change labels Jan 11, 2022
@seshrs seshrs added this to the WN 2022 milestone Jan 11, 2022
@github-actions
Copy link
Contributor

The spec from this PR is available at https://preview.sesh.rs/previews/eecs485staff/primer-spec/145/.

(Available until Thu Feb 10 2022.)

@seshrs seshrs merged commit 535d572 into develop Jan 11, 2022
@seshrs seshrs deleted the code-block-fixes branch January 11, 2022 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semver/patch Pull Request proposes "patch" change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant