Files
firefox/python
Anna Yeddi 7374c54201 Bug 1802201 - Make timepicker on datetimepicker panel accessible. r=fluent-reviewers,mconley,Jamie,emilio,flod,desktop-theme-reviewers,tgiles,bolsson
This patch makes the time picker panel accessible by implementing proper ARIA roles and properties, and ensuring the navigation with keyboard and assistive technology is working as expected.

Accessibility improvements:
- Time picker panel uses dialog role with an informative accessible name (when shown alone, as a timepicker)
- Spinbuttons and their increment/decrement controls on the timepicker have accessible names
- All the timepicker's ARIA labels are localized
- L10n files for datetimepickers are merged and migration script provided for the existing datepicker strings
- Datetimepicker dialog markup is adjusted to accommodate both date and time pickers when they are visible together

Interaction improvements:
- Time picker panel respects prefers-reduced-motion preference
- Keyboard focus is managed on the timepicker's initialization and during interaction
- Timepicker handles `Space`/`Enter` and `Escape` keys as expected
- Keyboard events between the date and time picker sections in a combined datetimepicker panel are isolated

Tests are added for time picker panel and `fail-if` expectation is removed from the timepicker mochitest manifest.

Differential Revision: https://phabricator.services.mozilla.com/D167463
2025-10-24 16:29:16 +00:00
..
…
…

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Vendored python modules (use third_party/python instead)
* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243
https://bugzilla.mozilla.org/show_bug.cgi?id=1346025