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

fix .grid class column-count var taking precedence in safari #356

Closed
wants to merge 1 commit into from

Conversation

nickschot
Copy link
Contributor

In Safari it seems that in certain situations the --column-count: 1; from the .grid class takes precedence over the media query ones. As the responsive classes can't be used without the main .grid classes anyway this PR should prevent that from happening.

@ijlee2
Copy link
Member

ijlee2 commented Mar 18, 2021

Hi, @nickschot. I think your pull request may unblock a PR in ember-website. Can you rebase your branch to see if the CI will pass?

@ijlee2
Copy link
Member

ijlee2 commented Mar 18, 2021

@nickschot Thank you!

Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

Oh yes I forgot to comment on this when we discussed it in the Website Redesign meeting. I don't really know if this is the right solution 🤔

If this is a safari bug I would like to have a bit more information on it before we commit this to the repo and add what seems like an unnecessary selector to the CSS

@nickschot
Copy link
Contributor Author

Oh yes I forgot to comment on this when we discussed it in the Website Redesign meeting. I don't really know if this is the right solution 🤔

If this is a safari bug I would like to have a bit more information on it before we commit this to the repo and add what seems like an unnecessary selector to the CSS

We'll at the very least need to verify if the selectors appear in the correct order in the compiled CSS. But in my memory I think that was the case, hence why it was only happening in Safari for whatever reason.

@ijlee2
Copy link
Member

ijlee2 commented Mar 18, 2021

It's happening in Chrome too: ember-learn/ember-website#807

@mansona
Copy link
Member

mansona commented Mar 18, 2021

@ijlee2 if it's really different with a trailing slash or not (omg 😱) then that is actually solved with a different fix in the website repo 👍

@mansona
Copy link
Member

mansona commented Mar 25, 2021

As it turns out I didn't say what the "different fix" in the website repo website actually was 🙈 Now that ember-learn/ember-website#809 is merged it should potentially be fixed

can we double check and see if its still a problem @nickschot ?

@jenweber
Copy link
Contributor

Notes from learning team meeting - this requires fixes upstream. Media queries with the same queries get squashed into one media query, and this reordering causes specificity problems.

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.

None yet

4 participants