Skip to content

dropdown directive #10

Closed

Description

@Mpdreamz

Dropdown

Kind Link
Reference https://mystmd.org/guide/directives#directive-dropdown
Documentation https://mystmd.org/guide/dropdowns-cards-and-tabs#dropdowns

Implementation

  • Parses directives and aliases
  • Emits HTML
  • Unit tests
  • Validation (emits, warnings and errors).

Specification compliance:

  • Arguments is parsed
  • Body is parsed
  • Options
    • label, name (string) - Label the dropdown to be cross-referenced or explicitly linked to.
    • open (boolean) - When true, the dropdown starts open.

Activity

  1. added
    authoring
    and removed on Nov 6, 2024
  2. KOTungseth commented on Nov 11, 2024

    @KOTungseth
    Contributor

    In-flight PR for automatically generated definition lists from YAML: elastic/kibana#191787

    I'm also including my own notes ⬇️

    Purpose

    Organize information: It helps break down large sections of content into manageable, digestible parts. Users can expand or collapse sections to view only the information relevant to them, reducing cognitive load.

    Enhance navigation: By hiding less critical or secondary information under expandable panels, accordions streamline the reading experience, allowing users to focus on the most important points first.

    Improve readability: In documentation with complex technical details, accordions prevent overwhelming readers by presenting content step-by-step or by topic, improving comprehension.

    Save space: Especially in mobile-friendly or compact layouts, accordions help keep the page clean and reduce the need for excessive scrolling, making it easier for users to find what they need quickly.

    Interactive content: They allow for more dynamic interaction with the documentation, such as showing or hiding examples, code snippets, or detailed explanations only when the user needs them.

    Best practice

    Avoid overcrowding accordion sections with too much text. Instead, summarize key points and link to more detailed information if necessary. This keeps the interface clean and makes it easier for users to digest information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoring

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions