Your details: the date-of-birth calendar button beside the boxes, and a picker redesigned #928
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#928
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, the date-of-birth calendar button sits to the right of the day, month and year boxes, on their line, and never wraps below them. The picker it opens is redesigned.
What exists today
templates/accounts/profile.html, Personal details: a<fieldset>"Date of birth" holds<div class="flex flex-wrap items-start gap-x-4">, the three boxes (form.birth_boxes, eachfield mb-2 w-20), then<div class="field mb-2 self-end">with the button (data-birth-picker,popovertarget="birth-picker", iconcalendar-days, hidden untilapp.jsruns) (#863).flex-wrap). Whenever the three boxes, their gaps and the button do not fit, the button drops to a line of its own under the boxes.<div id="birth-picker" popover data-popover data-align="start" class="w-72">. Inside are a label "Pick a day", the browser's own<input type="date">(min="1900-01-01",maxtoday) and a sentence ("It fills the day, month and year boxes. …"). So what is drawn is a box inside a popover, and the browser's own calendar opens from that box. This was chosen with the calendar's period picker (#858) "so no library is vendored for either". Each browser draws it differently and none follows Postulo's look.What would change
Placement
flex-wrapon that row, or the button attached to the year box as aninput-groupaddon. The button is level with the boxes, not with their labels (#866 handled the same for the star and the bin).The picker (options, not decided)
<c-date-picker>). Basecoat 1.0.2 has no date picker to import, so it is written here and painted inbasecoat.css.THIRD-PARTY.md.<input type="date">beside the boxes. The browser's calendar opens straight away, but its look still varies.Whichever is chosen: it fills the three boxes and never replaces them (a year alone stays possible by typing), it opens on the date already in the boxes, and it says what it does in one sentence.
Accessibility
Notes
Related: #863, #858, #679.
Checked against
mainat56fc9d531.The new picker for the date of birth should be the shared one from #933 (date, month, week and range pickers built once for the calendar and every date field).