Add icon to buttons "Close with Comment", "Close Pull Request", "Close Issue"#36654
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds an icon to the "Close" button for issues and pull requests to help prevent accidental clicks by new users who might confuse it with a "delete comment" action.
Changes:
- Added an inline SVG icon (octicon-git-pull-request-closed) to the close button in issue/PR comment forms
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Why the "icon" can "prevent missclicks"? If newbies don't understand what "Close with Comments" does, do they understand that the icon mean? |
Then it needs to distinguish between "issue" and "pull request". |
|
@e6aluga would you be ok with me pushing some fixes onto your branch to align with GitHub's rendering? |
👍 |
|
Ok I will have a look soon. |
Match GitHub's rendering: monochrome button background with only the icon colored (red for close, green for reopen). Also add icon and text wrappers to the reopen button for consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change "Reopen" to "Reopen Issue" and "Reopen Pull Request" to match the close button pattern which already distinguishes between them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Double the gap on .ui.button (keeping compact buttons at default), and remove now-unnecessary tw-mr-1/tw-mr-2 from SVG icons inside buttons. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
What is the effect of the recent changes? Is gap the same for compact and non-compact buttons? |
|
Looks the same as before, so lgtm. |
* giteaofficial/main: (81 commits) Add keyboard shortcuts for repository file and code search (go-gitea#36416) Refactor text utility classes to Tailwind CSS (go-gitea#36703) Prevent redirect bypasses via backslash-encoded paths (go-gitea#36660) Fix force push time-line commit comments of pull request (go-gitea#36653) Fix get release draft permission check (go-gitea#36659) Move `X_FRAME_OPTIONS` setting from `cors` to `security` section (go-gitea#30256) Update JS and PY deps (go-gitea#36708) Move jobparser from act repository to Gitea (go-gitea#36699) Fix push time bug (go-gitea#36693) Add icon to buttons "Close with Comment", "Close Pull Request", "Close Issue" (go-gitea#36654) various fixes (go-gitea#36697) Add AI Contribution Policy to CONTRIBUTING.md (go-gitea#36651) Add some validation on values provided to USER_DISABLED_FEATURES and EXTERNAL_USER_DISABLED_FEATURES (go-gitea#36688) Rework e2e tests (go-gitea#36634) Remove unused functions (go-gitea#36672) Add migration http transport for push/sync mirror lfs (go-gitea#36665) Fix track time issue id (go-gitea#36664) Refactor inline style attributes (go-gitea#36652) Update Nix flake (go-gitea#36679) Upgrade gogit to 5.16.5 (go-gitea#36680) ... # Conflicts: # web_src/js/features/repo-issue-content.ts












Newbies often use the "Close with Comments" button instead of deleting their comment.
Icon should prevent missclicks.
Before


After

