Skip to content

Item deletion dialog button hover colors #3589

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

Closed
bugreport0 opened this issue Feb 26, 2018 · 4 comments · Fixed by #19909
Closed

Item deletion dialog button hover colors #3589

bugreport0 opened this issue Feb 26, 2018 · 4 comments · Fixed by #19909
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality

Comments

@bugreport0
Copy link
Contributor

Description

The button hover colors for item deletion dialogs are counter-intuitive:

  • the 'Yes' button confirms deletion and is colored green;
  • the 'No' button cancels deletion and is colored red.

We should either:

  • reword all dialogs to have macOS style button labels like 'Delete' and 'Don't Delete' (or 'Cancel') or;
  • use neutral hover colors for these dialogs.

I'm also not sure if there even any positively-phrased dialogs in Gitea where 'yes' is the non-intrusive action, so maybe both options can even work together.

Screenshots

delete-yes

delete-no

(Wording on this dialog is from my private branch, but Gitea releases are similar.)

@lafriks
Copy link
Member

lafriks commented Feb 26, 2018

I would prefer Cancel (white) and Delete (red) in this case

@lunny lunny added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Feb 27, 2018
@stale
Copy link

stale bot commented Feb 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Feb 7, 2019
@lunny lunny added issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented and removed issue/stale labels Feb 8, 2019
@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Jun 5, 2022

I agree, this is bad UX.
Since there is a label „reviewed/confirmed”, I assume this is good to pick up.
Changing the wording would require going through translation. I don't know how macOS handle it (I'm running a Linux).

That being said, if there was a rewording, I would add something

This cannot be undone.

The effect is already described, so that should be okay.

The relevant code part is

<div class="ui small basic delete modal" id="delete-token">
<div class="ui icon header">
{{svg "octicon-trash"}}
{{.i18n.Tr "settings.access_token_deletion"}}
</div>
<div class="content">
<p>{{.i18n.Tr "settings.access_token_deletion_desc"}}</p>
</div>
<div class="actions">
<div class="ui red basic inverted cancel button">
<i class="remove icon"></i>
{{.i18n.Tr "modal.no"}}
</div>
<div class="ui green basic inverted ok button">
<i class="checkmark icon"></i>
{{.i18n.Tr "modal.yes"}}
</div>
</div>
</div>

I would switch the hover colours to white and red in a first PR: #3589 (comment)
Following https://uxplanet.org/ghost-buttons-in-ux-design-4cf3717334f8 ghost buttons should not be used for primary actions.
In order to prevent accidental action, I'm going to turn the „No” button into a filled UI (by removing basic inverted classes) and leave the „Yes” button a ghost one. This way, there is conscious effort required to actually do delete an access token.

@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Jun 5, 2022

Looking at https://fomantic-ui.com/elements/button.html#colored I cannot see a white option. Basic adds transparency in our case (so in dark mode, it would appear as a ghost button).

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants