-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking up Datepicker to not_before and needed_by inputs
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.
- Loading branch information
1 parent
4a73e8f
commit 1078aa0
Showing
12 changed files
with
234 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,9 @@ | |
user_name: "Bob", | ||
user_email: "[email protected]", | ||
reason_for_removal: "User has left the organisation", | ||
not_before_date: "31-12-#{next_year}", | ||
not_before_day: "31", | ||
not_before_month: "12", | ||
not_before_year: next_year.to_s, | ||
) | ||
|
||
expect(request).to have_been_made | ||
|
@@ -56,7 +58,9 @@ def user_requests_removal_of_another_user(details) | |
fill_in "Reason for removal", with: details[:reason_for_removal] | ||
end | ||
|
||
fill_in "MUST NOT be removed BEFORE", with: details[:not_before_date] | ||
find("#not-before-day").set(details[:not_before_day]) | ||
find("#not-before-month").set(details[:not_before_month]) | ||
find("#not-before-year").set(details[:not_before_year]) | ||
|
||
user_submits_the_request_successfully | ||
end | ||
|
Oops, something went wrong.