Fix JSDoc alignment error in color helper function#2743
Open
Copilot wants to merge 15 commits intodevelopmentfrom
Open
Fix JSDoc alignment error in color helper function#2743Copilot wants to merge 15 commits intodevelopmentfrom
Copilot wants to merge 15 commits intodevelopmentfrom
Conversation
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix color slugs not working in Otter Blocks
Resolve color slugs from theme.json in Otter blocks
Feb 16, 2026
Contributor
|
@copilot apply the fix to all blocks that uses attributes for colors. |
…-icons, popup, and flip blocks - circle-counter: Added useColorResolver hook and wrapped color attributes in edit.js and CircularProgressBar component; added color resolution in CSS for backgroundColor, progressColor, and titleColor - countdown: Added color resolution in CSS for backgroundColor, borderColor, valueColor, labelColor, and separatorColor - sharing-icons: Added color resolution in CSS for icon backgroundColor and textColor - popup: Added useColorResolver hook and wrapped color attributes in edit.js; added color resolution in CSS for backgroundColor, closeColor, overlayColor, and borderColor - flip: Added color resolution in CSS for borderColor, frontBackgroundColor, backBackgroundColor, titleColor, and descriptionColor All changes follow the pattern of using useColorResolver() in edit.js and Base_CSS::resolve_color_value() in PHP CSS files to properly handle theme color slugs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… icons, posts, review, progress-bar) Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Author
Applied the color slug resolution fix to all 15 blocks with color attributes: Commits:
Pattern applied:
All blocks now properly resolve theme color slugs from theme.json while remaining backward compatible with hex/rgb/hsl values. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Resolve color slugs from theme.json in Otter blocks
Resolve color slugs from theme.json in all Otter blocks
Feb 16, 2026
Contributor
Bundle Size Diff
|
Contributor
|
Plugin build for 3d2950b is ready 🛎️!
|
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
…functions Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Copilot
AI
changed the title
Resolve color slugs from theme.json in all Otter blocks
Convert color slugs to CSS variables to preserve theme.json connection
Feb 19, 2026
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Copilot
AI
changed the title
Convert color slugs to CSS variables to preserve theme.json connection
Remove leftover color-slug-resolution.md documentation file
Feb 19, 2026
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
Copilot
AI
changed the title
Remove leftover color-slug-resolution.md documentation file
Fix JSDoc alignment error in color helper function
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI linting failed due to misaligned JSDoc tags in
resolveColorValue. The@deprecatedtag must precede parameter declarations per JSDoc/ESLint standards.Changes:
src/blocks/helpers/helper-functions.jsto place@deprecatedbefore@paramBefore:
After:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/2b1d206d81b74ed999023cffd924f862ff2753c8/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/fa4b8d051e278072928e32d817456a7fdb57b6ca/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/f7eb16f2fa4237d5db9e8fed8050239bee17a9bd/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/5b5e3821314f947dd040c70f7992a64eac89025c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/d2421de7cec3274ae622c22c744de9a62c7925af/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/4debf5383d9ade705e0a25121f16c3fecaf433a7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/XppSdh /usr/bin/composer install(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.