Skip to content

Commit 4124f8e

Browse files
GiteaBotwxiaoguangsilverwind
authored
Fix issue and commit status popup padding (#25254) (#25288)
Backport #25254 by @wxiaoguang Close #25249 Use "dialog" for the role ![image](https://github.com/go-gitea/gitea/assets/2114189/2b5b7552-48bc-4ecf-947b-34917232cff9) Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: silverwind <[email protected]>
1 parent b45ea02 commit 4124f8e

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)