You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing Approve and Reject buttons in review #1646
Today while trying to review a PR I struggled finding the Approve and Reject buttons: they were missing from the review popup completely. I then tried to disable the add-quick-review-buttons feature, and discovered that was due to them being disabled (I was the PR opener and we have some protection in place to avoid PR owners merging their PRs without approval).
To have a nicer user experience in such cases I think would be helpful to move disabled radios to buttons in disabled state, using the provided help text GitHub adds to the radios.
The HTML structure for the disabled radios has a aria-label containing the popup text
<divclass="form-checkbox mx-3 my-2"><labelclass="d-block text-gray-light tooltipped tooltipped-ne tooltipped-no-delay tooltipped-left"
aria-label="Pull request authors can’t approve their own pull request"><inputtype="radio" name="pull_request_review[event]" value="approve" disabled="">
Approve
<pclass="text-normal text-gray-light">Submit feedback and approve merging these changes.</p></label></div>
I can provide a PR to enhance this behaviour is you are ok with that.
Activity
fregante commentedon Nov 30, 2018
Not a bad idea.
For reference, this is what it looks like normally
endorama commentedon Nov 30, 2018
Display Disabled Review Buttons
Guy-Del-Mistro commentedon Apr 15, 2022
fregante commentedon Apr 16, 2022
This is not an official GitHub help board.