-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[24.0] do not show copy button when editing #17895
Conversation
@@ -84,6 +84,7 @@ function onCopyOut() { | |||
</BButton> | |||
|
|||
<BButton | |||
v-if="!editing" |
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.
Maybe it'd be better to just disable the button ?
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 generally think it better to hide things that are not relevant to the current view. And when editing slug copying of the full url is not relevant.
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.
In this case, there is not too much of a difference, but there are clear pros and cons for both options so we shouldn't always prioritize one or the other, but rather choose on a case-by-case basis.
Here is an article without the aim to bikeshed too much 😜 https://uxpsychology.substack.com/p/hidden-vs-disabled-states
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 both sides and my preference was in the commit. However since there are two votes for the other option I added cd7de55
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.
Thank you! I prefer this option because the UI is not very cluttered here and there is a bit less "movement" on the screen when interacting 👍
backport plus an addition to #17888
License