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

Update header implementation for upcoming Discourse changes #120

Merged

Conversation

davidtaylorhq
Copy link
Contributor

Checklist:

Closes #116


Discourse will soon be dropping the 'widget' system for rendering its header. This commit switches the theme from the deprecated APIs to the their modern equivalents. As a nice side effect, this also fixes the layout issue of the 'visit the curriculum' button for anonymous users.

More information on the changes can be found at https://meta.discourse.org/t/296544

Before:
SCR-20240411-jvkg
SCR-20240411-jvjh

After:
SCR-20240411-jukh
SCR-20240411-jugs

Discourse will soon be dropping the 'widget' system for rendering its header. This commit switches the theme from the deprecated APIs to the their modern equivalents. As a nice side effect, this also fixes the layout issue of the 'visit the curriculum' button for anonymous users.

More information on the changes can be found at https://meta.discourse.org/t/296544
@davidtaylorhq davidtaylorhq requested a review from a team as a code owner April 11, 2024 09:54
@ShaunSHamilton
Copy link
Member

Thank you for taking the time to update this. I might be incorrectly testing this, but this is what I see:
image

image

The header button is still too far up (on Chrome)

Previously it was being rendered as a button on the right hand side of the header, and then `position:fixed` was used to pull it to the left. This made for some weird rendering quirks. This commit uses a plugin outlet to render it in the correct part of the HTML, which removes the need for the positioning workarounds.
Copy link
Member

@raisedadead raisedadead left a comment

Choose a reason for hiding this comment

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

Thanks @davidtaylorhq!

@raisedadead raisedadead merged commit 9d4b853 into freeCodeCamp:main Apr 12, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

"Visit the Curriculum" nav item is partially hidden
3 participants