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

Navigation screen: Add support for advanced menu properties #23731

Closed
noisysocks opened this issue Jul 7, 2020 · 8 comments
Closed

Navigation screen: Add support for advanced menu properties #23731

noisysocks opened this issue Jul 7, 2020 · 8 comments
Labels
Backwards Compatibility Issues or PRs that impact backwards compatability [Type] Enhancement A suggestion for improvement.

Comments

@noisysocks
Copy link
Member

The existing nav-menus.php page supports a bunch of advanced menu properties which can be found by enabling them in Screen Options (top right).

Screen Shot 2020-07-07 at 12 32 26

To maintain backwards compatibility, our new Navigation screen will need to support these properties as well.

  • Link Target
    • What it is: The link's target attribute.
    • Does Navigation block support it: Yes, via the Open in new tab checkbox when inserting a link.
    • Action required: None.
  • Title Attribute
    • What it is: The link's title attribute.
    • Does Navigation block support it: No.
    • Action required: Add a freeform text field to the Block Settings for a Link block.
  • CSS Classes
    • What it is: The link's class attribute.
    • Does Navigation block support it: Yes, via the Additional CSS class(es) text field in Block Settings.
    • Action required: Show Block Settings in the Navigation screen.
  • Link Relationship (XFN)
    • What it is: The link's rel attribute.
    • Does Navigation block support it: Partial. We support setting rel="nofollow" via the Add nofollow to link checkbox.
    • Action required:
  • Description
    • What it is: Used in some themes.
    • Does Navigation block support it: Yes, via the Description text box.
    • Action required: Show Block Settings in the Navigation screen.
@noisysocks noisysocks added [Type] Enhancement A suggestion for improvement. Needs Design Needs design efforts. Backwards Compatibility Issues or PRs that impact backwards compatability [Block] Navigation Affects the Navigation Block [Feature] Navigation Screen labels Jul 7, 2020
@noisysocks
Copy link
Member Author

@shaunandrews: Any thoughts on how to show Block Settings in the Navigation screen?

@draganescu draganescu removed the [Block] Navigation Affects the Navigation Block label Jul 14, 2020
@draganescu
Copy link
Contributor

This issue ties in perfectly with adding an inspector in this screen. It's also required for customising the new blocks that can be added to navigation.

@shaunandrews
Copy link
Contributor

I think all of this would be solved by introducing the block settings UI, like outlined in #23934 (comment)

@shaunandrews shaunandrews removed the Needs Design Needs design efforts. label Aug 14, 2020
@noisysocks
Copy link
Member Author

Yep. Moving this to Blocked as it relies on #23934 to be done first.

@noisysocks
Copy link
Member Author

#24669 added Block Settings to the screen. We'll ned to wire up the various controls that Navigation supports, though. Right now setting them does nothing.

@talldan
Copy link
Contributor

talldan commented Aug 26, 2020

At the same time, there are some block inspector options that won't work in the navigation screen.

That mostly seems to be on the nav block itself (Typography, Show submenu indicator icons). I guess there's no plan to support these, so should they be removed?

I think we did the same for some of the toolbar options in the nav block, so it might be fairly straightforward to do the same.

@tellthemachines tellthemachines self-assigned this Aug 26, 2020
@noisysocks
Copy link
Member Author

That mostly seems to be on the nav block itself (Typography, Show submenu indicator icons). I guess there's no plan to support these, so should they be removed?

Yes I think let's remove these, at least for now.

@tellthemachines
Copy link
Contributor

Closing as all the required features have been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backwards Compatibility Issues or PRs that impact backwards compatability [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants