-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 semantic commands enabled status #14664
Fix semantic commands enabled status #14664
Conversation
Thanks for making a pull request to jupyterlab! |
bot please update documentation snapshots |
Documentation snapshots updated. |
87dda4c
to
80b9a73
Compare
bot please update documentation snapshots |
Documentation snapshots updated. |
But is this the expected behaviour? Could these be enabled (rather than disabled) but possibly greyed out as "inactive"? My problem with the buttons being disabled is that it is now a two-step action to run a cell in another notebook (first focus the notebook, then click on the button). Even though other UI elements e.g. the "add cell" button are always active: I think most desktop UI does not require focusing first to click a button. As an example, the window initially in the background on the screencast has the buttons greyed out (inactive) but when I click on "X" it just works (it is not disabled): |
Thanks for the feedback @krassowski - I agree with you it will be more consistent to still have the button as enabled. One possible solution would be to return |
Yes, I think this makes sense - subsequently we could apply a different kind of "grey out" style to all toolbar buttons by conditioning on the document not having an "active" class (we don't have a class like that on document widgets - only on tab bar, which is a related UX issue). |
539231b
to
2162077
Compare
bot please update documentation snapshots |
Documentation snapshots updated. |
de3ca39
to
d6656eb
Compare
@meeseeksdev please backport to 4.0.x |
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
References
Fixes #14658
Code changes
isEnabled
for file editor semantic commandsUser-facing changes
Notebook toolbar buttons status are consistent
Backwards-incompatible changes