Skip to content

When there are multiple section headings to display OTP and user manually adds an H2 heading inside one of the body paragraphs, the mobile accordion becomes nested #4993

@bryanpizzillo

Description

@bryanpizzillo

Note

This is an NCIDS issue as well with the accordion library. We have no real way to say, hey ignore these h2s in deeper divs...

Scenario 1

When there are multiple section headings to display OTP and user manually adds an H2 heading inside one of the body paragraphs, the mobile accordion becomes nested - is this how we want it to be ?
Currently on dev-ac accordion does not get nested, but its still kind of messed up
Screenshot 2025-10-13 at 11 06 34 AM
Screenshot 2025-10-13 at 11 06 24 AM

Originally posted by @KateMashkinaNIH in #4988 (comment)

Scenario 2

So the accordion issue is actually a bit more messed up. Basically if you (or an automation script) move between the desktop and mobile breakpoints multiple times, content gets lost.

image

Originally posted by @bryanpizzillo in #4988 (comment)

Acceptance Criteria

  • Any and all nested headings within an h2 will appear as their standard NCIDS and/or legacy heading (non-accordionized) when the accordion of the h2 is expanded

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions