Skip to content

Nav block list view - Page List (parent) doesn't provide context that it is locked whereas children do.  #48018

Closed

Description

@getdave

The Page List (parent) doesn't provide context that it is locked whereas children do. This is confusing for assistive tech.

Originally posted by @getdave in #46939 (comment)

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    [Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).
    on Feb 13, 2023
  2. alexstine commented on Feb 27, 2023

    @alexstine
    Contributor

    @getdave or @draganescu Any advice on where to look for adjusting this? I am not sure why page list itself would not identify itself as locked. I think this is a block attribute but wouldn't a locked state get outputted at a fairly global level?

    Thanks.

  3. getdave commented on Feb 27, 2023

    @getdave
    ContributorAuthor

    @alexstine The lock status of the block for the Navigation block list view (only) is accessed here

    const { isLocked, isContentLocked } = useBlockLock( clientId );

    This uses the useBlockLock hook from the @wordpress/block-editor package.

    I hope that helps?

  4. alexstine commented on Feb 27, 2023

    @alexstine
    Contributor

    I am trying to figure out if the issue is with useBlockLock or the block itself. I think it might be the page-list block itself. It seems to not have any templateLock attribute. I do not know how to update blocks at the moment. According to the hook, it does get the rootClientId so I would think it should be able to detect if the parent block is locked.

    Figured I would try to take a quick look at this to see if I could make the release but I think this is currently a bit too much out of scope of my current knowledge. I have never studied the block API.

    Thanks.

  5. draganescu commented on Mar 6, 2023

    @draganescu
    Contributor

    #48723 may remove this issue, or part of it.

  6. scruffian commented on Aug 12, 2026

    @scruffian
    Contributor

    Closing as obsolete. This was filed from the OffCanvasEditor accessibility follow-up work, and the parent audit #46939 was closed after OffCanvasEditor was removed in #50705. This OffCanvasEditor implementation no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions