mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-29 09:31:11 -05:00
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>
This commit is contained in:
parent
b45ea0280b
commit
4124f8ef70
2 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,7 @@ export function attachRefIssueContextPopup(refIssues) {
|
||||||
content: el,
|
content: el,
|
||||||
placement: 'top-start',
|
placement: 'top-start',
|
||||||
interactive: true,
|
interactive: true,
|
||||||
|
role: 'dialog',
|
||||||
interactiveBorder: 5,
|
interactiveBorder: 5,
|
||||||
onShow: () => {
|
onShow: () => {
|
||||||
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
|
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
|
||||||
|
|
|
@ -65,6 +65,7 @@ export function initCommitStatuses() {
|
||||||
content: this.nextElementSibling,
|
content: this.nextElementSibling,
|
||||||
placement: top ? 'top-start' : 'bottom-start',
|
placement: top ? 'top-start' : 'bottom-start',
|
||||||
interactive: true,
|
interactive: true,
|
||||||
|
role: 'dialog',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue