Make WordPress Core


Ignore:
Timestamp:
12/20/2021 04:48:54 PM (3 years ago)
Author:
jffng
Message:

Twenty Twenty-Two: Sync updates from GitHub for Beta 4.

This commit syncs changes for the default theme from its active development repository to core.

This is a follow up to [52081], [52107], [52164], [52222], [52283], [52335], and [52375]. It updates the theme's font size presets and fixes an issue with query padding.

To view the full set of changes, visit https://github.com/WordPress/twentytwentytwo/compare/623a4d798227a5eb948d0286d3fa779383997649...d6cb56cce4d4789965d05327ec54e48a1be4a171.

Props schlessera, williampatton, hellofromtonya, kjellr.
See #54318.

File:
1 edited

Legend:

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

    r52375 r52392  
    146146            "typography": {
    147147                "font-size": {
    148                     "gigantic": "clamp(3rem, 6vw, 4rem)",
    149                     "colossal": "clamp(4rem, 8vw, 6.25rem)"
     148                    "huge": "clamp(2.25rem, 4vw, 2.75rem)",
     149                    "gigantic": "clamp(2.75rem, 6vw, 3.25rem)",
     150                    "colossal": "clamp(3.25rem, 8vw, 6.25rem)"
    150151                },
    151152                "line-height": {
     
    183184            "fontSizes": [
    184185                {
    185                     "name": "Small",
    186186                    "size": "1rem",
    187187                    "slug": "small"
    188188                },
    189189                {
    190                     "name": "Normal",
    191190                    "size": "1.125rem",
    192                     "slug": "normal"
    193                 },
    194                 {
    195                     "name": "Medium",
     191                    "slug": "medium"
     192                },
     193                {
    196194                    "size": "1.75rem",
    197                     "slug": "medium"
    198                 },
    199                 {
    200                     "name": "Large",
     195                    "slug": "large"
     196                },
     197                {
    201198                    "size": "clamp(1.75rem, 3vw, 2.25rem)",
    202                     "slug": "large"
    203                 },
    204                 {
    205                     "name": "Huge",
    206                     "size": "clamp(2.5rem, 4vw, 3rem)",
    207                     "slug": "huge"
     199                    "slug": "x-large"
    208200                }
    209201            ]
     
    225217                },
    226218                "typography": {
    227                     "fontSize": "var(--wp--preset--typography--font-size--normal)"
     219                    "fontSize": "var(--wp--preset--font-size--medium)"
    228220                }
    229221            },
     
    265257                    "fontFamily": "var(--wp--preset--font-family--system-font)",
    266258                    "lineHeight": "var(--wp--custom--typography--line-height--normal)",
    267                     "fontSize": "var(--wp--preset--font-size--normal)",
     259                    "fontSize": "var(--wp--preset--font-size--medium)",
    268260                    "fontWeight": "normal"
    269261                }
     
    296288                    "fontWeight": "300",
    297289                    "lineHeight": "var(--wp--custom--typography--line-height--tiny)",
    298                     "fontSize": "var(--wp--preset--font-size--huge)"
     290                    "fontSize": "var(--wp--custom--typography--font-size--huge)"
    299291                }
    300292            },
     
    304296                    "fontWeight": "300",
    305297                    "lineHeight": "var(--wp--custom--typography--line-height--tiny)",
    306                     "fontSize": "var(--wp--preset--font-size--large)"
     298                    "fontSize": "var(--wp--preset--font-size--x-large)"
    307299                }
    308300            },
     
    313305                    "textTransform": "uppercase",
    314306                    "lineHeight": "var(--wp--custom--typography--line-height--normal)",
    315                     "fontSize": "var(--wp--preset--font-size--normal)"
     307                    "fontSize": "var(--wp--preset--font-size--medium)"
    316308                }
    317309            },
     
    322314                    "textTransform": "uppercase",
    323315                    "lineHeight": "var(--wp--custom--typography--line-height--normal)",
    324                     "fontSize": "var(--wp--preset--font-size--normal)"
     316                    "fontSize": "var(--wp--preset--font-size--medium)"
    325317                }
    326318            },
     
    337329            "fontFamily": "var(--wp--preset--font-family--system-font)",
    338330            "lineHeight": "var(--wp--custom--typography--line-height--normal)",
    339             "fontSize": "var(--wp--preset--font-size--normal)"
     331            "fontSize": "var(--wp--preset--font-size--medium)"
    340332        }
    341333    },
Note: See TracChangeset for help on using the changeset viewer.