)}
@@ -165,7 +161,7 @@ const TagItem = ({ tag, depth, activeTag, expanded, onTagClick, onToggle }: TagI
className={SIDEBAR_ROW_LABEL_CLASSES}
onClick={() => onTagClick(tag.text)}
>
- {!hasSubTags &&
diff --git a/web/src/components/WelcomeGuide/headers.tsx b/web/src/components/WelcomeGuide/headers.tsx
index 4e0fef249..516558fe6 100644
--- a/web/src/components/WelcomeGuide/headers.tsx
+++ b/web/src/components/WelcomeGuide/headers.tsx
@@ -4,7 +4,6 @@ import {
CalendarDaysIcon,
ChevronDownIcon,
EllipsisIcon,
- HashIcon,
LibraryIcon,
ListChecksIcon,
LockIcon,
@@ -15,7 +14,7 @@ import {
} from "lucide-react";
import type { ReactNode } from "react";
import { MonthCalendar } from "@/components/ActivityCalendar/MonthCalendar";
-import { SIDEBAR_ROW_CLASSES, SidebarRowIconSlot, sidebarRowStateClasses } from "@/components/AppSidebar/SidebarRow";
+import { SIDEBAR_ROW_CLASSES, SidebarRowIconSlot, SidebarTagMarkSlot, sidebarRowStateClasses } from "@/components/AppSidebar/SidebarRow";
import SidebarSection from "@/components/AppSidebar/SidebarSection";
import { sidebarSurfaceVariants } from "@/components/AppSidebar/sidebar-layout";
import { MEMO_CARD_BASE_CLASSES } from "@/components/MemoView/constants";
@@ -140,7 +139,7 @@ export const KeepHeader = () => {
const { month, today } = currentMonth();
const days = [today, today - 1, today - 2, today - 9, today - 15].filter((day) => day >= 1);
const data = Object.fromEntries(days.map((day, index) => [`${month}-${String(day).padStart(2, "0")}`, index === 0 ? 2 : 1]));
- const pillClasses = cn(sidebarSurfaceVariants({ role: "navPill" }), sidebarRowStateClasses("current"), "gap-1.5 px-2 mu-body");
+ const pillClasses = cn(sidebarSurfaceVariants({ role: "navPill" }), sidebarRowStateClasses("current"), "gap-1.5 px-2 mu-label-sm");
return (
@@ -171,7 +170,7 @@ export const KeepHeader = () => {
[t("welcome.sample.tag-project"), 2],
].map(([tag, count]) => (
-
+
{tag}
{count}
diff --git a/web/src/index.css b/web/src/index.css
index aba6d993d..5177d6da3 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -48,8 +48,10 @@
background-color: color-mix(in oklch, var(--mu-text-secondary) 65%, transparent);
}
+ /* Antialiased everywhere, as @usememos/ui sets on its own controls: one rendering mode for
+ the whole app, so plain text never sits heavier than the control beside it. */
body {
- @apply bg-mu-canvas text-mu-text;
+ @apply bg-mu-canvas text-mu-text antialiased;
}
/* Search hits in memo bodies (CSS Custom Highlight API, registered by useSearchMatchHighlight).
diff --git a/web/tests/app-sidebar-logo.test.tsx b/web/tests/app-sidebar-logo.test.tsx
index cb9b512e0..eb9fa75a3 100644
--- a/web/tests/app-sidebar-logo.test.tsx
+++ b/web/tests/app-sidebar-logo.test.tsx
@@ -165,20 +165,20 @@ const render = (ui: Parameters[0]) =>
);
const expectCollapsedNavPill = (pill: HTMLElement, label: string) => {
- expect(pill).toHaveClass("mu-s-md", "h-(--mu-row-height)", "rounded-(--mu-row-radius)", "px-1.5");
+ expect(pill).toHaveClass("mu-s-md", "h-(--mu-row-height)", "rounded-(--mu-row-radius)", "px-[5px]");
expect(pill.firstElementChild).toHaveClass("size-4");
const labelTrack = pill.querySelector('span.grid[aria-hidden="true"]');
expect(labelTrack).toHaveClass("grid-cols-[0fr]", "ps-0");
- expect(labelTrack).not.toHaveClass("@min-[230px]:grid-cols-[1fr]");
+ expect(labelTrack).not.toHaveClass("@min-[240px]:grid-cols-[1fr]");
expect(labelTrack).toHaveTextContent(label);
};
const expectExpandedNavPill = (pill: HTMLElement, label: string) => {
- expect(pill).toHaveClass("mu-s-md", "h-(--mu-row-height)", "rounded-(--mu-row-radius)", "px-1.5");
+ expect(pill).toHaveClass("mu-s-md", "h-(--mu-row-height)", "rounded-(--mu-row-radius)", "px-[5px]");
expect(pill.firstElementChild).toHaveClass("size-4");
const labelTrack = pill.querySelector("span.grid");
// The label opens only where the row can afford it; the control's aria-label names it regardless.
- expect(labelTrack).toHaveClass("@min-[230px]:grid-cols-[1fr]", "@min-[230px]:ps-1.5");
+ expect(labelTrack).toHaveClass("@min-[240px]:grid-cols-[1fr]", "@min-[240px]:ps-1.5");
expect(labelTrack).toHaveAttribute("aria-hidden", "true");
expect(pill.querySelector("[data-sidebar-label]")).toHaveTextContent(label);
};
@@ -248,7 +248,7 @@ describe("App sidebar logo", () => {
expect(compose).toHaveClass("mu-button", "mu-button-neutral", "mu-button-icon", "mu-s-md");
expect(compose).not.toHaveClass("rounded-full");
expect(header).not.toContainElement(search);
- expect(search).toHaveClass("ms-auto", "h-(--mu-row-height)", "px-1.5");
+ expect(search).toHaveClass("ms-auto", "h-(--mu-row-height)", "px-[5px]");
expect(search.querySelector(".lucide-search")).toHaveClass("mu-icon");
fireEvent.click(search);
@@ -398,7 +398,7 @@ describe("App sidebar logo", () => {
expect(primaryNavigation).toHaveClass("h-(--mu-row-height)", "items-center", "gap-1", "px-3");
expect(primaryNavigation).not.toHaveClass("flex-col");
const navigation = within(primaryNavigation);
- expect(navigation.getByRole("button", { name: "common.search" })).toHaveClass("ms-auto", "h-(--mu-row-height)", "px-1.5");
+ expect(navigation.getByRole("button", { name: "common.search" })).toHaveClass("ms-auto", "h-(--mu-row-height)", "px-[5px]");
expectActiveNavPill(navigation.getByRole("link", { name: "common.timeline" }), "common.timeline");
const calendar = navigation.getByRole("link", { name: "common.calendar" });
expect(calendar).toHaveAttribute("href", "/calendar");
diff --git a/web/tests/calendar-cell-empty-clickable.test.tsx b/web/tests/calendar-cell-empty-clickable.test.tsx
index 36ca7cafe..97d603e35 100644
--- a/web/tests/calendar-cell-empty-clickable.test.tsx
+++ b/web/tests/calendar-cell-empty-clickable.test.tsx
@@ -47,12 +47,22 @@ describe("CalendarCell empty-day clickability", () => {
expect(onClick).toHaveBeenCalledWith("2025-05-01");
});
- it("marks today with a dot without changing the numeral weight", () => {
+ it("outlines today without changing the numeral weight", () => {
render( {}} />);
const button = screen.getByRole("button", { name: /May 1, 2025/ });
+ expect(button).toHaveAttribute("aria-current", "date");
expect(button).not.toHaveClass("font-semibold", "font-bold");
- expect(button.querySelector('[aria-hidden="true"]')).toHaveClass("rounded-full");
+ expect(chipOf(button)).toHaveClass("border", "border-mu-text/40", "text-mu-text");
+ expect(chipOf(button)).not.toHaveClass("border-transparent");
+ });
+
+ it("shows a picked today by its fill alone", () => {
+ render( {}} />);
+
+ const chip = chipOf(screen.getByRole("button", { name: /May 1, 2025/ }));
+ expect(chip).toHaveClass("bg-mu-primary", "text-mu-on-primary", "border-transparent");
+ expect(chip).not.toHaveClass("border-mu-text/40");
});
it("fills a selected day with the accent like a checked filter row, keeping the numeral weight", () => {
@@ -81,7 +91,7 @@ describe("CalendarCell empty-day clickability", () => {
// The square lives on the capped chip. Putting it back on the button would make row
// height track the column width again, which is what made a widened rail so tall.
expect(button).not.toHaveClass("aspect-square");
- expect(chipOf(button)).toHaveClass("aspect-square", "max-w-7");
+ expect(chipOf(button)).toHaveClass("aspect-square", "max-w-6");
});
it("does not render out-of-month days as interactive (no role=button)", () => {
diff --git a/web/tests/sidebar-row-grammar.test.tsx b/web/tests/sidebar-row-grammar.test.tsx
index 7a9644bf2..e36667e2f 100644
--- a/web/tests/sidebar-row-grammar.test.tsx
+++ b/web/tests/sidebar-row-grammar.test.tsx
@@ -27,7 +27,10 @@ describe("sidebar row grammar", () => {
,
);
- expect(screen.getByRole("heading", { name: "Statistics", level: 2 })).toHaveClass("mu-label-sm");
+ const heading = screen.getByRole("heading", { name: "Statistics", level: 2 });
+ // The header is one type step below the 13px rows it labels, on the same 28px box as a row.
+ expect(heading).toHaveClass("mu-label-xs");
+ expect(heading.parentElement).toHaveClass("h-7", "pe-1");
expect(screen.getByRole("button", { name: "August 2026" }).parentElement).toHaveClass(...SIDEBAR_SECTION_CONTENT_CLASSES.split(" "));
});
@@ -36,7 +39,7 @@ describe("sidebar row grammar", () => {
const row = screen.getByRole("button", { name: "Tasks3" });
expect(row).toHaveClass(...boxClasses);
- expect(row).toHaveClass("mu-s-md", "h-(--mu-row-height)", "w-full", "gap-1", "rounded-(--mu-row-radius)", "px-2", "mu-body");
+ expect(row).toHaveClass("mu-s-md", "h-(--mu-row-height)", "w-full", "gap-1", "rounded-(--mu-row-radius)", "px-2", "mu-label-sm");
expect(row).not.toHaveClass("-mx-1");
// Icon in the shared slot and count in the shared rail, so every list — nav rows,
// views, tags in both modes — keeps its icons and digits on the same vertical lines.