mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 22:41:44 +01:00
Improve UX on modal for deleting an access token (#19894)
* Improve UX on modal for deleting an access token Before, both action buttons where coloured on hover. Otherwise they appeared as ghost buttons. UX tells us, that call to action must not be displayed as ghost button. Using red is perceived as warning colour in Western cultures. It was used for the non-destructive action before. This PR swaps the colour and turns the cancel button into a filled one, so it is saver to do nothing then to accidentally delete an access button. We want the person to do this consciously. In another iteration the wording here could be improved. See the associated issue for further details. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de> * Use tabs instead of spaces. Linter does not complain anymore. I was expecting the formatter to pick this up but it didn't. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
5ab2dcb613
commit
81cf006863
1 changed files with 9 additions and 3 deletions
|
@ -55,6 +55,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-token">
|
<div class="ui small basic delete modal" id="delete-token">
|
||||||
|
{{/*
|
||||||
|
The wording here is a bit confusing.
|
||||||
|
The action asks for deleting an access token.
|
||||||
|
Confirming is therefore the destructive option and
|
||||||
|
should be deemphasized because it cannot be undone.
|
||||||
|
*/}}
|
||||||
<div class="ui icon header">
|
<div class="ui icon header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.i18n.Tr "settings.access_token_deletion"}}
|
{{.i18n.Tr "settings.access_token_deletion"}}
|
||||||
|
@ -63,11 +69,11 @@
|
||||||
<p>{{.i18n.Tr "settings.access_token_deletion_desc"}}</p>
|
<p>{{.i18n.Tr "settings.access_token_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div class="ui red basic inverted cancel button">
|
<div class="ui cancel button">
|
||||||
<i class="remove icon"></i>
|
<i class="remove icon"></i>
|
||||||
{{.i18n.Tr "modal.no"}}
|
{{.i18n.Tr "modal.no"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui green basic inverted ok button">
|
<div class="ui red basic inverted ok button">
|
||||||
<i class="checkmark icon"></i>
|
<i class="checkmark icon"></i>
|
||||||
{{.i18n.Tr "modal.yes"}}
|
{{.i18n.Tr "modal.yes"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue