-
Notifications
You must be signed in to change notification settings - Fork 932
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
Sticky close button #4825
base: master
Are you sure you want to change the base?
Sticky close button #4825
Conversation
I think we should update the design of the circle to make it more clear when scrolled. Maybe a light gray background (for non hover) with a white border for some separation to the background? |
The circle doesn't have a hover state, it's not clickable. If I give it a gray background or a border it will look like clickable. If you actually want the circle to be clickable, you want a larger close button. Do you want it? I didn't change the button size in this pull request. |
The transparent background suggest that it is clickable as a whole element already. Changing it to behave like that would be an UX improvement to me, yes. And would also make the scrolled-state more clear. |
My goal was for the background was to suggest the opposite. It does two things:
That doesn't have to do anything with sticky buttons. You want:
You can open another issues about that. |
This PR makes the button sticky. I agree that the sticky button needs a visual separation to the content below. I don't think that it is good UX to make this area non-interactive (hover, click) – it's not what I would expect the interface to behave. Unfortunately Bootstrap does not follow those UX decisions for their close button https://getbootstrap.com/docs/5.0/components/close-button/ (which only shows the non sticky version, but still…). However they do use a larger surface area for their burger menu https://getbootstrap.com/docs/5.0/components/navbar/#external-content which follows the same principle, IMO. |
fce2258
to
764f238
Compare
764f238
to
41defdf
Compare
Allows close buttons to stay visible when sidebar contents is scrolled.
Fixes #2174.
Also related to this because the button is not inside
sidebar_content
and is not being resent with page templates.