From a71564c07e7e2e468a5ba2fee8d80e710853cf52 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 a43c038b3e5d74a64e56e34f55b0ef7ab2e71edd 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 d39aa21df64b7ac4a52693610a9ce08cddfa00fe Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 1 Dec 2026 11:17:10 +0100 Subject: [PATCH 3/3] Bundled Themes: Add a Dotted Rule block style to Ipsum. The rule beside the link in the Format Link pattern becomes a Group block style, so it can be turned on and off from the Styles panel. It keeps the is-style-dotted-rule class, so the pattern and posts made with it don't change. 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, 11 insertions(+), 15 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 3d01038d5be8a..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 | @@ -245,8 +246,6 @@ 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 8b443eea58bb3..1361ecaaac9db 100644 --- a/src/wp-content/themes/ipsum/style.css +++ b/src/wp-content/themes/ipsum/style.css @@ -171,19 +171,6 @@ 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 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;" + } +}