-
Notifications
You must be signed in to change notification settings - Fork 841
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
Added horizontal scroll mixin #2458
Conversation
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.
LGTM! I just add one small suggestion.
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.
Loaded locally, checked the docs and code.
mask-image: linear-gradient(to right, #{$gradient}); | ||
} @else { | ||
@warn "euiOverflowShadow() expects direction to be 'y' or 'x' but got '#{$direction}'"; |
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.
👏
@@ -90,3 +90,7 @@ | |||
.euiYScrollWithShadows { | |||
@include euiYScrollWithShadows; | |||
} | |||
|
|||
.euiXScrollWithShadows { |
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.
I know it looks like we did this in the other one, but the rest of our utilities were written eui-
. Wish these two weren't off pattern.
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.
We could also use a dual selector for now, and deprecate the other one. Obviously not a big deal, just something I noticed.
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.
Yeah so I also looked into the docs and the docs referenced this as .eui-yScrollWithShadows
. I think at some point there was a bad merge that undid the change from .euiYScrollWithShadows
to .eui-yScrollWithShadows
. I then opted for the non-dash one, but for no particular reason but to not break that selector. I can setup a deprecation though instead.
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.
I'm sorry, I missed the rerequest for review on this one! LGTM.
f4ac48f
to
5974565
Compare
Set `.euiYScroll…` for deprecation
5974565
to
010f631
Compare
Fixes #2215
This new mixin
euiXScrollWithShadows
and utility class.euiXScrollWithShadows
compliment the already existing mixineuiYScrollWithShadows
and utility class.euiYScrollWithShadows
.Checklist
IE11and Firefox (IE doesn't support masks, and we're ok with no fallback)[ ] Props have proper autodocs[ ] Added or updated jest tests[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes