diff --git a/web/src/app/Icon.tsx b/web/src/app/Icon.tsx index 298d7761..5270ce26 100644 --- a/web/src/app/Icon.tsx +++ b/web/src/app/Icon.tsx @@ -1,10 +1,15 @@ /** Thin wrapper around a Material Icons ligature glyph (font loaded in index.html). * Always `aria-hidden` -- the glyph's DOM text is the icon's internal ligature name (e.g. * "arrow_back_ios_new"), never something a screen reader should announce. An icon-only - * interactive element (button/link with no visible text) must set its own `aria-label`. */ + * interactive element (button/link with no visible text) must set its own `aria-label`. + * + * Deliberately `im-icon`, NOT Google Fonts' own `.material-icons` class -- see index.css's own + * comment on that rule for why: Google's stylesheet ships that class completely unlayered, which + * under CSS Cascade Layers always outranks Tailwind's layered utilities regardless of specificity + * or source order, silently ignoring every `text-[Npx]` size override across the whole app. */ export function Icon({ name, className = '', style }: { name: string; className?: string; style?: React.CSSProperties }) { return ( -