Skip to content

Reword the API reference banner without the Beta label - #4962

Merged
akira28 merged 5 commits into
mainfrom
flb/api-banner-wording
Nov 20, 2026
Merged

akira28 merged 5 commits into
mainfrom
flb/api-banner-wording

Conversation

@florent-leborgne

@florent-leborgne florent-leborgne commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

The banner above every API page now reads: "We're giving our API reference a new engine and a fresh look. We'd love to hear what you think." The link still opens the feedback dialog, or the issue form where page feedback is off.

The old banner called the reference beta and said it joined the main Elastic docs. Readers can't opt in or out of a beta, and the API docs were already on elastic.co/docs, so both phrases described the project instead of helping the reader. Agreed in the Slack thread with Martijn.

  • Drops the Beta pill, the middle sentence, and the CSS that styled and hid them, in api-docs.css and api-reference.css.
  • Rewords the feedback dialog the link opens. The title is now "Share your feedback". The intro is "We'd love to hear how the new API reference works for you. Start with a quick Yes or No, then tell us more." The old intro repeated the "still tuning it" message, and the form only appears after the reader chooses Yes or No.
  • Updates the four ApiBetaBannerTests snapshots by hand. The tests pass in CI on all three platforms.

Possible follow-up for the team: #4963 (let readers give positive and negative feedback in the same popover).

The banner called the API reference beta and said it joined the main Elastic docs. Readers can't opt in or out of a beta, and the docs were already on elastic.co/docs, so the label and the middle sentence told them nothing.

The banner now says the API reference has a new engine and a fresh look, and invites feedback. The feedback dialog intro drops the same "still tuning" message, and the CSS for the Beta pill and the hidden middle sentence goes with it.
@florent-leborgne
florent-leborgne requested a review from a team as a code owner November 19, 2026 15:49
It's now part of the main Elastic docs, and we're still tuning it.</span>
If something looks wrong or is missing,
<a class="api-beta-banner__link" href="https://github.com/elastic/docs-content/issues/new?template=issue-report.yaml&amp;labels=source:web">let us know</a>.</p>
We're giving our API reference a new engine and a fresh look.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

All four banner snapshots put the opening sentence on a new line, but MatchHtmlSnapshot() keeps text that immediately follows <p> on the same line as the tag. Regenerate the four snapshots from the rendered partial so the tests don’t fail on this mismatch.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regenerated the two dialog snapshots from the rendered partial in 4609f7c. The two link-only snapshots already pass unchanged in CI, so I left them as they are.

@github-actions

Copy link
Copy Markdown
Contributor

The dialog opens from the banner link, but its title and intro only spoke about this page. The title now invites feedback in general. The intro ties the dialog to the new API reference and tells readers to choose Yes or No first, because the reasons and the comment box only show after that choice.
florent-leborgne and others added 3 commits November 20, 2026 10:12
# Conflicts:
#	tests/Elastic.ApiExplorer.Tests/.snapshots/ApiBetaBannerTests/Render_FeedbackOnWithTheDesignSystem_OpensTheDesignSystemWidgetInADialog.verified.html
#	tests/Elastic.ApiExplorer.Tests/.snapshots/ApiBetaBannerTests/Render_FeedbackOn_OpensThePageFeedbackInADialog.verified.html
}
<aside id="api-beta-banner" class="api-beta-banner" aria-label="About this API reference">
<p class="api-beta-banner__message"><span class="api-beta-banner__label">Beta</span> This is our new API reference.<span class="api-beta-banner__detail"> It's now part of the main Elastic docs, and we're still tuning it.</span> If something looks wrong or is missing, @if (opensDialog){<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl" data-api-beta-feedback-open="@dialogId" aria-haspopup="dialog">let us know</a>}else{<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl">let us know</a>}.</p>
<p class="api-beta-banner__message">We're giving our API reference a new engine and a fresh look. @if (opensDialog){<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl" data-api-beta-feedback-open="@dialogId" aria-haspopup="dialog">We'd love to hear what you think</a>}else{<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl">We'd love to hear what you think</a>}.</p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

When page feedback is off, “We'd love to hear what you think” sends readers to a public GitHub issue form that requires them to describe a documentation problem. Label the fallback as an issue-report link so readers don't follow a general feedback invitation they can't use.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

</header>
<div class="api-beta-feedback__content">
<p class="api-beta-feedback__intro">This API reference is new, and we're still tuning it. Tell us what looks wrong or is missing.</p>
<p class="api-beta-feedback__intro">Tell us what looks wrong or is missing.</p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

The banner now invites general feedback, but the dialog still tells readers to report only what's wrong or missing. Both widgets accept a Yes response, so use a neutral intro that explains the Yes/No step instead of discouraging positive feedback.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

@akira28
akira28 enabled auto-merge (squash) November 20, 2026 09:35
@akira28
akira28 merged commit 689e590 into main Nov 20, 2026
44 checks passed
@akira28
akira28 deleted the flb/api-banner-wording branch November 20, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants