docs: cut the Intelligence mega-menu gap to 2px

This commit is contained in:
Alem Tuzlak
2026-09-01 16:07:23 +02:00
parent 3f39e2d406
commit f13b594d93
4 changed files with 1 additions and 22 deletions
@@ -98,13 +98,6 @@ describe("globals.css sidebar Intelligence pin", () => {
});
});
describe("globals.css mega menu featured Intelligence", () => {
it("leaves space under the featured Intelligence card", () => {
expect(globalsCss).toContain(".shell-docs-mega-menu-featured-item");
expect(globalsCss).toContain("margin-bottom: 4px;");
});
});
describe("globals.css sidebar section folders", () => {
it("styles collapsible section triggers separately from page links", () => {
expect(globalsCss).toContain(".shell-docs-sidebar-section-label");
-4
View File
@@ -426,10 +426,6 @@
border: 1px solid transparent;
}
.shell-docs-mega-menu-featured-item {
margin-bottom: 4px;
}
.shell-docs-mega-menu-link.shell-docs-mega-menu-link-featured
.shell-docs-mega-menu-icon {
margin-top: 0;
@@ -37,9 +37,6 @@ test("opens a five-column docs map with Intelligence featured", () => {
expect(intelligence.className).toContain(
"shell-docs-mega-menu-link-featured",
);
expect(intelligence.closest("li")?.className).toContain(
"shell-docs-mega-menu-featured-item",
);
expect(
screen.getByRole("link", { name: "Threads" }).getAttribute("href"),
).toBe("/threads");
@@ -152,14 +152,7 @@ export function DocsMegaMenu({
const Icon = MEGA_MENU_ICONS[link.icon];
const featured = link.featured === true;
return (
<li
key={link.href}
className={
featured
? "shell-docs-mega-menu-featured-item"
: undefined
}
>
<li key={link.href}>
<Link
href={link.href}
onClick={() => setOpen(false)}