Skip to content

fix(apollo-vertex): enlarge confidence signal chip hit area - #1387

Merged
ruudandriessen merged 1 commit into
mainfrom
fix/vertex-confidence-chip-target
Oct 16, 2026
Merged

ruudandriessen merged 1 commit into
mainfrom
fix/vertex-confidence-chip-target

Conversation

@ruudandriessen

Copy link
Copy Markdown
Collaborator

What

ConfidenceSignalChip now has an invisible ::after hit area centred on the chip. It is at least 24 x 24px and never smaller than the chip (after:size-full after:min-h-6 after:min-w-6, positioned absolutely, translated to centre). The button gets relative so the pseudo-element anchors to it.

Why

lintapple flagged the interactive chip: the icon-only (min) variant rendered at 18.66 x 14px. That is below lintapple's 15px minimum and the WCAG 2.5.8 24px target size. Expanding the hit area invisibly keeps the visual design and inline layout unchanged.

How verified

  • pnpm lint (oxlint type-aware), pnpm typecheck, pnpm format:check and pnpm test in packages/apollo-vertex all pass.
  • Ran the docs page (/components/confidence-signal) in headless Chromium:
    • min chips: button box is still 18.66 x 14, and ::after is 24 x 24. elementFromPoint 4px above the chip and 2px left of it resolves to the button.
    • med/max chips: ::after matches the chip width and is 24px tall, so the area doesn't grow sideways into neighbours.
    • Focus ring still hugs the visual chip.

Notes

  • The button's own bounding box is unchanged, so a checker that only measures getBoundingClientRect() may still report 18.66 x 14. If lintapple doesn't account for pseudo-element hit areas, the alternative is padding plus a negative margin on the button.
  • In tightly packed layouts with less than about 3px between chips, the expanded areas can overlap. That is fine for the docs usages (gap-4).
  • No changeset: there is no .changeset dir, and vertex releases from conventional commits.

The icon-only chip rendered at 18.66 x 14px, below the WCAG 2.5.8 24px
target size. Add an invisible ::after hit area, centred on the chip, that is
at least 24 x 24px and never smaller than the chip itself. The visual size,
inline layout and focus ring are unchanged.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 11:42
@ruudandriessen
ruudandriessen requested a review from a team as a code owner October 16, 2026 11:42
@github-actions github-actions Bot added size:XS 0-9 changed lines. app:apollo-vertex labels Oct 16, 2026

Copilot AI 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.

🟢 Approval recommended

The focused styling change matches the stated intent, with no unresolved blocking issues.

0 open findings

What changed in this PR

Enlarges the Apollo Vertex confidence signal chip’s clickable area without changing its visual size or inline layout.

Changes:

  • Anchors a centered, invisible pseudo-element to the button.
  • Makes the hit area at least 24 × 24px and no smaller than the chip.
File Description
packages/​apollo-vertex/​registry/​confidence-signal/​confidence-signal-chip.tsx Adds positioning and minimum hit-area styles.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions
github-actions Bot temporarily deployed to preview/apollo-landing October 16, 2026 11:43 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 16, 2026 11:43 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 16, 2026 11:43 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 16, 2026 11:43 Destroyed
@github-actions

Copy link
Copy Markdown
Contributor

Dependency License Review

  • ✅ 1947 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 2 package(s) excluded (see details below)
License distribution
License Packages
MIT 1713
ISC 91
Apache-2.0 56
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 4
MIT-0 3
CC0-1.0 3
MIT OR Apache-2.0 2
(MIT OR Apache-2.0) 2
Unlicense 2
LGPL-3.0-or-later 1
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.3.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage + size by package

Per-package coverage and bundle size on this PR. New-line coverage = of the source lines this PR adds or changes, the % hit by tests.

Package Coverage New-line coverage Packed (gzip) Unpacked vs main
@uipath/apollo-core — — — — —
@uipath/apollo-react — — — — —
@uipath/apollo-ui-icons — — — — —
@uipath/apollo-vertex 68.8% — (2 untracked) 325.9 KB 1.84 MB +60 B
@uipath/apollo-wind — — — — —
@uipath/ap-chat — — — — —

"Coverage" is each package's own coverage.include scope (e.g. apollo-core instruments only scripts/). "Packed"/"Unpacked" come from npm pack --dry-run and only cover built packages — "—" means not measured this run (package not affected / not built). "vs main" is the packed (gzipped) delta against the last successful main build (the package-sizes artifact from the Release workflow); "—" there means no main baseline was available this run. The baseline is main's latest build, not this PR's exact merge-base, so it includes any drift since the branch diverged. Packages with no vitest config are omitted.

@github-actions

Copy link
Copy Markdown
Contributor

Storybook visual diff

✅ No stories are affected by this PR's changes; nothing to compare. Logs

Updated (PT): Oct 16, 2026, 04:50:50 AM

@ruudandriessen
ruudandriessen merged commit 564317f into main Oct 16, 2026
44 of 45 checks passed
@ruudandriessen
ruudandriessen deleted the fix/vertex-confidence-chip-target branch October 16, 2026 12:13

This branch was successfully deployed

No deployments
preview/apollo-docs — e6ec8004 Deployed Oct 16, 2026 by github-actions[bot]
preview/apollo-vertex — e6ec8004 Deployed Oct 16, 2026 by github-actions[bot]
preview/apollo-design — e6ec8004 Deployed Oct 16, 2026 by github-actions[bot]
preview/apollo-landing — e6ec8004 Deployed Oct 16, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants