Skip to content

Commit 5033521

Browse files
committed
Bundled Themes: Update Ipsum for 7.2 RC 4.
This updates Ipsum from `d26734ecc1ba178d9c120178ce9d2c48825fc108` to `e68cd9f7ece6ee9e222cef7f19c4e100c05229d4` on its `trunk` branch. A full list of changes included in this commit can be found on GitHub: WordPress/ipsum@d26734e...e68cd9f - Use the bottom margin for the space below featured images (WordPress/ipsum#253) - Keep the outline Search button the same size on hover (WordPress/ipsum#251) - Note the expected transparent text notice for Contrast (WordPress/ipsum#249) - Rename the 2-x-large font size slug to xx-large (WordPress/ipsum#258) - fix(a11y): add the accessibility statement (WordPress/ipsum#256) - Align left-justified layouts to the start edge in RTL (WordPress/ipsum#263) The dotted border fix for the Format Link pattern (WordPress/ipsum#260) appears in the compare above but is not included here. It introduces a block style variation with a new title, so it waits until after the hard string freeze. Developed in: #16230 Follow-up to r65549. Props khushalsains, wildworks, shahjehanwpbrigade, onemaggie, faisalahammad, iamarinoh, mehtadev, awetz583, juanfra, poena, goudarz, joedolson, ashishjii. Fixes #66817. See #66352. git-svn-id: https://develop.svn.wordpress.org/trunk@65838 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e2214ff commit 5033521

24 files changed

Lines changed: 99 additions & 47 deletions

‎src/wp-content/themes/ipsum/DESIGN.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ How the palettes are built:
3030
### Usage rules
3131

3232
- **Use the slugs, never literal colors.** `var(--wp--preset--color--contrast)` in CSS, `var:preset|color|contrast` in block attributes, or `textColor` and `backgroundColor`. A literal hex freezes one variation's look into all the others.
33-
- **Text is Contrast.** Body, headings and links all use it. Hover goes to Strong Contrast. Contrast is translucent in the light palettes, so it only reads as intended on Base or Surface; on any other ground, use Strong Contrast.
33+
- **Text is Contrast.** Body, headings and links all use it. Hover goes to Strong Contrast. Contrast is translucent in the light palettes, so it only reads as intended on Base or Surface; on any other ground, use Strong Contrast. The editor's "Transparent text may be hard for people to read" notice is expected for it; keep the alpha.
3434
- **Links** have a dotted 1px underline. On hover they turn Strong Contrast and lose the underline. Navigation, post title, post navigation and pagination links do the reverse: no underline until hover.
3535
- **Buttons** fill with Contrast, with Base text, and fill with Strong Contrast on hover. Focus and press use Contrast at 85% (`color-mix()`). The Outline style keeps a Contrast border and fills with Surface on hover.
3636
- **Form fields** in Search and the comment form are Base with Contrast text and border. The border turns Strong Contrast on hover. Jetpack form fields get the same border.
@@ -75,7 +75,7 @@ It isn't a preset you can pick. New meta text needs Manrope, Small and weight 60
7575
| `medium` | Medium | Body text, h4, navigation, verse |
7676
| `large` | Large | h3 |
7777
| `x-large` | X-Large | h2 |
78-
| `2-x-large` | 2X-Large | h1, single post titles, quote marks |
78+
| `xx-large` | 2X-Large | h1, single post titles, quote marks |
7979

8080
Small to Large are fixed; X-Large and 2X-Large are fluid, smaller on narrow screens. The sizes are in `theme.json`. Above 2X-Large, the theme uses the Display block style (`is-style-text-display`) or fit text (Hero Epigraph, About Row, the 404 heading, the Footer Centered wordmark). Core's default sizes are off.
8181

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
=== Accessibility Statement ===
2+
3+
Ipsum is built to be usable by as many people as possible, including people who use a keyboard, a screen reader, zoom or other assistive technology. It follows the WordPress accessibility-ready theme guidelines and aims for WCAG 2.2 Level AA. Accessibility is reviewed as part of the normal development work.
4+
5+
== Quick Information ==
6+
7+
Accessibility audit completed: No
8+
9+
== Testing Tools and Methodology ==
10+
11+
Ipsum is tested against the [WordPress accessibility-ready theme guidelines](https://wpaccessibility.org/docs/accessibility-ready/theme-guidelines/), using the [accessibility theme unit test content](https://github.com/wpaccessibility/a11y-theme-unit-test).
12+
13+
Testing includes:
14+
15+
* Keyboard-only navigation of every template, the navigation overlay, submenus, search and the comment form.
16+
* Checking landmarks, landmark names and heading levels in every template and pattern.
17+
* Checking the color contrast of text and controls in every color style variation.
18+
* Zooming to 400% and checking that content reflows without horizontal scrolling.
19+
* Checking that motion is turned off when the visitor prefers reduced motion.
20+
* Automated checks with browser tools such as axe DevTools and WAVE.
21+
22+
== Screen Reader Text Class ==
23+
24+
`.screen-reader-text`
25+
26+
WordPress provides the styles for this class to block themes. Enter `screen-reader-text`, without the leading period, in a block's Advanced > Additional CSS class(es) field to hide the block visually while keeping it available to screen readers.
27+
28+
== Accessibility Features ==
29+
30+
* A skip link to the main content.
31+
* A visible focus outline on every focusable element. Links and most controls use a dotted outline in the text color, so it stays visible in every color style variation, and focused elements are kept clear of the sticky header.
32+
* Links in text are underlined.
33+
* Named landmarks for repeated navigation and search regions.
34+
* Every color style variation keeps text contrast at 4.5:1 or more.
35+
* Page transitions and the arrival bar on single posts only run when the visitor has not asked for reduced motion.
36+
* Long words and URLs wrap, so pages reflow when zoomed in.
37+
* Decorative characters, such as separators and arrows, are hidden from screen readers.
38+
39+
== Accessibility Help Contact ==
40+
41+
For assistance with accessibility in WordPress and core themes, contact the accessibility team at [Make WordPress Accessibility](https://make.wordpress.org/accessibility).
42+
43+
== Where to Report Issues ==
44+
45+
Please report accessibility issues in the [WordPress Core Ticket Tracker](https://core.trac.wordpress.org/newticket), under the Bundled Theme component with the accessibility focus.

‎src/wp-content/themes/ipsum/functions.php‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,20 @@ function ipsum_register_block_styles() {
280280
* Outlines the Search button until it is hovered, focused or pressed, when
281281
* the global button states take back over. A theme.json css string would
282282
* wrap this in :where() and only tie with the global button styles.
283+
* The icon button keeps a transparent border in those states, so it does
284+
* not shrink by 2px under the pointer on hover, which made it flicker.
285+
* The text button already has a border there from theme.json.
283286
*/
284287
register_block_style(
285288
'core/search',
286289
array(
287290
'name' => 'outline',
288291
'label' => _x( 'Outline', 'Block style label', 'ipsum' ),
289292
'inline_style' => '
293+
.wp-block-search.is-style-outline .wp-block-search__button.has-icon.wp-element-button {
294+
border: 1px solid transparent;
295+
}
296+
290297
.wp-block-search.is-style-outline .wp-block-search__button.wp-element-button:not(:hover):not(:focus):not(:active) {
291298
background-color: var(--wp--preset--color--base);
292299
border: 1px dotted var(--wp--preset--color--contrast);

‎src/wp-content/themes/ipsum/patterns/archive-compact.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="wp-block-query"><!-- wp:post-template {"className":"is-style-hover-together","style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default"}} -->
1717
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Wrapper', 'Name of the group wrapping each post in a list', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"},"padding":{"bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
1818
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Title', 'Name of the group holding the post title', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"constrained"}} -->
19-
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"fontSize":"2-x-large"} /-->
19+
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"fontSize":"xx-large"} /-->
2020

2121
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Date and Categories', 'Name of the group holding the post date and categories', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex"}} -->
2222
<div class="wp-block-group"><!-- wp:post-date /-->
@@ -29,7 +29,7 @@
2929
<!-- /wp:group --></div>
3030
<!-- /wp:group -->
3131

32-
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"constrained","justifyContent":"left"}} -->
32+
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"flex","orientation":"vertical"}} -->
3333
<div class="wp-block-group"><!-- wp:post-excerpt {"showMoreOnNewLine":false} /-->
3434

3535
<!-- wp:read-more {"content":"<?php esc_attr_e( 'Read more', 'ipsum' ); ?>\u003cspan aria-hidden=\u0022true\u0022\u003e <?php esc_attr_e( '›', 'ipsum' ); ?>\u003c/span\u003e"} /--></div>

‎src/wp-content/themes/ipsum/patterns/archive-full.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
<div class="wp-block-query alignfull"><!-- wp:post-template {"layout":{"type":"default"}} -->
1717
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Wrapper', 'Name of the group wrapping each post in a list', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|70"},"padding":{"bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
1818
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Featured Image Wrapper', 'Name of the group wrapping the featured image', 'ipsum' ); ?>"},"align":"full","layout":{"type":"constrained"}} -->
19-
<div class="wp-block-group alignfull"><!-- wp:post-featured-image {"isLink":true,"sizeSlug":"large","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|30"}}}} /--></div>
19+
<div class="wp-block-group alignfull"><!-- wp:post-featured-image {"isLink":true,"sizeSlug":"large","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|30"}}}} /--></div>
2020
<!-- /wp:group -->
2121

2222
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Title', 'Name of the group holding the post title', 'ipsum' ); ?>"},"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"constrained"}} -->
23-
<div class="wp-block-group alignfull"><!-- wp:post-title {"isLink":true,"fontSize":"2-x-large"} /-->
23+
<div class="wp-block-group alignfull"><!-- wp:post-title {"isLink":true,"fontSize":"xx-large"} /-->
2424

2525
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Date and Categories', 'Name of the group holding the post date and categories', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex"}} -->
2626
<div class="wp-block-group"><!-- wp:post-date /-->

‎src/wp-content/themes/ipsum/patterns/archive-lead.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="wp-block-query"><!-- wp:post-template {"className":"is-style-hover-together","style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default"}} -->
2424
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Wrapper', 'Name of the group wrapping each post in a list', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"},"padding":{"bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
2525
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Title', 'Name of the group holding the post title', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"constrained"}} -->
26-
<div class="wp-block-group"><!-- wp:post-title {"level":3,"isLink":true,"fontSize":"2-x-large"} /-->
26+
<div class="wp-block-group"><!-- wp:post-title {"level":3,"isLink":true,"fontSize":"xx-large"} /-->
2727

2828
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Date and Categories', 'Name of the group holding the post date and categories', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex"}} -->
2929
<div class="wp-block-group"><!-- wp:post-date /-->
@@ -36,7 +36,7 @@
3636
<!-- /wp:group --></div>
3737
<!-- /wp:group -->
3838

39-
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"constrained","justifyContent":"left"}} -->
39+
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"flex","orientation":"vertical"}} -->
4040
<div class="wp-block-group"><!-- wp:post-excerpt {"showMoreOnNewLine":false} /-->
4141

4242
<!-- wp:read-more {"content":"<?php esc_attr_e( 'Read more', 'ipsum' ); ?>\u003cspan aria-hidden=\u0022true\u0022\u003e <?php esc_attr_e( '›', 'ipsum' ); ?>\u003c/span\u003e"} /--></div>

‎src/wp-content/themes/ipsum/patterns/archive-standard.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
<div class="wp-block-query alignfull"><!-- wp:post-template {"className":"is-style-hover-together","style":{"spacing":{"blockGap":"var:preset|spacing|70"}},"layout":{"type":"default"}} -->
1717
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Wrapper', 'Name of the group wrapping each post in a list', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|60"},"padding":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
1818
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Featured Image Wrapper', 'Name of the group wrapping the featured image', 'ipsum' ); ?>"},"layout":{"type":"default"}} -->
19-
<div class="wp-block-group"><!-- wp:post-featured-image {"isLink":true,"sizeSlug":"large","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|20"}}}} /--></div>
19+
<div class="wp-block-group"><!-- wp:post-featured-image {"isLink":true,"sizeSlug":"large","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|20"}}}} /--></div>
2020
<!-- /wp:group -->
2121

2222
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Title', 'Name of the group holding the post title', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"constrained"}} -->
23-
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"fontSize":"2-x-large"} /-->
23+
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"fontSize":"xx-large"} /-->
2424

2525
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Date and Categories', 'Name of the group holding the post date and categories', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex"}} -->
2626
<div class="wp-block-group"><!-- wp:post-date /-->
@@ -33,7 +33,7 @@
3333
<!-- /wp:group --></div>
3434
<!-- /wp:group -->
3535

36-
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"constrained","justifyContent":"left"}} -->
36+
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"flex","orientation":"vertical"}} -->
3737
<div class="wp-block-group"><!-- wp:post-excerpt {"showMoreOnNewLine":false} /-->
3838

3939
<!-- wp:read-more {"content":"<?php esc_attr_e( 'Read more', 'ipsum' ); ?>\u003cspan aria-hidden=\u0022true\u0022\u003e <?php esc_attr_e( '›', 'ipsum' ); ?>\u003c/span\u003e"} /--></div>

‎src/wp-content/themes/ipsum/patterns/cta-membership.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Copy', 'Name of the membership copy group', 'ipsum' ); ?>"},"layout":{"type":"constrained"}} -->
2222
<div class="wp-block-group"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Title and Paragraph', 'Name of the Title and Paragraph element', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|20"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
23-
<div class="wp-block-group"><!-- wp:heading {"fontSize":"2-x-large"} -->
24-
<h2 class="wp-block-heading has-2-x-large-font-size"><?php esc_html_e( 'Become a friend of the blog', 'ipsum' ); ?></h2>
23+
<div class="wp-block-group"><!-- wp:heading {"fontSize":"xx-large"} -->
24+
<h2 class="wp-block-heading has-xx-large-font-size"><?php esc_html_e( 'Become a friend of the blog', 'ipsum' ); ?></h2>
2525
<!-- /wp:heading -->
2626

2727
<!-- wp:paragraph -->

‎src/wp-content/themes/ipsum/patterns/cta-search.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
?>
1414
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'CTA Search', 'Name of the search call to action group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|50","padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
1515
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'CTA Search Wrapper', 'Name of the group holding the search call to action heading and field', 'ipsum' ); ?>"},"layout":{"type":"default"}} -->
16-
<div class="wp-block-group"><!-- wp:heading {"fontSize":"2-x-large"} -->
17-
<h2 class="wp-block-heading has-2-x-large-font-size"><?php esc_html_e( 'Find the post you half-remember.', 'ipsum' ); ?></h2>
16+
<div class="wp-block-group"><!-- wp:heading {"fontSize":"xx-large"} -->
17+
<h2 class="wp-block-heading has-xx-large-font-size"><?php esc_html_e( 'Find the post you half-remember.', 'ipsum' ); ?></h2>
1818
<!-- /wp:heading -->
1919

2020
<!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'ipsum' ); ?>","showLabel":false,"placeholder":"<?php esc_attr_e( 'A word you remember…', 'ipsum' ); ?>","buttonText":"<?php esc_attr_e( 'Search', 'ipsum' ); ?>","ariaLabel":"<?php echo esc_attr_x( 'Posts', 'Accessible name of the search form', 'ipsum' ); ?>"} /--></div>

‎src/wp-content/themes/ipsum/patterns/hero-colophon.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<div class="wp-block-group has-accent-5-background-color has-background" style="border-radius:10px;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)"><!-- wp:site-logo {"width":80,"style":{"color":{"duotone":"var:preset|duotone|duotone-1"}}} /-->
1919

2020
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Colophon Text', 'Name of the colophon text group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"default"}} -->
21-
<div class="wp-block-group"><!-- wp:heading {"fontSize":"2-x-large"} -->
22-
<h2 class="wp-block-heading has-2-x-large-font-size"><?php echo esc_html__( 'Howdy, I’m Lorem', 'ipsum' ); ?></h2>
21+
<div class="wp-block-group"><!-- wp:heading {"fontSize":"xx-large"} -->
22+
<h2 class="wp-block-heading has-xx-large-font-size"><?php echo esc_html__( 'Howdy, I’m Lorem', 'ipsum' ); ?></h2>
2323
<!-- /wp:heading -->
2424

2525
<!-- wp:paragraph {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}}} -->

0 commit comments

Comments
 (0)