Add respect-site-support param to callout shortcode#37486
Open
hestonhoffman wants to merge 2 commits into
Open
Add respect-site-support param to callout shortcode#37486hestonhoffman wants to merge 2 commits into
hestonhoffman wants to merge 2 commits into
Conversation
When a preview callout appears on a page that is also listed in unsupported_sites, the two banners contradict each other. The new respect-site-support param (default true) wraps the callout in the existing site-region-container mechanism so it is hidden from readers on unsupported sites, matching the per-site behavior of the automated banner. Reuses get_unsupported_regions.html and .Site.Params.allowedRegions — no JS changes, no params.yaml changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Announcement and informational callouts (New: Bill Overview, Key Information, Suppression evaluation) should always be visible regardless of site restrictions, so opt them out of the default respect-site-support behavior. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
jhgilbert
approved these changes
Jun 12, 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.
What does this PR do? What is the motivation?
See:
Adds a
respect-site-supportboolean parameter (defaulttrue) to thecalloutshortcode.It's confusing to users when we show a banner stating that a feature is unsupported along with a separate banner inviting them to try the feature out in preview. This setting uses the existing
unsupported_sitesconfig inparams.yamlto hide preview callouts for regions that are listed as unsupported. You can setrespect-site-supporttofalseto ignore site-support.For an example, see Dynamic Metric Quotas. The preview callout should disappear on the gov sites and the site-support warning should appear.
Merge instructions
Merge readiness:
Additional notes
To opt out on a specific callout:
{{< callout respect-site-support="false" ... >}}