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

Update universal CSS for legacy IE browsers (Fixes #7390) #7502

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

alexgibson
Copy link
Member

@alexgibson alexgibson commented Jul 31, 2019

Description

  • Updates universal stylesheet served to legacy IE browsers.
  • Tested in IE 6, 7 & 8.

Issue / Bugzilla link

#7390

Testing

  • Protocol pages should be more readable.
  • Pebbles pages should be more readable.
  • Sandstone pages should be more readable.

@alexgibson alexgibson added P2 Second level priority - Should have Review: S Code review time: 30 mins to 1 hour labels Jul 31, 2019
@alexgibson
Copy link
Member Author

Screenshots:

Homepage before & after:

homepage-ie

/firefox before & after

firefox-ie

/accounts before & after

accounts-ie

/channel before & after

channel-ie

Copy link
Contributor

@stephaniehobson stephaniehobson left a comment

Choose a reason for hiding this comment

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

R+ 🌐

@@ -56,7 +56,7 @@ <h1 class="c-accounts-hero-title">{{ _('There is a way to protect your privacy.
</div>

{% if has_signed_in_copy %}
<div class="c-accounts-hero-body c-accounts-hero-body-signed-in">
<div class="c-accounts-hero-body c-accounts-hero-body-signed-in is-js-dependent">
Copy link
Contributor

Choose a reason for hiding this comment

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

This only displays to signed in Firefox users so I'm not sure we need to hide it explicitly from IE.

Copy link
Member Author

Choose a reason for hiding this comment

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

Old IE doesn’t load the CSS or JS that gets used to hide/show this piece of content, hence why the class here is needed.

}

/* oldIE never gets slide out drawer */
.moz-global-nav {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a few old CSS files we can remove this class from. I am writing this comment to remind myself to open an issue.

@@ -55,8 +45,16 @@ label {
@include hidden;
}

// Make sure form details are visible
.is-js-dependent {
display: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

@stephaniehobson
Copy link
Contributor

Vast improvement from a menu perspective 💯 And the new .is-js-dependent class is 🔥

@alexgibson
Copy link
Member Author

Thanks for the review @stephaniehobson, merging!

@alexgibson alexgibson merged commit fd683b7 into mozilla:master Aug 2, 2019
@alexgibson alexgibson deleted the universal-css branch August 2, 2019 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Second level priority - Should have Review: S Code review time: 30 mins to 1 hour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants