Skip to content

Rename popup to popover to be more consistent#984

Merged
ije merged 4 commits into
beta-1.3from
mdo/popup-popover
Jul 16, 2026
Merged

Rename popup to popover to be more consistent#984
ije merged 4 commits into
beta-1.3from
mdo/popup-popover

Conversation

@mdo

@mdo mdo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Rename data-marker-popup to data-marker-popover to match popover usage elsewhere. Popup screams ad to me, vs popover as accepted W3C term.

@mdo mdo requested review from ije and necolas July 14, 2026 20:37
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jul 16, 2026 7:56am
pierre-docs-diffshub Ready Ready Preview Jul 16, 2026 7:56am
pierre-docs-trees Ready Ready Preview Jul 16, 2026 7:56am
pierrejs-diff-demo Ready Ready Preview Jul 16, 2026 7:56am

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6cae4cca6b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/diffs/src/editor/editor.css Outdated
min-width: min(180px, var(--popover-available-width));
overflow-wrap: anywhere;
color: var(--diffs-marker-contrast, contrast-color(#fff, #000));
color: var(--diffs-bg);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve readable marker text in light themes

In light themes, and in any browser that does not apply the contrast-color(...) override, this now falls back to --diffs-bg, which is white for pierre-light; warning/info marker backgrounds such as --diffs-warning-light: #d5a910 then render white popover text at very low contrast (about 2.2:1), whereas the old per-severity warning contrast was black. The new contrast test only exercises the dark marker fixture, so light-themed marker popovers can become difficult to read unless the fallback remains severity/theme-aware.

Useful? React with 👍 / 👎.

padding: 8px 12px;
min-width: min(180px, var(--popover-available-width));
overflow-wrap: anywhere;
color: var(--diffs-marker-contrast, contrast-color(#fff, #000));

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.

did you mean for this change?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

fixed in 52b6626

@ije

ije commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

sorry for the bad name 😛

@ije ije left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@blacksmith-sh

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants