Skip to content

Commit 3def377

Browse files
committed
fix: prose color/line-height review findings
- Restore line-height: 1.62 on .prose :where(p,ul,ol) so it explicitly overrides prose-lg's own paragraph rule at lg+ (inherited value was silently losing to the plugin's direct p selector) - Add .tiptap :where(p,ul,ol) { color: inherit } so the muted body-copy color does not bleed into the article editor's contenteditable - Switch inline code from text-accent-soft to text-fg: accent-soft on bg-inset in light mode was 2.30:1 contrast, failing WCAG AA
1 parent 71921ba commit 3def377

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

styles/globals.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ select:focus {
339339
tokens so it flips correctly in dark mode. */
340340
.prose :where(p, ul, ol) {
341341
color: rgb(var(--color-muted));
342+
line-height: 1.62;
343+
}
344+
/* Don't dim paragraph text while the author is writing. */
345+
.tiptap :where(p, ul, ol) {
346+
color: inherit;
342347
}
343348
.prose :where(h1, h2, h3, h4) {
344349
@apply font-display tracking-tight;
@@ -391,7 +396,7 @@ select:focus {
391396

392397
/* Inline code only — fenced blocks keep their own treatment below. */
393398
.prose :not(pre) > code {
394-
@apply rounded-sm border border-hairline bg-inset px-1 py-0.5 font-mono text-accent-soft;
399+
@apply rounded-sm border border-hairline bg-inset px-1 py-0.5 font-mono text-fg;
395400
font-size: 0.86em;
396401
}
397402

0 commit comments

Comments
 (0)