Skip to content

Make the navigation block content available when JavaScript is disabled. #69363

@carolinan

Description

@carolinan

Description

Description

I am copying this from a Trac ticket that was opened about the menu in Twenty Twenty-Four:
https://core.trac.wordpress.org/ticket/63031

The reporter's clients needs to browse with JavaScript disabled, but the navigation blocks mobile menu does not work without JavaScript.

I understand that the editors require JavaScript and that the workaround for that is to install the classic editor plugin.
I also recommended the user to change to any theme that is specifically built to work without JavaScript.

But perhaps the navigation block can still be improved to have a noscript fallback.

Expected behaviour

I expect the menu content to be available with reduced functionality.

Actual behaviour

The menu does not open.

Step-by-step reproduction instructions

Place a navigation block with the mobile menu option enabled. Save.
Go to the front of the site.
Disable JavaScript -How you do this will depend on the browser.
Try to open the menu.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] NavigationAffects the Navigation Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions