Make WordPress Core

Changeset 57554


Ignore:
Timestamp:
02/07/2024 05:25:33 PM (3 years ago)
Author:
joedolson
Message:

Bundled Theme: Improve focus outline in Twenty Twenty-Four.

Set a global focus outline for block elements in Twenty Twenty-Four to enhance accessibility. Replace the 1px dotted outline previously assigned on the button block.

Props alh0319, poena, beafialho, shailu25.
Fixes #60334.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyfour/theme.json

    r57351 r57554  
    796796                                        "outline": {
    797797                                                "color": "var(--wp--preset--color--contrast)",
    798                                                 "offset": "2px",
    799                                                 "style": "dotted",
    800                                                 "width": "1px"
     798                                                "offset": "2px"
    801799                                        },
    802800                                        "border": {
     
    909907                        "fontWeight": "400",
    910908                        "lineHeight": "1.55"
    911                 }
     909                },
     910                "css": ".wp-site-blocks *:focus{outline-width:2px;outline-style:solid}"
    912911        },
    913912        "templateParts": [
Note: See TracChangeset for help on using the changeset viewer.