Skip to content

Previous link was incorrect - #8710

Merged
jeherve merged 1 commit into
masterfrom
fix/incorrect-welcome-link
Feb 1, 2018
Merged

jeherve merged 1 commit into
masterfrom
fix/incorrect-welcome-link

Conversation

@richardmuscat

Copy link
Copy Markdown
Contributor

Fix incorrect blog post link

@richardmuscat richardmuscat added the Bug When a feature is broken and / or not performing as intended label Feb 1, 2018
@richardmuscat richardmuscat added this to the 5.8 milestone Feb 1, 2018
@richardmuscat richardmuscat self-assigned this Feb 1, 2018
@richardmuscat
richardmuscat requested a review from a team as a code owner February 1, 2018 15:32
@dereksmart dereksmart added the [Status] Ready to Merge Go ahead, you can push that green button! label Feb 1, 2018

@oskosk oskosk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jeherve jeherve left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 Merging

@jeherve
jeherve merged commit 5d2d63e into master Feb 1, 2018
@jeherve
jeherve deleted the fix/incorrect-welcome-link branch February 1, 2018 19:37
jeherve pushed a commit that referenced this pull request Feb 1, 2018
@jeherve

jeherve commented Feb 1, 2018

Copy link
Copy Markdown
Member

cherry-picked to branch-5.8 in a74f611

@kraftbj kraftbj removed the [Status] Ready to Merge Go ahead, you can push that green button! label Oct 13, 2020
CGastrell added a commit that referenced this pull request May 13, 2026
…okens + hex fallback)

The previous commit switched to --wpds-color-fg-content-success / -error /
-warning / -info, but those are the "ink" tokens used as text on tinted
backgrounds in alerts/badges — they resolve to near-black hexes (e.g.
success = #2900) and are visually indistinguishable from `color: inherit`
for a small dot + label. The Status indicator is a standalone color-coded
element on a plain admin-page background, so it needs the recognizable shade
family — the *-weak tokens:

  success-weak = #8030  ≈ --jp-green-50 (#8710)
  error-weak   = #cc1818  ≈ --jp-red-50   (#d63638)
  warning-weak = #926300  ≈ --jp-yellow-* (warm amber)
  info-weak    = #006bd7  ≈ --jp-blue-*   (link blue)
  neutral-weak = #707070  ≈ --jp-gray-50  (#646970)

In addition, the legacy Jetpack settings dashboard (which hosts the WAF
standalone-mode indicator and the Pro Status panel) does NOT load
`@wordpress/theme/design-tokens.css` at all — so any --wpds-* variable
resolves to empty/initial there, and the indicator falls back to
`color: inherit`. Add a hex fallback inside each var(--wpds-…, #rrggbb) so
the legacy dashboard renders the right shade without depending on the
design-tokens stylesheet being enqueued.

Verified in DevTools on the live dev site:
- /wp-admin/admin.php?page=jetpack-protect#/scan → indicator color now
  rgb(0, 128, 48) (was rgb(0, 41, 0) near-black).
- /wp-admin/admin.php?page=jetpack-protect#/firewall → same.
- /wp-admin/admin.php?page=jetpack (legacy dashboard) → WPDS token
  resolves empty but the #8030 fallback paints correctly.

Also update the @deprecated JSDoc on the Status component to point at the
*-weak tokens and to mention the hex-fallback requirement.
CGastrell added a commit that referenced this pull request May 18, 2026
…okens + hex fallback)

The previous commit switched to --wpds-color-fg-content-success / -error /
-warning / -info, but those are the "ink" tokens used as text on tinted
backgrounds in alerts/badges — they resolve to near-black hexes (e.g.
success = #2900) and are visually indistinguishable from `color: inherit`
for a small dot + label. The Status indicator is a standalone color-coded
element on a plain admin-page background, so it needs the recognizable shade
family — the *-weak tokens:

  success-weak = #8030  ≈ --jp-green-50 (#8710)
  error-weak   = #cc1818  ≈ --jp-red-50   (#d63638)
  warning-weak = #926300  ≈ --jp-yellow-* (warm amber)
  info-weak    = #006bd7  ≈ --jp-blue-*   (link blue)
  neutral-weak = #707070  ≈ --jp-gray-50  (#646970)

In addition, the legacy Jetpack settings dashboard (which hosts the WAF
standalone-mode indicator and the Pro Status panel) does NOT load
`@wordpress/theme/design-tokens.css` at all — so any --wpds-* variable
resolves to empty/initial there, and the indicator falls back to
`color: inherit`. Add a hex fallback inside each var(--wpds-…, #rrggbb) so
the legacy dashboard renders the right shade without depending on the
design-tokens stylesheet being enqueued.

Verified in DevTools on the live dev site:
- /wp-admin/admin.php?page=jetpack-protect#/scan → indicator color now
  rgb(0, 128, 48) (was rgb(0, 41, 0) near-black).
- /wp-admin/admin.php?page=jetpack-protect#/firewall → same.
- /wp-admin/admin.php?page=jetpack (legacy dashboard) → WPDS token
  resolves empty but the #8030 fallback paints correctly.

Also update the @deprecated JSDoc on the Status component to point at the
*-weak tokens and to mention the hex-fallback requirement.
CGastrell added a commit that referenced this pull request May 18, 2026
…#48711)

* Componentry: migrate Status to @wordpress/ui Text in plugin consumers

Part of #48160.

Replace the internal Jetpack Status component (from
@automattic/jetpack-components) with inline JSX using Text from
@wordpress/ui plus a small colour-coded indicator span in the six
consumer sites in plugins/protect and plugins/jetpack:

- protect: AdminSectionHero storybook, firewall hero, scan hero, scan
  history hero -- single Status sites, inline style blocks keep the
  same var(--jp-green-50|gray-50) colour vars, 0.666em indicator,
  font-weight 600, and line-height 1.666 as the wrapper SCSS.
- jetpack: security/waf "Standalone mode" label -- inline style,
  preserves the waf__standalone__mode className.
- jetpack: pro-status renders four different status states; co-locate
  a style.module.scss mirroring the wrapper's status colour map
  (is-active|inactive|error|action|initializing) so the four call
  sites stay terse. Also drop the dead text prop on the legacy
  rewind status site (the original wrapper only ever read "label")
  and fall back to the now-explicit default label per status.

Annotate the Status source in js-packages/components with an
@deprecated JSDoc block (mirroring the Chip -> Badge pattern from
#48162) so external consumers see the guidance without breaking on
upgrade. Implementation, styles, stories, and barrel export are
otherwise unchanged.

* Componentry: address review - design tokens + CSS classes (no inline styles)

- Replace all --jp-* color vars with --wpds-color-fg-content-* design tokens
  (success/error/warning/info/neutral-weak) in pro-status and protect heroes.
- waf.jsx: drop the inline style blocks; move styling under the existing
  .waf__standalone__mode class in _inc/client/security/style.scss.
- Protect heroes: extract a small AdminSectionHero.StatusIndicator helper
  co-located with the existing admin-section-hero module so the four
  consumers (storybook, firewall, scan, scan history) share one CSS source
  instead of duplicating inline style blocks.
- Update the @deprecated JSDoc on the Status component to point at the new
  WPDS tokens so future consumers do not reintroduce --jp-*.

Addresses review comments r3228168471, r3228177952, r3228180635 on PR #48711.

* Componentry: fix Status indicator color regression (use *-weak WPDS tokens + hex fallback)

The previous commit switched to --wpds-color-fg-content-success / -error /
-warning / -info, but those are the "ink" tokens used as text on tinted
backgrounds in alerts/badges — they resolve to near-black hexes (e.g.
success = #2900) and are visually indistinguishable from `color: inherit`
for a small dot + label. The Status indicator is a standalone color-coded
element on a plain admin-page background, so it needs the recognizable shade
family — the *-weak tokens:

  success-weak = #8030  ≈ --jp-green-50 (#8710)
  error-weak   = #cc1818  ≈ --jp-red-50   (#d63638)
  warning-weak = #926300  ≈ --jp-yellow-* (warm amber)
  info-weak    = #006bd7  ≈ --jp-blue-*   (link blue)
  neutral-weak = #707070  ≈ --jp-gray-50  (#646970)

In addition, the legacy Jetpack settings dashboard (which hosts the WAF
standalone-mode indicator and the Pro Status panel) does NOT load
`@wordpress/theme/design-tokens.css` at all — so any --wpds-* variable
resolves to empty/initial there, and the indicator falls back to
`color: inherit`. Add a hex fallback inside each var(--wpds-…, #rrggbb) so
the legacy dashboard renders the right shade without depending on the
design-tokens stylesheet being enqueued.

Verified in DevTools on the live dev site:
- /wp-admin/admin.php?page=jetpack-protect#/scan → indicator color now
  rgb(0, 128, 48) (was rgb(0, 41, 0) near-black).
- /wp-admin/admin.php?page=jetpack-protect#/firewall → same.
- /wp-admin/admin.php?page=jetpack (legacy dashboard) → WPDS token
  resolves empty but the #8030 fallback paints correctly.

Also update the @deprecated JSDoc on the Status component to point at the
*-weak tokens and to mention the hex-fallback requirement.
DevinWalker added a commit that referenced this pull request Oct 20, 2026
… from the design system

- Get started, Continue and Go to My Jetpack take their green from a
  ThemeProvider seeded #8710, the same seed the feature switches use,
  instead of overriding @wordpress/ui's internal --wp-ui-button-* colours.
- The generated disabled pair comes from the background ramp, so the seed
  can't move it (2.7:1). Continue, the only one that shows a disabled state,
  keeps the 4.2:1 pair.
- The finish summary is a Card.Root rendered as a list, with Stack rows.
DevinWalker added a commit that referenced this pull request Oct 20, 2026
… from the design system

- Get started, Continue and Go to My Jetpack take their green from a
  ThemeProvider seeded #8710, the same seed the feature switches use,
  instead of overriding @wordpress/ui's internal --wp-ui-button-* colours.
- The generated disabled pair comes from the background ramp, so the seed
  can't move it (2.7:1). Continue, the only one that shows a disabled state,
  keeps the 4.2:1 pair.
- The finish summary is a Card.Root rendered as a list, with Stack rows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants