diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-10-17 10:43:03 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-10-31 12:45:42 -0500 |
commit | 734faae6e6dc0b64ead4f8e6d14db1d61b27e267 (patch) | |
tree | 63f6bc79fa7d9b6c8a71c7f1f5b2a7a310f869dc | |
parent | 2888e48b27eee4937d61c212be668f5339c4236e (diff) | |
download | gitlab-ce-35955-searchable-settings-puts-expand-collapse-toggle-in-an-invalid-state.tar.gz |
Stop sections from expanding when scrolling over the 1px section35955-searchable-settings-puts-expand-collapse-toggle-in-an-invalid-state
See https://gitlab.slack.com/archives/C0GQHHPGW/p1508253662000271
-rw-r--r-- | app/assets/stylesheets/pages/settings.scss | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/settings.scss b/app/assets/stylesheets/pages/settings.scss index 91ad7f2151b..968a94c68cf 100644 --- a/app/assets/stylesheets/pages/settings.scss +++ b/app/assets/stylesheets/pages/settings.scss @@ -55,11 +55,15 @@ overflow-y: scroll; padding-right: 110px; animation: collapseMaxHeight 300ms ease-out; + // Keep the section from expanding when we scroll over it + pointer-events: none; .settings.expanded & { max-height: none; overflow-y: visible; animation: expandMaxHeight 300ms ease-in; + // Reset and allow clicks again when expanded + pointer-events: auto; } .settings.no-animate & { |