Closed
Bug 1189515
Opened 9 years ago
Closed 9 years ago
collapsible content areas within a page
Categories
(developer.mozilla.org Graveyard :: Wiki pages, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dietrich, Unassigned)
Details
(Keywords: in-triage, Whiteboard: [specification][type:feature])
What problem would this feature solve? ====================================== For longer pieces of content we have the option of long single-page guides, or linking out to many separate pages. Long single-page documents are scary at first-glance, very difficult to navigate, and take a lot of scrolling to move around. Link-out hubs result in content getting disconnected and sometimes unconnected from the hub, and also results in users having to jump out and back in to the main thrust of the guide repeatedly. You end up with tabsplosion, or backbuttonitis, or the worst: a combination of multiple tabs across the general content area but each with multiple levels of page navigation in them. I've long wanted to create a nice single-page guide which is easily navigable via collapsible content areas. This would essential turn the section headers *into* the TOC, which would enable easy scanning and navigation in one shot, without sending readers away to different pages, tabs, etc. I'd like to prototype a Gaia contribution guide with this approach. It's a connected and sequential series of content pieces that lead a contributor from zero to patch-landed. We'd like to ship it this quarter, and I'd prefer to do so on MDN if this is possible :D Who has this problem? ===================== All visitors to MDN How do you know that the users identified above have this problem? ================================================================== I've not run any experiment or looked at user-trail data (do we have that?) How are the users identified above solving this problem now? ============================================================ Reading very long pages, or experiencing tab explosion. Do you have any suggestions for solving the problem? Please explain in detail. ============================================================================== Described in the request title yo. Is there anything else we should know? ====================================== You're awesome, keep it up.
Comment 1•9 years ago
|
||
MDN has a shim to give universal support for <details> and <summary> could you use those to achieve the effect you're after?
Comment 2•9 years ago
|
||
IIRC we have long-standing bugs hoping to implement a system for making it easy to implement a system for doing this.
Comment 3•9 years ago
|
||
Do the <summary> and <details> elements work for you?
Comment 4•9 years ago
|
||
Then what we need is UX to make this feature available to writers without having to drop into source editor.
Reporter | ||
Comment 5•9 years ago
|
||
Thanks everyone! Can you point me at an example where <details> and <summary> were used like this, or the authoring docs for those?
Flags: needinfo?(dietrich)
Comment 6•9 years ago
|
||
You can see them in action here: https://developer.mozilla.org/en-US/fellowship It's not a wiki page unfortunately because we haven't used them on a wiki page yet but you can view source / inspect them. For usage you can refer to the docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details If you find a feature in the docs you want to use but won't work please let us know so we can update our shim.
Reporter | ||
Comment 7•9 years ago
|
||
I wasn't able to replicate the usage of details + summary as was done in the Fellowship page. https://developer.mozilla.org/en-US/docs/Gaia_Contribution_Pathway Stephanie, can you take a look to see if I'm doing it correctly?
Flags: needinfo?(shobson)
Comment 8•9 years ago
|
||
Oh wow, that is some bizarre behaviour. I see three problems, all of which are on us (I don't think this has been used with the text editor before) 1) Summary is not in the list of tags allwoed in the text editor 2) We need some CSS on the wiki page to make the summary look clickable 3) CKEditor is not letting `<summary></summary>` nest or be nested in a heading. I'm sorry :dietrich I thought this was ready for prime time and it clearly isn't.
Comment 9•9 years ago
|
||
Filed http://dev.ckeditor.com/ticket/13680#ticket with CKeditor
Comment 10•9 years ago
|
||
A few pushes have gone to production and there's a sample page here now: https://developer.mozilla.org/en-US/docs/User%3Astephaniehobson%3Adetails Fixed: - details and summary are now allowed in CKEditor - summary appears clickable Still a problem: - can't use headings inside summaries (CKEditor is already reviewing their patch for this!) - "open" attribute on details is being stripped
Flags: needinfo?(shobson)
Comment 11•9 years ago
|
||
Update: CKEditor fixed our bug and released a new version, it has been integrated into the MDN code base and will probably be pushed to production on Monday or Tuesday :)
Comment 12•9 years ago
|
||
In use on production here: https://developer.mozilla.org/en-US/docs/MDN/Contribute/Localize/Localization_projects I'm going to close this bug :)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 13•9 years ago
|
||
Fantastic, thanks Stephanie!
Comment 14•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/552cfc5ad7f176db2c10a8130021e6f96f4f867e Bug 1189515: Details and summary Added a bottom margin to the <details> element to preserve horizontal spacing (especially before headings). Moved the CSS generated elements added in browsers that don't support <details> to the right. Testing: https://developer.mozilla.org/en-US/docs/User:stephaniehobson:details https://github.com/mozilla/kuma/commit/82a5bbd74de4d49c863cca32c7ad250e7ea33573 Merge pull request #3762 from stephaniehobson/1189515-details-bottom-margin Bug 1189515: Details and summary
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•