From 4124f8ef70738ec85d54313c7642c7023bc75a82 Mon Sep 17 00:00:00 2001
From: Giteabot <teabot@gitea.io>
Date: Thu, 15 Jun 2023 10:52:23 -0400
Subject: [PATCH] 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 <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
---
 web_src/js/features/contextpopup.js | 1 +
 web_src/js/features/repo-commit.js  | 1 +
 2 files changed, 2 insertions(+)

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',
     });
   });
 }