diff --git a/src/wp-content/themes/ipsum/DESIGN.md b/src/wp-content/themes/ipsum/DESIGN.md index b37a7a4f43745..f00e8e3b1fa32 100644 --- a/src/wp-content/themes/ipsum/DESIGN.md +++ b/src/wp-content/themes/ipsum/DESIGN.md @@ -30,7 +30,7 @@ How the palettes are built: ### Usage rules - **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. -- **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. +- **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. - **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. - **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. - **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 | `medium` | Medium | Body text, h4, navigation, verse | | `large` | Large | h3 | | `x-large` | X-Large | h2 | -| `2-x-large` | 2X-Large | h1, single post titles, quote marks | +| `xx-large` | 2X-Large | h1, single post titles, quote marks | 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. diff --git a/src/wp-content/themes/ipsum/accessibility.txt b/src/wp-content/themes/ipsum/accessibility.txt new file mode 100644 index 0000000000000..624c1b6a5df96 --- /dev/null +++ b/src/wp-content/themes/ipsum/accessibility.txt @@ -0,0 +1,45 @@ +=== Accessibility Statement === + +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. + +== Quick Information == + +Accessibility audit completed: No + +== Testing Tools and Methodology == + +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). + +Testing includes: + +* Keyboard-only navigation of every template, the navigation overlay, submenus, search and the comment form. +* Checking landmarks, landmark names and heading levels in every template and pattern. +* Checking the color contrast of text and controls in every color style variation. +* Zooming to 400% and checking that content reflows without horizontal scrolling. +* Checking that motion is turned off when the visitor prefers reduced motion. +* Automated checks with browser tools such as axe DevTools and WAVE. + +== Screen Reader Text Class == + +`.screen-reader-text` + +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. + +== Accessibility Features == + +* A skip link to the main content. +* 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. +* Links in text are underlined. +* Named landmarks for repeated navigation and search regions. +* Every color style variation keeps text contrast at 4.5:1 or more. +* Page transitions and the arrival bar on single posts only run when the visitor has not asked for reduced motion. +* Long words and URLs wrap, so pages reflow when zoomed in. +* Decorative characters, such as separators and arrows, are hidden from screen readers. + +== Accessibility Help Contact == + +For assistance with accessibility in WordPress and core themes, contact the accessibility team at [Make WordPress Accessibility](https://make.wordpress.org/accessibility). + +== Where to Report Issues == + +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. diff --git a/src/wp-content/themes/ipsum/functions.php b/src/wp-content/themes/ipsum/functions.php index eab1a8be0e4fa..0df9a374477fd 100644 --- a/src/wp-content/themes/ipsum/functions.php +++ b/src/wp-content/themes/ipsum/functions.php @@ -280,6 +280,9 @@ function ipsum_register_block_styles() { * Outlines the Search button until it is hovered, focused or pressed, when * the global button states take back over. A theme.json css string would * wrap this in :where() and only tie with the global button styles. + * The icon button keeps a transparent border in those states, so it does + * not shrink by 2px under the pointer on hover, which made it flicker. + * The text button already has a border there from theme.json. */ register_block_style( 'core/search', @@ -287,6 +290,10 @@ function ipsum_register_block_styles() { 'name' => 'outline', 'label' => _x( 'Outline', 'Block style label', 'ipsum' ), 'inline_style' => ' + .wp-block-search.is-style-outline .wp-block-search__button.has-icon.wp-element-button { + border: 1px solid transparent; + } + .wp-block-search.is-style-outline .wp-block-search__button.wp-element-button:not(:hover):not(:focus):not(:active) { background-color: var(--wp--preset--color--base); border: 1px dotted var(--wp--preset--color--contrast); diff --git a/src/wp-content/themes/ipsum/patterns/archive-compact.php b/src/wp-content/themes/ipsum/patterns/archive-compact.php index 6003de8242e99..950404f6a2515 100644 --- a/src/wp-content/themes/ipsum/patterns/archive-compact.php +++ b/src/wp-content/themes/ipsum/patterns/archive-compact.php @@ -16,7 +16,7 @@
-
+
@@ -29,7 +29,7 @@
- +
diff --git a/src/wp-content/themes/ipsum/patterns/archive-full.php b/src/wp-content/themes/ipsum/patterns/archive-full.php index bf155d31dc2e2..a57c4636389ae 100644 --- a/src/wp-content/themes/ipsum/patterns/archive-full.php +++ b/src/wp-content/themes/ipsum/patterns/archive-full.php @@ -16,11 +16,11 @@
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/archive-lead.php b/src/wp-content/themes/ipsum/patterns/archive-lead.php index 0147ac78650d7..80e55f8690817 100644 --- a/src/wp-content/themes/ipsum/patterns/archive-lead.php +++ b/src/wp-content/themes/ipsum/patterns/archive-lead.php @@ -23,7 +23,7 @@
-
+
@@ -36,7 +36,7 @@
- +
diff --git a/src/wp-content/themes/ipsum/patterns/archive-standard.php b/src/wp-content/themes/ipsum/patterns/archive-standard.php index fb7d77cb3c7b8..06b3046226bd9 100644 --- a/src/wp-content/themes/ipsum/patterns/archive-standard.php +++ b/src/wp-content/themes/ipsum/patterns/archive-standard.php @@ -16,11 +16,11 @@
-
+
-
+
@@ -33,7 +33,7 @@
- +
diff --git a/src/wp-content/themes/ipsum/patterns/cta-membership.php b/src/wp-content/themes/ipsum/patterns/cta-membership.php index 89b0ea937a1c0..ccb9c86d07af8 100644 --- a/src/wp-content/themes/ipsum/patterns/cta-membership.php +++ b/src/wp-content/themes/ipsum/patterns/cta-membership.php @@ -20,8 +20,8 @@
-
-

+
+

diff --git a/src/wp-content/themes/ipsum/patterns/cta-search.php b/src/wp-content/themes/ipsum/patterns/cta-search.php index 35aca2d15f245..3485141e0e14d 100644 --- a/src/wp-content/themes/ipsum/patterns/cta-search.php +++ b/src/wp-content/themes/ipsum/patterns/cta-search.php @@ -13,8 +13,8 @@ ?>
-
-

+
+

diff --git a/src/wp-content/themes/ipsum/patterns/hero-colophon.php b/src/wp-content/themes/ipsum/patterns/hero-colophon.php index 8a57c7778f12a..47a5c8720c1b7 100644 --- a/src/wp-content/themes/ipsum/patterns/hero-colophon.php +++ b/src/wp-content/themes/ipsum/patterns/hero-colophon.php @@ -18,8 +18,8 @@
-
-

+
+

diff --git a/src/wp-content/themes/ipsum/patterns/hidden-archive-sidebar.php b/src/wp-content/themes/ipsum/patterns/hidden-archive-sidebar.php index e6bea2a02fb26..992cbf0615c7d 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-archive-sidebar.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-archive-sidebar.php @@ -15,7 +15,7 @@
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-index-sidebar.php b/src/wp-content/themes/ipsum/patterns/hidden-index-sidebar.php index 3b1be9f7c61c5..03c304ccc687a 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-index-sidebar.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-index-sidebar.php @@ -19,16 +19,16 @@ -
+
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-index.php b/src/wp-content/themes/ipsum/patterns/hidden-index.php index 734e3e4e6704e..a6d3a58291d78 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-index.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-index.php @@ -22,11 +22,11 @@
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-page-sidebar.php b/src/wp-content/themes/ipsum/patterns/hidden-page-sidebar.php index 278095cffb46d..f7d1d0936b1b3 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-page-sidebar.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-page-sidebar.php @@ -15,13 +15,13 @@
-
+
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-page.php b/src/wp-content/themes/ipsum/patterns/hidden-page.php index 3af59b56ff7f2..ce9dcc18a9cd1 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-page.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-page.php @@ -15,11 +15,11 @@
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-search.php b/src/wp-content/themes/ipsum/patterns/hidden-search.php index 2bb95eb90e4bc..92d15eea21401 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-search.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-search.php @@ -24,7 +24,7 @@
-
+
@@ -37,7 +37,7 @@
- +
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-single-sidebar.php b/src/wp-content/themes/ipsum/patterns/hidden-single-sidebar.php index e50487b0dcc5a..2b491a8ad7cca 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-single-sidebar.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-single-sidebar.php @@ -15,13 +15,13 @@
-
+
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/hidden-single.php b/src/wp-content/themes/ipsum/patterns/hidden-single.php index 8bc6ceca0f5bc..840960146d256 100644 --- a/src/wp-content/themes/ipsum/patterns/hidden-single.php +++ b/src/wp-content/themes/ipsum/patterns/hidden-single.php @@ -15,11 +15,11 @@
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/navigation-overlay.php b/src/wp-content/themes/ipsum/patterns/navigation-overlay.php index 7112d8511d4fc..567bcec0ec30c 100644 --- a/src/wp-content/themes/ipsum/patterns/navigation-overlay.php +++ b/src/wp-content/themes/ipsum/patterns/navigation-overlay.php @@ -31,7 +31,7 @@ -
+
diff --git a/src/wp-content/themes/ipsum/patterns/overlay-contents.php b/src/wp-content/themes/ipsum/patterns/overlay-contents.php index 0d8382868fa12..f2ebb109374a3 100644 --- a/src/wp-content/themes/ipsum/patterns/overlay-contents.php +++ b/src/wp-content/themes/ipsum/patterns/overlay-contents.php @@ -23,7 +23,7 @@ -
+
diff --git a/src/wp-content/themes/ipsum/patterns/page-blog-home.php b/src/wp-content/themes/ipsum/patterns/page-blog-home.php index 40a5e04f3b06d..b952b9589f013 100644 --- a/src/wp-content/themes/ipsum/patterns/page-blog-home.php +++ b/src/wp-content/themes/ipsum/patterns/page-blog-home.php @@ -28,11 +28,11 @@
-
+
-
+
diff --git a/src/wp-content/themes/ipsum/patterns/page-soon.php b/src/wp-content/themes/ipsum/patterns/page-soon.php index 9d0c7c9698b2e..5081d7426df26 100644 --- a/src/wp-content/themes/ipsum/patterns/page-soon.php +++ b/src/wp-content/themes/ipsum/patterns/page-soon.php @@ -17,8 +17,8 @@
-