Skip to content

only fire offcanvas click if off canvas is open#333

Merged
tonypaulbarker merged 2 commits into3.xfrom
fix/332-off-canvas-click
Aug 12, 2025
Merged

only fire offcanvas click if off canvas is open#333
tonypaulbarker merged 2 commits into3.xfrom
fix/332-off-canvas-click

Conversation

@markconroy
Copy link
Member

Closes #332

What does this change?

At the moment if you click anywhere on the screen on a mobile, it sets the focus to the menu button. This is because we are not checking to only call the close offCanvas function if the offcanvas region is open.

How to test

Visit any microsite page. Reduce the screensize to mobile size. Click somewhere in the body of the page, you'll see they focus goes back to the 'Menu' button.

Checkout this branch, it should be fixed.

How can we measure success?

You can focus inputs on mobile.


Thanks to Big Blue Door for sponsoring my time to work on this.

@markconroy markconroy changed the base branch from 2.x to 3.x August 7, 2025 08:24
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.

Directory search won't receive touch focus on mobile

3 participants