Skip to content

UI: Directors editable effective date #34153

Closed
1 of 2 issues completed
Closed

Description

@PCC199

Create effective date input in FormPartyDetails component.

Effective date must be configurable to be shown/hidden via props. (See preferred name/business name implementation).


Added July 29th (Liz)
Associated ticket #34407

Context

Reorganized this ticket to separate the required field entry/ARIA work from what's already built, so scope and priority are clear after functionality from a related build was merged into this ticket at the PO's direction.

The date picker in the Directors Effective Date field was missing field entry (opening the calendar while keeping focus on the input) and introduction to ARIA attributes, identified during design review of Components 2.0: Date Picker.

Reference links


Priority 1: Must have

Field entry

  • Click or Tab into the field opens the calendar. Focus stays on the field (not the calendar).

ARIA attributes (Full spec in Field + A11Y Matrix)

Full code samples and rationale are in the ARIA Implementation Guide. Suggest a short walkthrough session rather than a doc read, given how much is packed in here.

  • Input field
  • Calendar popup
  • calendar icon and clear buttons:
  • Error state use aria-describedby pointing to both the format hint and the error message
  • Custom screen reader announcement:
  • Use Vue's useId() for all generated ids (input, popup, hint, error) so nothing collides if the component appears more than once on a page

Priority 2: Already built, needs a style/behaviour check against latest Figma

Figma Design: Components 2.0: Date Pickter

  • Date format: update to Month DD, YYYY (e.g. "January 1, 2026"), matching the format hint already shown below the field
  • Tab focus styling: visible on all interactive controls, calendar prev/next/month-year controls, clear (X) button, calendar icon
  • (X) clear button: shown only once a date is entered/selected; not currently included
  • Calendar icon: confirm activation works via mouse, touch, and keyboard

Deferred / nice to have

  • Accept loose typed date formats (e.g. 2006-01-01, Jan 01 2006, Jan 01, 2006, January 01, 2006, 01/01/2006. Holding this for a later sprint since it conflicts with the open-on-focus sync above until that's stable.

Research: Syncing loose typing with open-on-focus calendar: possible approach

  • Parse on blur/Enter (or after a 300–500ms pause), not on every keystroke
  • Match typed input against accepted formats using a proper parser (date-fns or dayjs support this)
  • Once a full match is found, update the calendar's month/highlighted date; if not matched yet, leave the calendar as-is
  • Focus stays on the input throughout, syncing the calendar and keeping focus put are independent

Flag: 01/01/2006-style formats are ambiguous once day/month differ (03/04 = Mar 4 or Apr 3?). Worth dropping that format or fixing the order and noting it in the format hint.


Accessibility Check

Must meet WCAG 2.1 AA. See the A11Y specs in Figma and the Fieldset Matrix (In Progress).

  • All controls work with a keyboard, in a logical tab order, with visible focus
  • Fields and controls have clear accessible names
  • Hint text and errors are linked to their field with aria-describedby
  • Errors are clear and focus moves to the first error on submit
  • Colour contrast meets WCAG, and colour is not the only way to show errors or status
  • Tested with keyboard only and a screen reader

References (pattern examples, not drop-in code):

Sub-issues

Sub-issues

1 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added theissue type on Jul 9, 2026
  2. changed the title [-]directors editable effective date[/-] [+]UI: Directors editable effective date[/+] on Jul 9, 2026
  3. assigned and unassigned on Jul 10, 2026
  4. eve-git commented on Aug 5, 2026

    @eve-git
    Collaborator

    @liz-govier please test in DEV environment

  5. liz-govier commented on Aug 7, 2026

    @liz-govier
    Collaborator

    UX Assurance Checklist

    Field entry

    • Click/tab into field opens calendar, focus stays on input (not calendar)
    • Calendar closes once date is select, hitting 'esc', or clicking outside of the dialog box
    • Accepts loose date formating (Note: Due to time constraints, the calendar formatting is not yet synchronized. This will be addressed in a future update.)

    Visual

    • Date format = Month DD, YYYY, matches hint text below field
    • Focus styling visible on: input, prev/next, month-year, clear button, calendar icon
    • Clear (X) only shows once date entered
    • Calendar icon works via mouse and keyboard

    Screen reader

    • Announces field as expected when opening calendar
    • Announces month change when navigating (e.g. "Calendar showing November 2024")
    • Announces error message when triggered
    • Calendar icon and clear button both have a clear spoken label

    Tabbing through the calendar (and how to get there from the field)

    • [Tab] into the field opens the calendar right away, focus stays on the field
    • ⬇️ moves from field to calendar dialog
    • In the calendar: [Tab] moves between prev/next, month-year, days
    • [Shif]t+[Tab] moves backward through the same order
    • ⬇️ ⬆️ ⬆️ ➡️ keys move between days in the grid
    • [Enter] or [Space] selects a focused day
    • Escape closes the calendar

    Cross-check

  6. liz-govier commented on Aug 7, 2026

    @liz-govier
    Collaborator

    Hey @eve-git, here are my findings. Let me know if you'd like to meet to go over them!

    • Visual

    • Update field lable to "Enter or Select a Date"

    • (x) and calendar icon should be in action blue (Hex# 1669BB)

    • There is an extra line showing below

    • Calendar buttons are missing keyboard focus state (Figma UI)

    Screenshot 2026-08-07 at 12.12.34 PM.png

    Keyboard Focus State for Calendar
    Screenshot 2026-08-07 at 12.34.30 PM.png


    • Field Button Behaviour: Does not work when I press 'Enter' on my keyboard

    • Calendar Icon: Enter/Space to open

    • (x) button: Enter/Space to clear

    Screenshot 2026-08-07 at 12.51.50 PM.png

    Screenshot 2026-08-07 at 12.55.51 PM.png


    Error: Field Required

    • Error message should include the format hint: "This field is required. Format: Month DD, YYYY (Ex. January 1, 2026)"

    error.png


    Screen Reader Updates

    • Screen Reader should not announce "Adding Director, group" when tabbing into the input field. (This isn’t a blocker, so we can move forward and address it later as part of the upcoming work on individual fields.)

    Screenshot 2026-08-07 at 1.21.47 PM.png

    • SR Guide
      Effective Date is a required text input with a separate calendar button, following the W3C Date Picker Dialog pattern, with one addition: the calendar dialog opens when the user Tabs into the Effective Date field.

    Screen reader announcements will vary depending on the browser and software you're using. The guidance below is meant to confirm nothing is out of the ordinary, not to describe an exact announcement.

    Field:
    Tabbing into field:
    "Enter or Select an Effective Date, required, edit. Format: Month DD, YYYY (eg., January 1, 2026, Jan 1, 2026) or YYYY-MM-DD (e.g., 2026-01-01)”

    Tabbing into a filled field:
    "Effective Date, required, edit text, August 11, 2026. Format: Month DD, YYYY (eg., January 1, 2026, Jan 1, 2026) or YYYY-MM-DD (e.g., 2026-01-01)"

    Required Error:
    "Enter or Select an Effective Date, required, invalid, edit text."

    Invalid Format:
    "[entered value], invalid data, edit text."
    Enter/Space on calendar button: Opens the calendar and moves focus into it.

    Calendar Button:
    Tab to calendar button:
    “Open calendar, button, collapsed, has popup.”

    Enter/Space opens calendar dialog. Focus moves to the selected/current date:
    "Open calendar, dialog, Previous year, button, Choose date, group"

    Clear Date:
    "Clear Date, button"

  7. eve-git commented on Aug 18, 2026

    @eve-git
    Collaborator

    Ready to test in DEV and TEST environment

  8. liz-govier commented on Aug 20, 2026

    @liz-govier
    Collaborator

    @eve-git

    Just a couple of minor things.

    • Field label still needs to be updated. (extra line has been removed and buttons are now blue)

    Screenshot 2026-08-07 at 12.12.34 PM.png


    • Align Alert Icon - Refer to designs

    Screenshot 2026-08-20 at 9.56.32 AM.png


    • Calendar Year & Month buttons: Adjust the line weight of the keyboard focus state. It appears to be approximately 1 px off. All other keyboard focus states look good.
    • Keyboard focus state colour should be # 003366 so its distinguishable from buttons

    Screenshot 2026-08-20 at 10.09.22 AM.png


    When I clear the Effective Date field with my keyboard, it bumps my focus up to the top of the form, instead of staying in that field, which is confusing for keyboard and screen reader users.

    Private Zenhub Video


    • Screen Reader should not announce "Adding Director, group" when tabbing into the input field.

    Screenshot 2026-08-07 at 1.21.47 PM.png

  9. liz-govier commented on Aug 21, 2026

    @liz-govier
    Collaborator

    Update Placeholder text to: Enter or Selected an Effective Date

  10. eve-git commented on Aug 24, 2026

    @eve-git
    Collaborator

    Ready to test in DEV and TEST environment

  11. liz-govier commented on Aug 25, 2026

    @liz-govier
    Collaborator

    @eve-git
    In DEV using this business: https://dev.corps.business.bcregistry.gov.bc.ca/en-CA/correction/BC3000128/3772322

    • Field Button Behaviour: Does not work when I press 'Enter' on my keyboard This was working before, not sure what happen

    • Calendar Icon: Enter/Space to open

    • (x) button: Enter/Space to clear

    Screenshot 2026-08-07 at 12.51.50 PM.png

    Screenshot 2026-08-07 at 12.55.51 PM.png

  12. eve-git commented on Aug 28, 2026

    @eve-git
    Collaborator

    Ready to test in DEV and TEST environment

  13. liz-govier commented on Aug 31, 2026

    @liz-govier
    Collaborator

    Looks great Eve! Moving to RFQA.

    @chdivyareddy This business is ready to use in BCREGTEST1:
    https://dev.corps.business.bcregistry.gov.bc.ca/en-CA/correction/C3000200/3772389

  14. chdivyareddy commented on Sep 2, 2026

    @chdivyareddy
    Collaborator

    Hey @eve-git , When adding a new Director with an effective date, the selected effective date is retained when adding another new Director. Please take a look, thanks!

    Screenshot 2026-09-02 at 8.52.37 AM.png

  15. eve-git commented on Sep 2, 2026

    @eve-git
    Collaborator

    Ready to test in DEV and TEST environments

  16. chdivyareddy commented on Sep 3, 2026

    @chdivyareddy
    Collaborator

    Verified in DEV!

    image.png

    image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions