summaryrefslogtreecommitdiffstats
path: root/web_src/js/features
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-06-15 16:09:16 +0800
committerGitHub <noreply@github.com>2023-06-15 10:09:16 +0200
commit8e0316c321f6070c20ab5d8c412185fb9510977e (patch)
treefab946bcfbe4df1aa1106c35ee71b2f882340857 /web_src/js/features
parent73ae71824d64aa242451f54af5df7e8f8bfcf579 (diff)
downloadgitea-8e0316c321f6070c20ab5d8c412185fb9510977e.tar.gz
gitea-8e0316c321f6070c20ab5d8c412185fb9510977e.zip
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>
Diffstat (limited to 'web_src/js/features')
-rw-r--r--web_src/js/features/contextpopup.js1
-rw-r--r--web_src/js/features/repo-commit.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/features/contextpopup.js b/web_src/js/features/contextpopup.js
index 5c5733b35a..23a620b8a2 100644
--- a/web_src/js/features/contextpopup.js
+++ b/web_src/js/features/contextpopup.js
@@ -34,6 +34,7 @@ export function attachRefIssueContextPopup(refIssues) {
content: el,
placement: 'top-start',
interactive: true,
+ role: 'dialog',
interactiveBorder: 5,
onShow: () => {
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js
index d22aa8e980..7e4e40806b 100644
--- a/web_src/js/features/repo-commit.js
+++ b/web_src/js/features/repo-commit.js
@@ -65,6 +65,7 @@ export function initCommitStatuses() {
content: this.nextElementSibling,
placement: top ? 'top-start' : 'bottom-start',
interactive: true,
+ role: 'dialog',
});
});
}