Add animated counter to petition map

Update petition map counter to show animated count of signatures
with matching timing to dot animation and improved text formatting

Remove redundant header styles from CSS
Move counter styling to dedicated CSS section

Update counter text to be more concise and present tense
This commit is contained in:
Ruben 2026-02-26 22:21:41 +01:00
parent bd993ea6ca
commit e8919e5842
3 changed files with 31 additions and 21 deletions

View file

@ -139,6 +139,7 @@ function petitionMapRenderWidget(Context $ctx): string {
// Map container
$html .= '<section class="petition-map-section escape">';
$html .= '<h1 id="petition-map-count" class="petition-map-count" aria-live="polite"></h1>';
$html .= '<div id="petition-map" aria-label="Kart over underskrifter i Norge">';
$html .= '<div class="map-loading" id="map-loading" aria-live="polite">Laster kart…</div>';
$html .= '</div>';