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

Fix for positioning of selected builder navigation tab on page load #13636

Merged
merged 11 commits into from May 13, 2024

Conversation

deanhannigan
Copy link
Contributor

Description

The underline on the builder tab navigation would periodically get stuck in the wrong position when the page loaded. This was caused by the header rendering before the fonts had finished loading.

Addresses

  • Adds a font load event to the builder layout. As fonts load, a record is pushed to the builder store.
  • As the fonts prop is updated, the tabs can use it to trigger a re-render and position the underline correctly.

Screenshots

The issue
fonts

Launchcontrol

Ensure the builder tabs redraw as the fonts load, ensuring the current tab is correctly underlined.

Copy link
Collaborator

@Ghrehh Ghrehh left a comment

Choose a reason for hiding this comment

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

LGTM

@shogunpurple shogunpurple merged commit 9c31282 into master May 13, 2024
10 checks passed
@shogunpurple shogunpurple deleted the fix/builder-tabs-underline branch May 13, 2024 16:00
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants