WORK-468
ID:WORK-468Status:ready

Retire the media-position → definitions-grid coupling

Remove the implicit arrangement-from-media coupling and move the grid/stack decision entirely onto [data-layout]. Per SPEC-099 §2.

Priority:mediumComplexity:moderateMilestone:v0.26.0Source:SPEC-099
claude/v0.26.0-milestone-2vuxi9 View source

Criteria completion

Criteria completion: 0 of 4 (0%) checked; tracking started on Jun 25, no incremental history yet0%25%50%75%100%Jun 25Jul 11

Tracking started Jun 25 — check back for trends.

Branches 3
History 1
  1. 17d2678
    Created (ready)by bjornolofandersson

Scope

  • Remove the variants: { 'media-position': { top/bottom → definitions-grid } } block and the definitions-grid static modifier from the Feature config (plugins/marketing/src/config.ts).
  • Update packages/lumina/styles/runes/feature.css so grid-vs-stack keys off [data-layout="grid"] / [data-layout="list"] instead of .rf-feature--definitions-grid.
  • Because the media-derived default (WORK-467) reproduces the old behaviour when layout is unset, rendered output for existing content is unchanged — but this is a behaviour change with visual-regression surface, owned here, not a silent side effect. Spot-check existing feature content renders identically.
  • Update CSS-coverage: remove the definitions-grid selector from KNOWN_* and add the [data-layout] selectors.

Acceptance Criteria

  • The media-positiondefinitions-grid variant and the definitions-grid modifier are removed from the Feature config and CSS.
  • feature.css keys grid-vs-stack arrangement off [data-layout="grid"] / [data-layout="list"].
  • Existing feature content (no explicit layout) renders identically to before.
  • CSS-coverage tests pass for the new [data-layout] selectors; the definitions-grid selector is removed from coverage/KNOWN_* as appropriate.

Dependencies

  • WORK-467 — the [data-layout] emission and media-derived default must exist before the coupling is removed.

References

  • Spec: SPEC-099 §2. SPEC-091 (the variant being retired).
  • plugins/marketing/src/config.ts (Feature, variants/definitions-grid), packages/lumina/styles/runes/feature.css.