Companies' map: the Zoom in, Zoom out and Near me tooltips beside their button, towards the map #915
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#915
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On the companies' map, the tooltips of Zoom in, Zoom out and Near me appear beside their button, on the side facing into the map (to the left in a left-to-right page), not above or below it.
What exists today
36b4bc1da) the three buttons are stacked at the bottom of the end side.templates/jobs/company_map.htmldraws their sentences as<span id="map-tip-zoom-in|map-tip-zoom-out|map-tip-locate" data-tooltip>.app.jsnames each button by its sentence (nameByTip,aria-labelledby) and callsreadyTooltips()again once Leaflet has drawn them.placeTipinstatic/js/app.js. It tries a fixed list of places:TIP_PLACES = ["above-start", "above-end", "above", "below-start", "below-end", "below"](MARK_PLACESfor question marks). There is no place beside the anchor, only above or below. The hover bridge inassets/css/app.css([data-tooltip][popover][data-tooltip-side="above"|"below"]::after) also covers only those two sides.What would change
placeTiplearns two more places,startandend(logical: beside the anchor, vertically centred on it), with the same gap and the same rules for staying in the window and avoiding obstacles.data-tooltip-place="start"on the sentence or the button). The three map buttons ask for the side facing into the map:startwhile they are on the end side, flipping withdiras the buttons already do (endCorner).::after) gets an inline-side variant (data-tooltip-side="start"|"end": full height of the anchor, 8px wide), so the tooltip stays hoverable (SC 1.4.13).Accessibility
No new strings.
Related: #909, #907, #850.
Checked against
mainat56fc9d531.