feat(docs): add "Create a support ticket" to the page feedback toolbar - #480
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Mintlify's page feedback toolbar only offers "Suggest edits" and "Raise issue", both hard-wired to the GitHub repo. Readers without a GitHub account (or unwilling to fork the repo to propose a one-line change) have no way to report a docs problem. Add a third option that links to the Help Center request form. The toolbar is not configurable — docs.json has no feedback settings and the built-in toggles live in the Mintlify dashboard — so the link is injected client-side, following the existing assets/*.js pattern. It inherits the sibling buttons' classes so styling and dark mode stay in sync, and re-injects on client-side navigation. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ketanyekale
force-pushed
the
feature/feedback-toolbar-support-ticket
branch
from
August 22, 2026 15:55
6ab48d8 to
b52fb7e
Compare
…al scroll Mintlify groups the feedback toolbar as [question] [[thumbs] [links]], where each inner group is an unbreakable flex item. Adding a third link pushed that group past the available width, so the question, the thumbs and the links each ended up on a line of their own — and at 375px the link group was 508px wide, overflowing the viewport and giving every docs page a horizontal scrollbar on mobile. Drop the two wrapper divs out of the layout with `display: contents` so each button wraps individually. The thumbs keep their own wrapper and stay beside "Was this page helpful?"; the links wrap only when they run out of room. Measured on the branch preview: 375px goes from 528px of horizontal overflow to none, and 820px/1440px go from three lines to two with the thumbs back beside the question. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The previous rule gave all five buttons the same 12px gap, which read as one undifferentiated row. "Yes" and "No" answer "Was this page helpful?" and belong with the question; suggesting an edit, raising an issue or opening a ticket are independent of that answer, and production's justify-between layout separated them. Keep the links as one group (so they wrap together instead of trailing after the thumbs one at a time) and put 36px between the two groups when they share a line. The group wraps internally rather than overflowing, so the mobile horizontal scrollbar stays fixed. Below 640px the margin is dropped — there the links always wrap to their own line, and the extra 24px only pushed the question off the thumbs' line. Measured on the branch preview: - 960px toolbar: one line, gaps 12 / 12 / 36 / 12 / 12 - 664px toolbar: question + thumbs, then the three links as a group - 375px viewport: no horizontal overflow Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
raj-dubey1
approved these changes
Aug 24, 2026
shardul-cometchat
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a third option — Create a support ticket — to the page feedback toolbar, next to Mintlify's built-in "Suggest edits" and "Raise issue". It links to the Help Center request form at
help.cometchat.com/hc/en-us/requests/new.Both built-in buttons are hard-wired to this GitHub repo. A reader who spots a typo is asked to fork the repository to propose a change, which means a GitHub account and a PR flow for a one-line fix. Readers without a GitHub account currently have no way to report a docs problem at all.
Why this is a script and not config: the feedback toolbar is not configurable. There is no
feedbackkey anywhere in the live docs.json schema (nosuggestEdit,raiseIssue, orthumbsRating), and the built-in toggles live in the Mintlify dashboard under Add-ons. There is no option to point "Suggest edits" at a custom URL. So the third option is injected client-side, following the existingassets/*.jspattern (consent.js,version-aligner.js) — Mintlify loads every.jsfile in the content directory on every page (custom scripts).Implementation notes:
className, so styling and dark mode stay in sync automatically if Mintlify restyles the toolbarRelated Issue(s)
Raised by Nisha in Slack: the "Suggest edits" flow requires a GitHub login and a repository fork, which is a lot of friction for a quick documentation improvement.
Type of Change
Checklist
Additional Information
Verified by running the same code against the live docs site:
["Suggest edits", "Raise issue", "Create a support ticket"]Two open questions for reviewers:
ids but nonameattributes, so Zendesk's?tf_subject=/?tf_description=prefill has no effect. Support will receive a docs ticket with no indication of which page it is about, unless the reader pastes the URL. Worth asking the Help Center owners for a prefill parameter we can pass..feedback-toolbarand the GitHub anchors). If Mintlify restructures the toolbar the button silently stops appearing. That degrades to today's behaviour rather than breaking a page, but nothing will alert us.Layout (second and third commits)
Adding a third button pushed the toolbar past the width it had to spare. Mintlify groups it as
[question] [[thumbs] [links]], where both inner groups are unbreakable flex items, so the question, the thumbs and the links each landed on a line of their own — and at 375px the link group was 508px wide, giving every docs page a horizontal scrollbar on mobile.assets/feedback-support-ticket.cssdrops the thumbs/links wrapper out of the layout withdisplay: contents, so the thumbs sit beside the question. The links keep their own wrapper and gainflex-wrap, so they stay one group that wraps together and wraps internally rather than overflowing the viewport.The two groups are separated by 36px when they share a line, against 12px within a group. "Yes" and "No" answer "Was this page helpful?" and belong with it; suggesting an edit, raising an issue or opening a ticket are independent of that answer. Production drew the same distinction via
justify-between. Below 640px the extra margin is dropped — there the links always wrap to their own line, and the margin only pushed the question off the thumbs' line.Measured on this branch's preview deploy:
Note: this relies on CSS
:has(), which is baseline across current browsers. Where it is unsupported the toolbar falls back to the stacked layout — nothing breaks.🤖 Generated with Claude Code