-
Notifications
You must be signed in to change notification settings - Fork 70
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
Conditionally display "Location" header on Service Location templates #17414
Comments
@xiongjaneg @mmiddaugh tagging you on this ticket as it is one that of the smaller actionable items to come out of Jordan's design work and might be a good candidate for prioritization |
@thejordanwood Please review and update ticket with finalized mockup, I believe you wanted to move "location" up above phone so it falls beneath facility address. |
@aklausmeier I've updated the ticket with that info and also included a mockup of the new design. |
@mmiddaugh I think there's a good case for this being launch blocking for VBA/VAMC service location. Compare before and after: |
Would help to provide an example service with multiple service locations for testing. |
Example of a Service with 2 service locations where 1 of the service locations meets the criteria:
|
@davidmpickett Are you able to give links to any other active page examples of this bug? I have a review instance up at http://9b38542627c29dcfdb00072ae2240fdc.review.vetsgov-internal/ and will be able to check the effectiveness of the fix quickly against that. |
|
I was able to confirm the first two linked examples locally and updated the pull request. Once I can update my local environment to recreate multiple service locations, then this should be all set to review. |
Rerunning content release on Tugboat so this can be verified |
Hey @maxx1128 noticing some funky spacing on Tugboat when comparing the instances where the Location header is used compared to instances with field_clinic_name Locationfield_clinic_nameLooks like the Location header is missing |
@davidmpickett Those tugboat links aren't working, but I can still update those headers to add the class. |
@davidmpickett I created a draft pull request with the class added, you can see it here: department-of-veterans-affairs/content-build#2020 |
#sitewide-facilities thread with some concerns from Michelle / Amanda about changes here: https://dsva.slack.com/archives/C0FQSS30V/p1713299374411909 @maxx1128 please take a look at that thread for your reference, and Jordan / Dave are tagged there to take a UX-look as well. (edited by @davidmpickett to link to the Slack source of truth) |
@maxx1128 Just for your awareness, I think this looks good except for the spacing issue that Dave pointed out. I'm waiting to approve until I can review the draft pull request you've created to fix this issue. cc: @davidmpickett |
@jilladams While I'm out. Steps to get this closed:
The alternate path of merging contentbuild-2020 to Main
|
@thejordanwood The pull request with the change fixing the spacing issue has a working test environment you can look at here. |
@maxx1128 The spacing is a bit too close together now. Is there any way that it can be the same as the spacing between the Contact information and Behavioral health services headers in this example? Edit: Design System guidance in Figma says spacing above H5 headers should be 22.5 px. We should get as close to this as the VADS ecosystem spacing allows. |
@maxx1128 I spoke to @aklausmeier and we want to make sure that there aren't custom margins being used - that we use the standard margins provided by the DS. That being said can you:
|
The custom 1em margin is actually being added in the vets-website repo, not content-build, which is a little odd, but makes these updates a bit simpler. I have closed the existing pull request, so the Location header stays as it is in production without the 0 margin helper. I've also opened another pull request that removes the custom margin. |
Just want to close the loop on the spacing issues that Jordan and Dave had brought up in a few comments in this ticket. This is a mural of everywhere this Location header work currently has an impact right now, it shows a few issues:
We ideally should always be using DS margins/spacing and not adding custom margins. In this case, we need to look at the margins being added to the wrapping |
Thank you @laflannery! Agree with reviewing spacing as part of the typography updates. |
@laflannery Thanks for that thorough audit! I made a note about reviewing spacing on the Typography Audit. @maxx1128, seems like once you merge your new PR and this is verified on Prod, we'll be good to close this ticket |
User Story or Problem Statement
Currently it is possible for a CMS editor to populate the
field_building_name_number
orfield_wing_floor_or_room_number
fields of Service Location Address without populating thefield_clinic_name
. This can lead to situations where these fields don't have an appropriate header.There is a Drupal ticket which would resolve this issue on the editor side by conditionally requiring this fields, however, having even once that is implemented, it won't immediately fix current instances of that field being missing.
In the design ticket, Jordan has proposed adding the label “Location” when the Name field is left blank and moving it to the top of the Service Location section.
Mockup
A mockup can be seen here. This design can also be found on the Location headers page in the VAMC Master Figma file
Description or Additional Context
VAMC Health Service
VAMC Top Task Page
VBA Facility Service
Steps for Implementation
Acceptance Criteria
field_building_name_number
orfield_wing_floor_or_room_number
are populated butfield_clinic_name
is not, display a header that says "Location" wherefield_clinic_name
would normally be displayedThe text was updated successfully, but these errors were encountered: