Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing DatePicker with Design Systems Date Input components #1415

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

PeterHattyar
Copy link
Contributor

@PeterHattyar PeterHattyar commented Jul 11, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

GitHub Issue: #1421

Replace date picker in the following forms:

“Request a new campaign”

“Remove user”

“Content change request”

“Content advice and help”

in Support app to use Design System date format: https://design-system.service.gov.uk/patterns/dates/ (separate fields for day, month, year). Add relevant validations.

NB: we are not converting the forms to Design System

Why

Date picker arrows in Support app stopped working after the migration to Dart Sass. It’s caused by a known issue in the way Dart Sass handles the icon as Unicode - sass/sass#1395 we were not able to find a workaround. Date picker are not very accessible. When users are filling the dates in the form they normally know them already (and don’t need to pick it by looking at a calendar).

Users see a  symbol instead of an arrow. There’s alt text (Next, Prev). It’s also possible to enter date manually.

Before:
Before
After:
After

Closes #1421

@PeterHattyar PeterHattyar force-pushed the replacing-date-picker branch 2 times, most recently from a261071 to 59ae29c Compare July 21, 2024 18:11
@PeterHattyar PeterHattyar force-pushed the replacing-date-picker branch 2 times, most recently from bcbb4bb to ce25f4c Compare August 1, 2024 12:42
@PeterHattyar PeterHattyar force-pushed the replacing-date-picker branch 2 times, most recently from 49cb85a to 1e9105e Compare August 20, 2024 14:06
@PeterHattyar PeterHattyar changed the title WIP commit Replacing DatePicker with Design Systems Date Input components Aug 28, 2024
@PeterHattyar PeterHattyar marked this pull request as ready for review August 28, 2024 11:45
@PeterHattyar PeterHattyar requested a review from a team September 3, 2024 15:53
It will be used in the forms which have a date input field.
Added modification so the design system elements replacing datepicker
are rendered in the correct relevant style on their respective views.
Date picker arrows in Support app stopped working after the migration to Dart Sass. It’s caused by a known issue in the way Dart Sass handles the icon as Unicode - sass/sass#1395 we were not able to find a workaround. Date picker are not very accessible. When users are filling the dates in the form they normally know them already (and don’t need to pick it by looking at a calendar).

Users see a  symbol instead of an arrow. There’s alt text (Next, Prev). It’s also possible to enter date manually.

This will allow us to drop dependency on jquery-ui-rails.

Due to delivery priorities, we're not converting the entire form into Design System at the moment.
Date picker arrows in Support app stopped working after the migration to Dart Sass. It’s caused by a known issue in the way Dart Sass handles the icon as Unicode - sass/sass#1395 we were not able to find a workaround. Date picker are not very accessible. When users are filling the dates in the form they normally know them already (and don’t need to pick it by looking at a calendar).

Users see a  symbol instead of an arrow. There’s alt text (Next, Prev). It’s also possible to enter date manually.

This will allow us to drop dependency on jquery-ui-rails.

Due to delivery priorities, we're not converting the entire form into Design System at the moment.
@PeterHattyar PeterHattyar merged commit 674fe27 into main Sep 19, 2024
10 checks passed
@PeterHattyar PeterHattyar deleted the replacing-date-picker branch September 19, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Design System date format in Support app
3 participants