Hello Dolly: retire legacy per-page #dolly rules (#49285 Phase 4)#49402
Conversation
Remove the two legacy Hello Dolly rules now that WPDS design tokens load on every Jetpack admin page (#48750 build-time for the legacy _inc pages, #49345 runtime for modernized pages): - `.wp-admin #dolly` (admin-static.scss, static #87a6bc) - `.jetpack-pagestyles #dolly` (_main.scss, $gray ~= #a1a1a1) The central `.jetpack-admin-page #dolly` rule (token-based, resolves to #707070) now governs consistently. The legacy rules only competed with it at equal specificity. Their `position: relative` used all-zero offsets (visually identical to static), so removal causes no layout shift; Dolly converges to #707070 with hello.php's default padding, and the central rule's `@media (max-width: 659px) { display: none }` already covers the breakpoint the legacy rules handled. My Jetpack's `p#dolly { display: none }` and JITM adjacency are untouched. Verified live on the dev site: Dashboard #dolly computed color #707070, same top/left/width as baseline (no positioning regression). Part of #49285 (Phase 4).
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
dhasilva
left a comment
There was a problem hiding this comment.
LGTM.
The message is visible on My Jetpack, but it also is visible on trunk, so not a regression.
Part of #49285 (Phase 4 — the final phase).
Proposed changes
Retire the two legacy per-page Hello Dolly rules now that WPDS design tokens load on every Jetpack admin page (build-time for the legacy
_incpages via #48750, runtime for modernized pages via #49345), so the single normalized central rule governs Dolly consistently..wp-admin #dolly—_inc/client/scss/shared/admin-static.scss(static#87a6bc)..jetpack-pagestyles #dolly—_inc/client/scss/shared/_main.scss(SCSS$gray≈#a1a1a1).The central
:global(.jetpack-admin-page #dolly)rule (token-based, resolves to#707070) is left as the sole rule. The three rules all had equal specificity (class + id), so the legacy two only competed with the central one by load order. Theirposition: relativeused all-zero offsets (top/right/left: 0) — visually identical tostatic— so removing them causes no layout shift; the central rule's@media (max-width: 659px) { display: none }already covers the<660pxbreakpoint the legacy rules handled.Net visible effect: Hello Dolly converges to
#707070on the pages where a legacy rule previously won (Settings/Dashboard/Debugger), withhello.php's default padding (5px 10pxvs the legacy10px— Dolly is ~10px shorter). Intended per the tracking issue.Preserved (untouched): My Jetpack's
p#dolly { display: none }(its own package CSS) and JITM adjacency.Related product discussion/links
_inc), Admin UI: ship shared WPDS design-tokens stylesheet on Jetpack admin pages #49345 (runtime tokens stylesheet)Does this pull request change what data or activity we track or use?
No.
Testing instructions
On a Jetpack admin page where Hello Dolly is active (the
hello.phpplugin enabled):<p id="dolly">strip at the top of the content area.#707070(WPDS--wpds-color-fg-content-neutral-weak), governed solely by.jetpack-admin-page #dolly— the.wp-admin #dollyand.jetpack-pagestyles #dollyrules should no longer exist in the loaded CSS.display: none).Verified locally (dev site, with #48750 + #49345 on trunk): Dashboard
#dollycomputedcolor: rgb(112, 112, 112)(#707070),position: static, sametop/left/widthas before — no layout regression; only the two legacy rules removed, central rule governs.Screenshots
Before (legacy rule wins →
#87a6bc):After (central token rule →
#707070):