WordPress 7.1 introduces pseudo state styling (hover, focus, focus-visible, active) for the Button and Navigation Link blocks, configurable via theme.json, Global Styles, and block instance attributes. A new custom states system allows theming of special block states like the current menu item in navigation links, using a dash-prefixed convention in theme.json. Site owners can disable user-facing state editing via the blockStatesEditingEnabled editor setting, while existing saved styles remain unaffected.
2.1K Impressions