Make WordPress Core

Changeset 58393


Ignore:
Timestamp:
06/12/2024 06:09:10 AM (2 years ago)
Author:
isabel_brison
Message:

Editor: Fix specificity of core block style variations.

Adds styles for default block style variations to core theme.json so they can override core element styles where needed.

Props aaronrobertshaw, isabel_brison.
Follows r58241.
See #61165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.json

    r58328 r58393  
    333333        },
    334334        "styles": {
     335                "blocks": {
     336                        "core/button": {
     337                                "variations": {
     338                                        "outline": {
     339                                                "border": {
     340                                                        "width": "2px",
     341                                                        "style": "solid",
     342                                                        "color": "currentColor"
     343                                                },
     344                                                "color": {
     345                                                        "text": "currentColor",
     346                                                        "gradient": "transparent none"
     347                                                },
     348                                                "spacing": {
     349                                                        "padding": {
     350                                                                "top": "0.667em",
     351                                                                "right": "1.33em",
     352                                                                "bottom": "0.667em",
     353                                                                "left": "1.33em"
     354                                                        }
     355                                                }
     356                                        }
     357                                }
     358                        },
     359                        "core/site-logo": {
     360                                "variations": {
     361                                        "rounded": {
     362                                                "border": {
     363                                                        "radius": "9999px"
     364                                                }
     365                                        }
     366                                }
     367                        }
     368                },
    335369                "elements": {
    336370                        "button": {
Note: See TracChangeset for help on using the changeset viewer.