Skip to content

Commit 8e0316c

Browse files
Fix issue and commit status popup padding (#25254)
Close #25249 Use "dialog" for the role ![image](https://github.com/go-gitea/gitea/assets/2114189/2b5b7552-48bc-4ecf-947b-34917232cff9) --------- Co-authored-by: silverwind <me@silverwind.io>
1 parent 73ae718 commit 8e0316c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

web_src/js/features/contextpopup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function attachRefIssueContextPopup(refIssues) {
3434
content: el,
3535
placement: 'top-start',
3636
interactive: true,
37+
role: 'dialog',
3738
interactiveBorder: 5,
3839
onShow: () => {
3940
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));

web_src/js/features/repo-commit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export function initCommitStatuses() {
6565
content: this.nextElementSibling,
6666
placement: top ? 'top-start' : 'bottom-start',
6767
interactive: true,
68+
role: 'dialog',
6869
});
6970
});
7071
}

0 commit comments

Comments
 (0)