You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ui): Typography Text is not theme-aware, causing black-on-black text #444
Split from #440. Reported symptom: buttons render black-on-black on community post detail pages.
Cause
packages/ui/src/components/Typography/Text.tsx is not theme-aware at all — it never calls useThemeContext, and resolveColor(undefined) returns colors.text.light.primary (#16110d) unconditionally:
Because it always emits an explicit color, a nested <Text> cannot inherit from its parent. Button correctly sets color: colors.white on its own wrapper Text, but UpvoteButton and BookmarkButton nest a bare <Text> inside it, which re-emits #16110d over the gray[900] filled background.
Scope
Two layers:
Call sites (packages/scf-core/features/communities/components/{UpvoteButton,BookmarkButton}.tsx) — nest raw <Text> inside <Button> instead of using the label path. Cheap fix, resolves the reported symptom.
Systemic — every <Text> without an explicit color renders light-theme near-black regardless of active theme. ~1,860 of ~3,880 <Text> usages in scf-core/features carry a manual colors.text[t] override to work around it. That workaround density is the actual bug.
Note Input.styles.ts gets this right (colors.text[resolvedTheme].primary), so the fix pattern already exists in the package.
Acceptance
Text resolves colors from the active theme
color="inherit" genuinely inherits rather than hardcoding
Upvote and bookmark buttons legible in both themes, filled and outline
No regression in light mode
Lives in the packages/ui submodule — needs its own PR plus a pointer bump in UNI-Construct.
Activity
fix(ui): theme-aware Typography, shrinkable Input, legible community …