-
Notifications
You must be signed in to change notification settings - Fork 91
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 toggle overlapping other stuff #4134
Conversation
Signed-off-by: Simon L <szaimen@e.mail.de>
/backport to stable7 |
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 after a fast test :
Capture vidéo du 17-05-2023 14:10:04.webm
May some other reviewers test it ?
Can you submit a patch? I am not sure where to adjust this... |
I can try, but I don't have a dev environment at hand right now. |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Should work now. See the enhanced example in the docs. I didn't test it in an app though. |
Thanks a lot! :) |
//shows the triangle button | ||
// hides the triangle button | ||
.icon-collapse { | ||
visibility: hidden; | ||
display: none; | ||
} | ||
&.app-navigation-entry--no-icon, | ||
&:hover, &:focus { | ||
a .app-navigation-entry-icon { | ||
visibility: visible; | ||
} | ||
.icon-collapse { | ||
//shows the triangle button | ||
visibility: visible; | ||
// shows the triangle button | ||
display: initial; |
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 think one of this changes now reverted the idea of #4103...
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.
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.
The dropdown arrow isn't visible at the moment either. I just had to switch from visibility
to display
as otherwise the button takes space even if it's not visible.
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 see
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.
Like noted in the other PRs: It would be good if the arrow is pointing down also in closed state.
It pointing to the right is unexpected – pointing down in both states would make it look like a standard HTML select element.
I wouldn't say it's entirely unexpected. Even Google still uses this pattern in their apps sometimes (e.g. Googlemail Web). But they indeed seem to switch to an up/down arrow for open/closed state, e.g. in their expandable list view: So, how about we do this as well? Menu collapsed: arrow down, Menu open: arrow up? |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
I implemented it like this. Please have a look. |
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.
Yep, looks good now!
Yes, it should be shown all the time :) |
.icon-collapse { | ||
visibility: hidden; | ||
display: none; |
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.
@raimund-schluessler can the above be addressed by simply setting this to display:initial?
Fix #4103 (comment)