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

Evergreen banner in addition to announcements banner #1235

Open
1 task
aboydnw opened this issue Oct 31, 2024 · 1 comment
Open
1 task

Evergreen banner in addition to announcements banner #1235

aboydnw opened this issue Oct 31, 2024 · 1 comment

Comments

@aboydnw
Copy link
Contributor

aboydnw commented Oct 31, 2024

Context

earth.gov would like to use the banner component to consistently display the message that it is an official site of the US government, similar to the example from USWDS here.

Acceptance Criteria

  • A banner is shown on earth.gov every time a user visits, with content matching the preview for .gov domains here
@aboydnw
Copy link
Contributor Author

aboydnw commented Nov 6, 2024

There are some UX decisions for us to make here. The main question is that the banner component from USWDS seems to be intended as a permanent banner only speaking to the legitimacy of the website as an official site. We have been using this component as a banner for temporary announcements. The earth.gov team, however, would like the permanent banner stating it is an official site.

I could see a couple options.

Option 1 - Adjust existing component to be announcements banner and add permanent banner

We could implement the permanent banner as-is from USWDS. Then, we could change the styling of the existing banner and label it "announcement banner" or something similar. This would function the same with an expiration date. This announcements banner could stack on top of the permanent banner (if both are turned on), be a different color, and include an "x" or something for the user to close it. Whereas the permanent banner would always remain in place with no way to hide it.

Upside of this is that it's a cleaner implementation of the USWDS banner component and also retains the ability to make announcements. But, potentially confusing UX to have two similarly styled components that function differently. Also, as far as announcements go, it's pretty subtle.

Option 2 - Use existing component with an expiration date way in the future, so it seems permanent

We use the existing component but put a date of 2050 so it never disappears.

Upside being, less development work and no potentially conflicting banners. But we also won't have the dropdown seen in the USWDS component and we won't have the ability to also do a separate announcement. Although, to be fair, only GHGC has used the announcement feature so far.

If we pick this up @dzole0311 then we probably want to make an intentional decision on this with @faustoperez . I wrote this ticket assuming Option 2 just for the sake of speed, but if we see a good solution to Option 1, then I'm okay going that direction too. I just don't think it's worth our time to go too deep designing a solution for this feature right now. So if we don't quickly see a solution, I'd stick to Option 2.

@aboydnw aboydnw changed the title Add evergreen banner for earth.gov Evergreen banner and adjust announcements banner Nov 19, 2024
@aboydnw aboydnw changed the title Evergreen banner and adjust announcements banner Evergreen banner in addition to announcements banner Nov 19, 2024
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

No branches or pull requests

1 participant