mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-25 17:00:20 +00:00
chore: publish from staged
This commit is contained in:
@@ -554,6 +554,18 @@ export function setupDropdownCloseHandlers(): void {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const isOpen = dropdown.classList.toggle("open");
|
const isOpen = dropdown.classList.toggle("open");
|
||||||
toggle.setAttribute("aria-expanded", String(isOpen));
|
toggle.setAttribute("aria-expanded", String(isOpen));
|
||||||
|
|
||||||
|
if (isOpen) {
|
||||||
|
document
|
||||||
|
.querySelectorAll('.install-dropdown[data-install-scope="list"].open')
|
||||||
|
.forEach((openDropdown) => {
|
||||||
|
if (openDropdown === dropdown) return;
|
||||||
|
openDropdown.classList.remove("open");
|
||||||
|
openDropdown.querySelector(".install-btn-toggle")
|
||||||
|
?.setAttribute("aria-expanded", "false");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -868,7 +868,6 @@ body:has(#main-content) {
|
|||||||
border: 1px solid var(--color-border);
|
border: 1px solid var(--color-border);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
box-shadow: var(--shadow-md);
|
box-shadow: var(--shadow-md);
|
||||||
z-index: 1000;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
transform: translateY(-8px);
|
transform: translateY(-8px);
|
||||||
@@ -1875,6 +1874,11 @@ body:has(#main-content) {
|
|||||||
transform: translateX(4px);
|
transform: translateX(4px);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
border-radius: 0px var(--border-radius-lg) var(--border-radius-lg) 0px;
|
border-radius: 0px var(--border-radius-lg) var(--border-radius-lg) 0px;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.resource-item:has(.install-dropdown.open) {
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resource-item:hover::before,
|
.resource-item:hover::before,
|
||||||
|
|||||||
Reference in New Issue
Block a user