Skip to content

fix(event-page): keep description headings below the section title - #516

Merged
harshtandiya merged 1 commit into
developfrom
fix/event-page-prose-headings
Oct 1, 2026
Merged

harshtandiya merged 1 commit into
developfrom
fix/event-page-prose-headings

Conversation

@harshtandiya

Copy link
Copy Markdown
Collaborator

What changed

.prose had no heading rules, so an h2 in an event description fell back to the browser default (1.5em ≈ 22.5px, bold) and outranked the 20px/600 "About" title above it.

  • .prose h1/h2: --text-2xl (18px). h3–h6: --text-lg (16px). All --font-weight-semibold, --ink.
  • 24px above a heading that follows content; margin: 0 otherwise, since the base reset only covers h1–h3.
  • <strong> inside a heading inherits the weight. The text editor wraps heading text in <strong>, and bolder pushed it past semibold.
  • Applies to custom page tabs too (page.content uses the same .prose wrapper).

Not used: espresso .text-* type-style classes. The heading HTML comes from the editor via | safe, so a class can't go on the element. The tokens give the same values.

Known: on mobile the body is 16px, so h3–h6 match the body size and differ by weight only.

Demo

Before / after (desktop, dark mode):

before.png
after.png

Testing

Manual browser check on an event whose description has an h2 wrapping <strong>. Computed styles: "About" 20px/600, description h2 18px/600, same Inter face. CSS only, so no tests were added; E2E is left to CI.

Prose had no heading rules, so an h2 in an event description fell back to
the browser default (1.5em, bold) and outranked the 20px "About" title.
Size prose headings from espresso tokens, cap them at 18px semibold, and
stop editor-added <strong> from pushing the weight past semibold.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@harshtandiya
harshtandiya merged commit 45045cf into develop Oct 1, 2026
8 checks passed
@harshtandiya
harshtandiya deleted the fix/event-page-prose-headings branch October 1, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant