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:
parent
bd993ea6ca
commit
e8919e5842
3 changed files with 31 additions and 21 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue