Skip to content

Commit 5e938e2

Browse files
committed
Removed color.__experimentalDuotone from core blocks
1 parent 46e88a4 commit 5e938e2

5 files changed

Lines changed: 36 additions & 10 deletions

File tree

‎docs/reference-guides/core-blocks.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Add a user’s avatar. ([Source](https://github.com/WordPress/gutenberg/tree/tru
3232

3333
- **Name:** core/avatar
3434
- **Category:** theme
35-
- **Supports:** align, color (~~background~~, ~~text~~), interactivity (clientNavigation), spacing (margin, padding), ~~alignWide~~, ~~html~~
35+
- **Supports:** align, color (~~background~~, ~~text~~), interactivity (clientNavigation), filter (duotone), spacing (margin, padding), ~~alignWide~~, ~~html~~
3636
- **Attributes:** isLink, linkTarget, size, userId
3737

3838
## Pattern
@@ -245,7 +245,7 @@ Add an image or video with a text overlay. ([Source](https://github.com/WordPres
245245

246246
- **Name:** core/cover
247247
- **Category:** media
248-
- **Supports:** align, anchor, color (heading, text, ~~background~~, ~~enableContrastChecker~~), dimensions (aspectRatio), interactivity (clientNavigation), layout (~~allowJustification~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
248+
- **Supports:** align, anchor, color (heading, text, ~~background~~, ~~enableContrastChecker~~), dimensions (aspectRatio), filter (duotone), interactivity (clientNavigation), layout (~~allowJustification~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
249249
- **Attributes:** allowedBlocks, alt, backgroundType, contentPosition, customGradient, customOverlayColor, dimRatio, focalPoint, gradient, hasParallax, id, isDark, isRepeated, isUserOverlayColor, minHeight, minHeightUnit, overlayColor, sizeSlug, tagName, templateLock, url, useFeaturedImage
250250

251251
## Details
@@ -549,7 +549,7 @@ Display post author details such as name, avatar, and bio. ([Source](https://git
549549

550550
- **Name:** core/post-author
551551
- **Category:** theme
552-
- **Supports:** color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
552+
- **Supports:** color (background, gradients, link, text), filter (duotone), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
553553
- **Attributes:** avatarSize, byline, isLink, linkTarget, showAvatar, showBio, textAlign
554554

555555
## Author Biography
@@ -847,7 +847,7 @@ Display an image to represent this site. Update this block and the changes apply
847847

848848
- **Name:** core/site-logo
849849
- **Category:** theme
850-
- **Supports:** align, color (~~background~~, ~~text~~), interactivity (clientNavigation), spacing (margin, padding), ~~alignWide~~, ~~html~~
850+
- **Supports:** align, color (~~background~~, ~~text~~), filter (duotone), interactivity (clientNavigation), spacing (margin, padding), ~~alignWide~~, ~~html~~
851851
- **Attributes:** isLink, linkTarget, shouldSyncIcon, width
852852

853853
## Site Tagline

‎packages/block-library/src/avatar/block.json‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,20 @@
4848
},
4949
"color": {
5050
"text": false,
51-
"background": false,
52-
"__experimentalDuotone": "img"
51+
"background": false
52+
},
53+
"filter": {
54+
"duotone": true
5355
},
5456
"interactivity": {
5557
"clientNavigation": true
5658
}
5759
},
5860
"selectors": {
59-
"border": ".wp-block-avatar img"
61+
"border": ".wp-block-avatar img",
62+
"filter": {
63+
"duotone": ".wp-block-avatar img"
64+
}
6065
},
6166
"editorStyle": "wp-block-avatar-editor",
6267
"style": "wp-block-avatar"

‎packages/block-library/src/cover/block.json‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
}
112112
},
113113
"color": {
114-
"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
115114
"heading": true,
116115
"text": true,
117116
"background": false,
@@ -139,6 +138,14 @@
139138
},
140139
"interactivity": {
141140
"clientNavigation": true
141+
},
142+
"filter": {
143+
"duotone": true
144+
}
145+
},
146+
"selectors": {
147+
"filter": {
148+
"duotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background"
142149
}
143150
},
144151
"editorStyle": "wp-block-cover-editor",

‎packages/block-library/src/post-author/block.json‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"color": {
5959
"gradients": true,
6060
"link": true,
61-
"__experimentalDuotone": ".wp-block-post-author__avatar img",
6261
"__experimentalDefaultControls": {
6362
"background": true,
6463
"text": true
@@ -78,6 +77,14 @@
7877
"width": true,
7978
"style": true
8079
}
80+
},
81+
"filter": {
82+
"duotone": true
83+
}
84+
},
85+
"selectors": {
86+
"filter": {
87+
"duotone": ".wp-block-post-author .wp-block-post-author__avatar img"
8188
}
8289
},
8390
"editorStyle": "wp-block-post-author-editor",

‎packages/block-library/src/site-logo/block.json‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"align": true,
3737
"alignWide": false,
3838
"color": {
39-
"__experimentalDuotone": "img, .components-placeholder__illustration, .components-placeholder::before",
4039
"text": false,
4140
"background": false
4241
},
@@ -50,6 +49,9 @@
5049
},
5150
"interactivity": {
5251
"clientNavigation": true
52+
},
53+
"filter": {
54+
"duotone": true
5355
}
5456
},
5557
"styles": [
@@ -60,6 +62,11 @@
6062
},
6163
{ "name": "rounded", "label": "Rounded" }
6264
],
65+
"selectors": {
66+
"filter": {
67+
"duotone": ".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"
68+
}
69+
},
6370
"editorStyle": "wp-block-site-logo-editor",
6471
"style": "wp-block-site-logo"
6572
}

0 commit comments

Comments
 (0)