Your details: seven cards draw their heading and question mark on the border, not inside the card #919
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#919
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 Your details, seven cards draw their heading and question mark on the card's top border instead of inside the card: Messaging, Telephone numbers, Social profiles, Code repositories, Websites, Postal addresses and Identifiers. The other cards (Your picture, Your CV photo, Your name, Personal details, Contact block) put them inside. All twelve should look the same, with the heading and mark inside the card.
What exists today
<fieldset class="card …">with a<legend class="label px-1">:templates/partials/messaging_handles.html(#section-messaging)partials/phone_numbers.html(#section-phones)partials/web_links.html(#section-links-<kind>, one per kind)partials/postal_addresses.html(#section-addresses)accounts/profile.html(#section-identifiers)assets/css/app.css(under "A card's question mark (#302)") puts the mark on that border too, on purpose:fieldset > [data-help-mark][data-variant] { absolute end-4 bg-card; inset-block-start: calc(-0.625rem - var(--spacing) * 3) }.<div class="card">headed by<c-section-title>, whose header is Basecoat's card header with the mark in a second grid column (.section-title:has(> [data-help-mark])).jobs/contact_form.html) and a company's form (jobs/company_form.html), which draw the same fieldsets.What would change
<fieldset>, because the grouping is what a screen reader announces. Its visible heading is drawn inside the card in the same place and type as<c-section-title>, with the question mark at the inline end of that line.sr-only), and a<c-section-title>(aria-hidden, or a heading the fieldset isaria-labelledby) draws the visible heading inside.float: inline-start; inline-size: 100%, which takes it out of the border in every engine) and give it the section title's paint, with the mark beside it in a header row.fieldset > [data-help-mark]rule that lifts the mark onto the border goes.To check
aria-labelledby), and the section menu's anchors still land on the heading.tests/test_stylesheet.pyandtests/test_template_lint.py(HAND_HEADING) may flag a heading drawn by hand, so use<c-section-title>.No new strings.
Related: #302, #866, #871.
Checked against
mainat56fc9d531.