From 9cdd264af112f54948fe07e55096015343ec8a0d Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 1 Dec 2026 11:25:57 +0100 Subject: [PATCH 1/3] Ipsum: Fix the dotted border in RTL for the Format Link pattern. In RTL, the Format Link pattern's link starts on the right, but its dotted rule stayed on the left. The rule now sits at the start of the line in both directions, through a Dotted Rule block style. Synced from https://github.com/WordPress/ipsum/pull/260. See #66888. Co-Authored-By: Claude Opus 5.5 --- src/wp-content/themes/ipsum/DESIGN.md | 1 + src/wp-content/themes/ipsum/patterns/format-link.php | 4 ++-- .../themes/ipsum/styles/blocks/dotted-rule.json | 10 ++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json diff --git a/src/wp-content/themes/ipsum/DESIGN.md b/src/wp-content/themes/ipsum/DESIGN.md index f00e8e3b1fa32..b03f69ee5bbbf 100644 --- a/src/wp-content/themes/ipsum/DESIGN.md +++ b/src/wp-content/themes/ipsum/DESIGN.md @@ -162,6 +162,7 @@ The class is `is-style-` plus the slug. | Style | Class | Blocks | What it does | | --- | --- | --- | --- | | Crop Contents | `is-style-crop-contents` | Group | `overflow: clip` | +| Dotted Rule | `is-style-dotted-rule` | Group | A 1px dotted rule in the text color at the start of the line (left in LTR, right in RTL); Format Link uses it beside the link | | Display | `is-style-text-display` | Heading, Paragraph, Post Title, Site Title, Query Title | A size above 2X-Large that scales with the viewport, line height 1.2 | | Plain on Color | `is-style-plain-on-color` | Quote | Quote Plain with the ❝ in the current text color instead of Border; Text Statement uses it on a Strong Contrast card | | Evening | `is-style-evening` | Code | A black ground with near-white text and border, the same under every variation | diff --git a/src/wp-content/themes/ipsum/patterns/format-link.php b/src/wp-content/themes/ipsum/patterns/format-link.php index 52740694e4330..823a9affb9930 100644 --- a/src/wp-content/themes/ipsum/patterns/format-link.php +++ b/src/wp-content/themes/ipsum/patterns/format-link.php @@ -18,8 +18,8 @@

- -
+ +

diff --git a/src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json b/src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json new file mode 100644 index 0000000000000..a15f201300eab --- /dev/null +++ b/src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 3, + "title": "Dotted Rule", + "slug": "dotted-rule", + "blockTypes": ["core/group"], + "styles": { + "css": "border-inline-start:1px dotted currentcolor;" + } +} From 78bbf9a69bcb314ff7829982406ea7563a92d9d8 Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 1 Dec 2026 11:25:57 +0100 Subject: [PATCH 2/3] Ipsum: Keep the Format Link rule as a class until after 7.2. The Dotted Rule block style from the previous commit adds a translatable title, which can't go in during the 7.2 hard string freeze. The rule is a class in `style.css` again, under the same name, so the pattern doesn't change and the block style can come back after 7.2. Synced from https://github.com/WordPress/ipsum/pull/269. See #66888. Co-Authored-By: Claude Opus 5.5 --- src/wp-content/themes/ipsum/DESIGN.md | 3 ++- src/wp-content/themes/ipsum/style.css | 13 +++++++++++++ .../themes/ipsum/styles/blocks/dotted-rule.json | 10 ---------- 3 files changed, 15 insertions(+), 11 deletions(-) delete mode 100644 src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json diff --git a/src/wp-content/themes/ipsum/DESIGN.md b/src/wp-content/themes/ipsum/DESIGN.md index b03f69ee5bbbf..3d01038d5be8a 100644 --- a/src/wp-content/themes/ipsum/DESIGN.md +++ b/src/wp-content/themes/ipsum/DESIGN.md @@ -162,7 +162,6 @@ The class is `is-style-` plus the slug. | Style | Class | Blocks | What it does | | --- | --- | --- | --- | | Crop Contents | `is-style-crop-contents` | Group | `overflow: clip` | -| Dotted Rule | `is-style-dotted-rule` | Group | A 1px dotted rule in the text color at the start of the line (left in LTR, right in RTL); Format Link uses it beside the link | | Display | `is-style-text-display` | Heading, Paragraph, Post Title, Site Title, Query Title | A size above 2X-Large that scales with the viewport, line height 1.2 | | Plain on Color | `is-style-plain-on-color` | Quote | Quote Plain with the ❝ in the current text color instead of Border; Text Statement uses it on a Strong Contrast card | | Evening | `is-style-evening` | Code | A black ground with near-white text and border, the same under every variation | @@ -246,6 +245,8 @@ Two classes in `style.css` hide a group when a block inside it renders nothing, - **`comments-meta`** goes on the group around the comments link row in post lists. Core renders nothing for the Comments Link block when comments are closed, so the row, with its `·` and call to action, hides with it. - **`author-card`** goes on the author chip in single posts. Core renders nothing for the Author Name block when the post type doesn't support authors, so the card, with its "Written by" byline and avatar, hides with it. +**`is-style-dotted-rule`** draws a 1px dotted rule in the text color at the start of a Group's line: left in LTR, right in RTL. Format Link uses it beside the link. It's named like a block style but isn't registered as one, so it isn't in the Styles panel; add it under Advanced > Additional CSS class(es). + ### The `·` meta separator The separator between meta items is built three ways, on purpose: diff --git a/src/wp-content/themes/ipsum/style.css b/src/wp-content/themes/ipsum/style.css index 1361ecaaac9db..8b443eea58bb3 100644 --- a/src/wp-content/themes/ipsum/style.css +++ b/src/wp-content/themes/ipsum/style.css @@ -171,6 +171,19 @@ footer.wp-block-template-part { border-bottom-color: var(--wp--preset--color--accent-5); } +/* + * Dotted rule: Format Link sets its link off with a rule at the start of the + * line, left in LTR and right in RTL. The border controls only set physical + * sides, so the rule is a logical property here. The class is named like a + * block style so the markup can stay as it is if it becomes one; a registered + * style would add a translatable title, which waits until after the WordPress + * 7.2 string freeze. + * https://github.com/WordPress/ipsum/pull/260 + */ +.wp-block-group.is-style-dotted-rule { + border-inline-start: 1px dotted currentcolor; +} + /* * Author cards: core hides the Author Name block for post types that do not * support authors, but the hand-written "Written by" byline would remain. diff --git a/src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json b/src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json deleted file mode 100644 index a15f201300eab..0000000000000 --- a/src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/theme.json", - "version": 3, - "title": "Dotted Rule", - "slug": "dotted-rule", - "blockTypes": ["core/group"], - "styles": { - "css": "border-inline-start:1px dotted currentcolor;" - } -} From d16b46fa28789070fb747086a696a53fe39226c3 Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 1 Dec 2026 16:11:51 +0100 Subject: [PATCH 3/3] Ipsum: Use left-pointing chevrons in the Events List pattern in RTL. In right-to-left languages, the chevron beside each "Reserve a seat" link pointed back toward the text. A freshly inserted Events List pattern now uses the chevron that follows the reading direction: left in RTL, right in LTR. Synced from https://github.com/WordPress/ipsum/pull/265. See #66888. Co-Authored-By: Claude Fable 5.2 --- src/wp-content/themes/ipsum/patterns/events-list.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-content/themes/ipsum/patterns/events-list.php b/src/wp-content/themes/ipsum/patterns/events-list.php index 2edca39156a89..6b382ac7f4f7d 100644 --- a/src/wp-content/themes/ipsum/patterns/events-list.php +++ b/src/wp-content/themes/ipsum/patterns/events-list.php @@ -10,6 +10,7 @@ * @since Ipsum 1.0 */ +$ipsum_event_chevron = is_rtl() ? 'core/chevron-left-small' : 'core/chevron-right-small'; ?>
@@ -47,7 +48,7 @@

-
+ @@ -75,7 +76,7 @@

- + @@ -103,7 +104,7 @@

- + @@ -131,7 +132,7 @@

- +