Skip to content

Conversation

@Arkshine
Copy link
Contributor

@Arkshine Arkshine commented Jul 24, 2025

Meta: https://meta.discourse.org/t/dropdown-header/226170/69?u=arkshine

On mobile view, the header dropdown toggle was never implemented, even before #11.
Also, since a header can have a link, both behaviors overlap.

To avoid introducing a behavior change, this PR does the following on mobile view:

  • Adds a toggle only if the header doesn't have a URL defined
  • The caret icon is not displayed if a URL is defined.

This way, the user will not be misled into thinking that the header dropdown can be toggled when it's supposed to redirect to a URL.
Additionally, it would be beneficial to encourage admins not to define a URL for a header with a dropdown, as it's not immediately evident to the user that they can click on it.

Before:
chrome_kOrkLXSl8a

After:
chrome_TJjPYe1U9j

@Arkshine Arkshine force-pushed the toggle-header-dropdown branch from 96c51c1 to eadd537 Compare July 24, 2025 20:30
@Arkshine Arkshine force-pushed the toggle-header-dropdown branch from 1db27dc to 152ae40 Compare July 24, 2025 20:55
@Arkshine Arkshine force-pushed the toggle-header-dropdown branch from 0331e09 to ac025ad Compare July 24, 2025 21:39
@Arkshine Arkshine marked this pull request as ready for review July 25, 2025 02:23
@Arkshine
Copy link
Contributor Author

I'm not sure why the QUnit test times out after 10 minutes in the CI. I have no issue with local. Did I miss something?

image

@angusmcleod angusmcleod merged commit 707425d into paviliondev:main Aug 14, 2025
3 of 4 checks 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.

2 participants