Skip to content

Applies-switch tab title rendering issue with multiple keys #1976

@florent-leborgne

Description

@florent-leborgne

Describe the bug

I think I found a little bug with applies-switch:
I have this: ::::{applies-item} { serverless: ga, stack: ga 9.2 } as per the guidelines in https://elastic.github.io/docs-builder/syntax/applies-switch/#multiple-applies_to-definitions

That renders like this:

Image

Wondering if that has to do with line length/wrapping or if having full syntax (lifecycle + version) for more than 1 item could lead to this.

Expected behavior

In this case, I would expect 2 things different than now:

  • serverless should appear first
  • the separator correctly placed between the 2 keys

This will be a frequent case (where serverless is often aligned with a stack version, so both would appear in the same tab)

Steps to reproduce

No response

Tooling

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions