Make WordPress Core

Ticket #60808: 60808-2.diff

File 60808-2.diff, 590 bytes (added by wildworks, 2 years ago)

Add CSS for focus control to navigation submenu block

  • src/wp-content/themes/twentytwentyfour/theme.json

    diff --git src/wp-content/themes/twentytwentyfour/theme.json src/wp-content/themes/twentytwentyfour/theme.json
    index fe6bd3b606..62c8c0acaf 100644
     
    539539                                        "fontWeight": "500"
    540540                                }
    541541                        },
     542                        "core/navigation-submenu": {
     543                                "css": "&.open-on-click .wp-block-navigation-submenu__toggle[aria-expanded=\"true\"]:focus:not(:focus-visible){outline:none;}"
     544                        },
    542545                        "core/post-author": {
    543546                                "typography": {
    544547                                        "fontSize": "var(--wp--preset--font-size--small)"