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

Expose Navigation back button data-event to FW/AAT #540

Open
simondate opened this issue May 16, 2024 · 1 comment
Open

Expose Navigation back button data-event to FW/AAT #540

simondate opened this issue May 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@simondate
Copy link
Member

Subject of the issue/enhancement/features

It's quite common that you may want to make the back button work as a home button instead, for example if you're using the Page Nav component and want this to consistently take you back to the menu.

Currently if you want to make this change (as far as I know), the only way to do this is by duplicating the .hbs file into your theme and changing this value from backButton to homeButton.

It would be really useful if this was exposed to both the Framework and the Authoring Tool, so that the author could change this functionality themselves.

.... Having looked at this button more, I'm not sure what the point of js-nav-home-btn is, as it doesn't seem to do anything as this functionality is handled in this function?

Your environment

  • version (AT/Framework) - FW 5.37.9 AAT 0.11.3
@swashbuck swashbuck added the enhancement New feature or request label May 16, 2024
@oliverfoster
Copy link
Member

oliverfoster commented May 16, 2024

Did you see this extension?

https://github.com/cgkineo/adapt-homeButton

The reason we don't provide a way to flip the event over, is that the rest of that button is marked up as 'back button'.

We could add a home button alongside the back button to the navigation bar but the above extension has been doing a fine job at this task so far.

Could you reference the lines for js-nav-home-btn please?

Ref: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-a-permanent-link-to-a-code-snippet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants