Skip to content

Navigation links incorrectly underlined in editor #42766

Closed

Description

@Andrew-Starr

Description

In the editor, navigation links are always underlined, even when the text decoration is set to not be underlined.

In the front end all is OK. The issue is only present in the editor with Gutenberg active.
With Gutenberg inactive, all is OK.

Step-by-step reproduction instructions

  1. add a Navigation block with some menu items, or edit a post/page/template/part already containing a Navigation block.
  2. Make sure the Decoration option is not set to Underline.
  3. Notice the menu item links are always underlined.
  4. Switch to front end view and notice the links are correctly not underlined.

Screenshots, screen recording, code snippet

No response

Environment info

6.0.1 with Gutenberg 13.7.3

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

Activity

  1. apeatling commented on Aug 30, 2022

    @apeatling
    Contributor

    Confirmed this is an issue.

    If you select the underline decoration setting, it's not possible to toggle it off again unless you remove the Decoration option and re-add it.

    Edit: It looks like this is the expected behaviour, which is confusing because you'd expect to be able to toggle underline on and off in this UI. The toggle group control usage here strikes me as strange as you don't naturally think of underline/line-through options as something you toggle between.

  2. added
    [Type] BugAn existing feature does not function as intended
    and removed
    Needs TestingNeeds further testing to be confirmed.
    on Aug 30, 2022
  3. mrfoxtalbot commented on Oct 25, 2022

    @mrfoxtalbot

    I can confirm this is still happening (WP 6.0.3 / Plugin 14.3.1) using Twenty Twenty-Two

    Screen Shot on 2022-10-25 at 10:51:01

    I did a test with Twenty Twenty-Three and it seems to be working as expected there.
    Screen Shot on 2022-10-25 at 10:55:03

    I also tested this on other FSE themes and it works correctly on some of them ("Sparkle FSE" for instance).

    Taking into account all of the above, I would say that this is a defect with Twenty Twenty-Two itself. I have moved this to Trac: https://core.trac.wordpress.org/ticket/56904

  4. added
    [Type] WP Core TicketRequires an upstream change from WordPress. Core Trac ticket should be linked.
    [Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.
    on Oct 25, 2022
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[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.[Type] BugAn existing feature does not function as intended[Type] WP Core TicketRequires an upstream change from WordPress. Core Trac ticket should be linked.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions