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

feat: add <sg-govt-banner-component> to top of public forms #1439

Merged
merged 3 commits into from
May 5, 2021

Conversation

jia1
Copy link
Member

@jia1 jia1 commented Mar 23, 2021

Problem

Closes #969

Before & After Screenshots

BEFORE:
Screenshot 2021-03-23 at 7 23 00 PM

AFTER:
With info banner
Screenshot 2021-04-28 at 11 40 08 AM
Screenshot 2021-04-28 at 11 40 13 AM
Without
Screenshot 2021-04-28 at 11 40 24 AM
Screenshot 2021-04-28 at 11 40 27 AM

Screenshot 2021-04-08 at 6 45 57 PM
Screenshot 2021-04-08 at 6 46 04 PM

Deploy Notes

The indentation of the text A Singapore Government Agency Website looks strange on form pages.

@jia1 jia1 requested a review from karrui March 23, 2021 11:38
@jia1 jia1 self-assigned this Mar 23, 2021
@jia1 jia1 added the contribute free for contributors to pick up label Mar 23, 2021
@karrui
Copy link
Contributor

karrui commented Mar 24, 2021

Have you tested how the SG Govt masthead will look with a banner message? You can simulate a notification banner by adding

IS_GENERAL_MAINTENANCE="some test message"

to the environment key in docker-compose.yml

@karrui karrui requested a review from r00dgirl March 29, 2021 02:13
@r00dgirl
Copy link
Contributor

@karrui @jia1 can we fix the weird indent

@karrui
Copy link
Contributor

karrui commented Apr 7, 2021

@karrui @jia1 can we fix the weird indent

So we change the indent on public form view to fit the current margins of the public form view yes?

Landing page indent do not need to change.

@jia1 will probably just need to add a flag to the to switch to a bigger padding on the public form view.

@jia1
Copy link
Member Author

jia1 commented Apr 8, 2021

@karrui @jia1 can we fix the weird indent

@syan-syan Yes, definitely. Just confirming that you don't want the indent to be there (move the text to the left)? Will post with screenshots once I'm done.

@jia1
Copy link
Member Author

jia1 commented Apr 8, 2021

Have you tested how the SG Govt masthead will look with a banner message? You can simulate a notification banner by adding

IS_GENERAL_MAINTENANCE="some test message"

to the environment key in docker-compose.yml

Only managed to make this work by specifying the variable and value in .env and specifying the variable in docker-compose.yml. I used SITE_BANNER_CONTENT. I've also attached the screenshots of how forms look like with the site banner and govt banner.

It's easier to let the site banner stay on top because it belongs to banner.html which I presume is situated above start-page.html.

@karrui
Copy link
Contributor

karrui commented Apr 9, 2021

It's easier to let the site banner stay on top

May actually be fine, will just need to see if notification banners will block the masthead (when present)!

Couple avenues to try:

  1. You may want to try to shift the masthead to src/public/modules/forms/base/views/submit-form.client.view.html above where the banner-component is situated
  2. Shift banner-component into src/public/modules/forms/base/directiveViews/submit-form.directive.view.html and the govt masthead component into submit-form.client.view.html

so the masthead will always be at the top. Make sure to check if scrolling will hide the masthead (when there are info banners up) or if the padding is off.

@karrui
Copy link
Contributor

karrui commented Apr 27, 2021

As discussed, will pull and update screenshots and double check behaviour

Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, @syan-syan for your UI approval

@karrui karrui assigned r00dgirl and unassigned jia1 Apr 28, 2021
@r00dgirl
Copy link
Contributor

r00dgirl commented May 4, 2021

lgtm!

@karrui karrui changed the title feat: add <sg-govt-banner-component> to forms header view feat: add <sg-govt-banner-component> to top of public forms May 5, 2021
@karrui karrui merged commit 900a1fd into develop May 5, 2021
@karrui karrui deleted the feat/add-govt-banner-to-forms branch May 5, 2021 03:05
@karrui karrui mentioned this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribute free for contributors to pick up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Singapore government agency banner to public forms for legitimacy
3 participants