Companies' map on phones: the Table button as its icon alone, with a "Table view" tooltip below it #916
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#916
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 a phone held upright, the companies' map shows the Table button as its icon alone, with a tooltip "Table view" below it on hover and on focus.
What exists today
templates/jobs/company_map.html:<a href="{% url 'jobs:company_list' %}" class="btn absolute end-3 top-3 z-1 shadow-sm" data-variant="outline" data-map-table>{% icon "table" %}{% translate "Table" %}</a>, at the top of the end side since #909. It shows the icon and the word at every width.data-tooltipsentence througharia-labelledby(#909). The calendar's view buttons already drop their words on small screens (#904,560deb0a0), and #852 is a setting for icons, labels or both.What would change
sm, the word is visually hidden (sr-onlyat that width, not removed), so the link keeps its accessible name. Abovesmit is drawn as now.data-tooltip). At widths where the word is visible, the tooltip is not needed. Whether it shows there too is left to whoever builds it, but it must not repeat the visible word to a screen reader.btndata-size="icon"at that width).Notes
data-tooltip-placeattribute, which this can share.Related: #909, #849, #904, #852.
Checked against
mainat56fc9d531.