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

Add banner with survey link #1154

Merged
merged 8 commits into from
Dec 5, 2022
Merged

Add banner with survey link #1154

merged 8 commits into from
Dec 5, 2022

Conversation

hlashbrooke
Copy link
Collaborator

This PR adds a persistent banner below the primary site navigation that includes a link to the individual learner survey. Fixes #1153

@hlashbrooke hlashbrooke self-assigned this Dec 5, 2022
@hlashbrooke hlashbrooke added this to In Review in Website Development Dec 5, 2022
@hlashbrooke
Copy link
Collaborator Author

hlashbrooke commented Dec 5, 2022

I added a new SCSS file for this and I think I built everything correctly from there, but let me know if not.

@@ -0,0 +1,48 @@
.notice {
Copy link
Contributor

Choose a reason for hiding this comment

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

Most of this came from _locale_notice.scss, only the survey notice style is new

@@ -60,8 +60,8 @@ function update_locale_data() {
* Register style and script assets for later enqueueing.
*/
function register_assets() {
// Locale switcher script.
wp_register_script(
Copy link
Contributor

Choose a reason for hiding this comment

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

This meant the script was never loaded on the frontend

@adamwoodnz
Copy link
Contributor

Screen Shot 2022-12-05 at 4 55 52 PM

Screen Shot 2022-12-05 at 4 54 49 PM

Screen Shot 2022-12-05 at 4 55 02 PM

@hlashbrooke
Copy link
Collaborator Author

This LGTM :shipit:

@adamwoodnz adamwoodnz moved this from In Review to Ready to ship in Website Development Dec 5, 2022
@adamwoodnz adamwoodnz merged commit cf661ef into trunk Dec 5, 2022
Website Development automation moved this from Ready To Ship to Done Dec 5, 2022
@adamwoodnz adamwoodnz deleted the add-survey-banner branch December 5, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants