Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

#65596 closed enhancement (fixed)

Allow configuring viewport values in theme.json

Reported by: isabel_brison Owned by: isabel_brison
Priority: normal Milestone: 7.1
Component: Editor Version:
Severity: normal Keywords: gutenberg-merge has-patch has-unit-tests
Cc: Focuses:

Description

Bringing in the changes from https://github.com/WordPress/gutenberg/pull/79104.

Adds a viewport object to theme.json settings, with two child values: tablet and mobile. These can be set to px, em or rem values.

Change History (2)

This ticket was mentioned in PR #12395 on WordPress/wordpress-develop by @isabel_brison.


5 weeks ago
#1

  • Keywords has-patch has-unit-tests added

Trac ticket: https://core.trac.wordpress.org/ticket/65596

## Use of AI Tools

Changes from https://github.com/WordPress/gutenberg/pull/79104, generated by copilot/gpt-5.3-codex and codex/gpt 5.5.

#2 @isabel_brison
5 weeks ago

  • Owner set to isabel_brison
  • Resolutionfixed
  • Status newclosed

In 62671:

Editor: allow configuring viewport values in theme.json.

Enables a viewport object with tablet and mobile in theme.json settings and applies its values to style state and block visibility media queries.

Props isabel_brison, ramonopoly.
Fixes #65596.

Note: See TracTickets for help on using tickets.