Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

feat: [content] allow disabling the `<section class="content">` wrapper

Open
#809 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
css, dart, html
Domain
frontend

Research direction

The wrapper is hardcoded in packages/jaspr_content/lib/src/content.dart near line 33, so start there. Before coding, the maintainers need to pick an API shape (a flag on ContentApp, a PageConfig builder, or a ContentTheme option), which the thread has not settled. Done means an opt-out that leaves the default <section class="content"> output unchanged.

Written by the indexing model from the issue text.

Description

feature

Description

jaspr_content's Content component wraps the rendered page in <section class="content"> (hardcoded in packages/jaspr_content/lib/src/content.dart). There's no way to disable or customize it. Three reasons this would help:

  • Semantic HTML. <section> is sectioning content with implicit outline/landmark semantics, not a generic wrapper. MDN: "section should not be used as a generic container; this is what div is for." An unconditional outer section also affects the document outline and constrains content that uses its own sectioning elements (<article>, nested <section>, <aside> etc.).

  • Cleaner markup. One extra wrapper with no ARIA or structured-data value.

  • CSS direct-child selectors break. Rules like & > :first-child match the section, not the actual first content element:

    @utility prose-trimmed {
      & > :first-child { margin-top: 0; }
      & > :last-child  { margin-bottom: 0; }
    }
    

    Applied to a parent of the section, this matches the section itself, not the heading inside.

Additional Context

Possible shapes:

  • A bool parameter on ContentApp (e.g. wrapWithContentSection: false).
  • A PageConfig builder that returns the wrapping component, or null to skip.
  • An option on ContentTheme.
Dominant language
Dart
Stars
2.5k
Forks
328
Avg merge
2d 20h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from schultek/jaspr

All issues in schultek/jaspr

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.