feat(country-brief): add native browser share button to small & large briefs (#854)

Add Web Share API button to both CountryDeepDivePanel (small brief) and
CountryBriefPage (large brief). Falls back to clipboard copy with a
checkmark flash when navigator.share is unavailable. Shares the deep
link URL (?c=CODE) with the country name as title.
This commit is contained in:
Elie Habib
2026-03-03 03:24:49 +04:00
committed by GitHub
parent 148d767ec3
commit e444783def
5 changed files with 49 additions and 1 deletions

View File

@@ -15643,6 +15643,7 @@ body.has-breaking-alert .panels-grid {
color: var(--accent);
}
.cb-link-share-btn,
.cb-share-btn,
.cb-print-btn,
.cb-export-btn {
@@ -15657,6 +15658,7 @@ body.has-breaking-alert .panels-grid {
align-items: center;
}
.cb-link-share-btn:hover,
.cb-share-btn:hover,
.cb-print-btn:hover,
.cb-export-btn:hover {
@@ -16090,6 +16092,7 @@ body.has-breaking-alert .panels-grid {
}
.cb-close,
.cb-link-share-btn,
.cb-share-btn,
.cb-print-btn,
.cb-export-btn,