-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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 #935 Fix #1216 #1203
Fix #935 Fix #1216 #1203
Conversation
It's |
:not was failing on my end so added &:not. |
That's not correct. It's going to output |
Here's what we want:
|
@jgthms I think I got your point, thanx for explaining it. added
|
@jgthms any changes required in this pr ? |
sass/layout/hero.sass
Outdated
@@ -18,7 +18,7 @@ | |||
&.is-#{$name} | |||
background-color: $color | |||
color: $color-invert | |||
a:not(.button), | |||
a:not(.button, .dropdown), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong syntax. Should be a:not(.button):not(.dropdown)
.
done ! changed syntax to |
@jgthms I just tested this after i had committed the change and there seems to be a problem. This, |
@connectkushal it looks like you accidentally removed the trailing It should be Though, using this syntax instead of @jgthms The W3C spec for :not() identifies that the negation is supposed to take in a selector list as the argument, so the more correct syntax should be |
This fix was working well in version 5.3 but came across new issue on version 6.0. On some more digging up on the :not, i found some things on the developer.mozilla.org which i want to point out first It says this Now the new issue that i faced was, that the color of all the links inside the Essentially i realized that doing I tried removing the Something that did work without breaking anything was adding
same for tags. @jgthms @SimplyThomas Im still learning so would appreciate your thoughts on how to fix this properly. |
@connectkushal Good find. I didn't realize that I was looking at a draft specification. For what it's worth, since you're still learning, you should do everything you can to avoid using I was able to get the intended results using the following syntax: I've made a codepen that demonstrates that this selects the intended and elements, but not the other classes involved. |
sass/layout/hero.sass
Outdated
@@ -17,7 +17,7 @@ | |||
&.is-#{$name} | |||
background-color: $color | |||
color: $color-invert | |||
a:not(.button), | |||
a:not(.button, .dropdown, .tag), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changing this to a:not(.button):not(.dropdown):not(.dropdown-item):not(.tag),
produces the desired results.
@SimplyThomas Thanx for the insight on @jgthms made the changes you suggested and also added |
Added not(.dropdown) to fix #935
Testing Done
yes, locally using laravel mix.