Skip to content

Improve accordion ES|QL functions list #1280

Closed as not planned
Closed as not planned

Description

@cauemarcondes

Describe the bug

On this page we list all functions available. We have a lot of unused space on the right side. We could use Grid to create more columns and on smaller screens fallback to a single column like today.

Image

Expected behavior

Use multiple columns (maybe max 3) on larger screens and 1 column on smaller screens. This will improve the visibility of the items listed.

Steps to reproduce

Open this link and click on one of the accordions.

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Activity

  1. shainaraskas commented on May 20, 2026

    @shainaraskas
    Member

    @itsalexcm can I get your eyes on this? do you think this is something we should fix, or should we just suggest reorganizing into a table or something? note that with the applies_to badges we're straying over the page midline

    Image
  2. cotti commented on Jun 3, 2026

    @cotti
    Contributor

    AI triage

    Automated investigation against the current codebase. A human still needs to confirm before any code change.

    Original concern

    The ES|QL functions list (reference page) renders each category accordion as a single full-width column of links, wasting horizontal space; the ask is to lay the list out in multiple columns (≤3) on wide screens and collapse to one column on small screens.

    Findings

    • src/Elastic.Markdown/Myst/Directives/Dropdown/DropdownView.cshtml:L34-L36 — dropdown body is emitted into one <div class="dropdown-content"> wrapper that just renders the inner markdown block. The functions list is ordinary block-flow markdown (a <ul>), so it fills a single full-width column.
    • src/Elastic.Documentation.Site/Assets/markdown/dropdown.css:L20-L22 — .dropdown-content only applies padding (px-4 pb-4). There is no column-count, CSS grid, or any multi-column rule for dropdown content anywhere — which is exactly why the list shows empty space on the right.
    • src/Elastic.Markdown/Myst/Directives/Admonition/AdmonitionBlock.cs:L29,L43-L44 — the dropdown's Classes is set internally only (dropdown when :open:, plain for admonitions). There is no :class: option, so an author/upstream generator cannot opt one specific dropdown into a multi-column layout without a code change.
    • The list content is generated upstream in elastic/elasticsearch, not authored here (the page shows category lists — Aggregate, Math, String, etc. — each item carrying applies_to badges). docs-builder owns the rendering shell + CSS, not the content, so a global CSS change would reflow every dropdown on the site, not just this list.
    • Maintainer thread: @shainaraskas pinged a designer (@itsalexcm) on 2026-05-20 asking whether to fix the columns or reorganize into a table, and flagged that the applies_to badges already cross the page midline — i.e., the layout choice is explicitly unresolved.

    Verdict

    Needs stakeholder input

    The mechanical part (adding multi-column CSS) is small, but the issue is not a contained styling fix: a design decision is open (columns vs. table; how many columns and at what breakpoints; how items carrying applies_to badges should wrap/align), and an engineering decision is open (the dropdown directive has no class hook, and the content is generated cross-repo — so applying this to only the ES|QL list requires either a new opt-in mechanism or a deliberately broad global rule). The maintainer comment confirms the team is waiting on design direction.

    Proposal

    For design (@itsalexcm / UX):

    • Columns vs. a table layout? If columns, what max count (issue suggests ≤3) and breakpoints?
    • How should an item with applies_to badges behave in a multi-column flow (wrap, truncate, align)? The badges already cross the midline today.
    • Should this apply to all dropdown lists site-wide, or only the ES|QL functions list?

    For engineering:

    • If scoped to this list: add a :class: option to the dropdown directive (AdmonitionBlock, currently sets Classes internally only) plus a scoped rule in dropdown.css, then coordinate with elastic/elasticsearch to emit that class on the generated dropdowns.
    • If global: add a column-count/grid rule targeting list content inside .dropdown-content in dropdown.css — simpler, but changes every dropdown on the site, so needs sign-off.

    Related issues

    Part of a cluster around ES|QL reference layout and dropdown UX:

    Maintainers may want to plan a coherent dropdown/ES|QL-reference layout fix across these rather than one-off.

    Notes

    • Currently labeled bug; this is really an enhancement / design request (no broken behavior, just suboptimal use of space).
    • No prior fix PR/commit found — git log shows recent dropdown work (#1949 applies_to, #1977 revert, #2019 title sizing) but nothing addressing multi-column content.
  3. added
    ai-triaged
    ai:ux-question
    ai:eng-question
    on Jun 3, 2026
  4. leemthompo commented on Jun 17, 2026

    @leemthompo
    Member

    out of date since elastic/elasticsearch#150546 landed?

  5. shainaraskas commented on Jun 17, 2026

    @shainaraskas
    Member

    Definitely! Until we have another grid use case, I think we can close this.

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

    ai-triagedai:eng-questionai:ux-questionbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions