Skip to content

feat(ui-pill): new Pill v3 implementation - #2727

Draft
git-nandor wants to merge 5 commits into
masterfrom
INSTUI-5179_new_pill_v3
Draft

git-nandor wants to merge 5 commits into
masterfrom
INSTUI-5179_new_pill_v3

Conversation

@git-nandor

@git-nandor git-nandor commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Split Pill into a frozen v2 (/v11_7, design tokens v1) and a new v3 (/v11_8, /latest), wired into the umbrella and the docs version map
  • Convert Pill v3 to a functional component (useStyleNew)
  • Redesign v3 with the new design tokens: size prop (x-small, small, medium, large), accent colors (stone, sky, orange, aurora, plum, violet, sea), pastel backgrounds and alpha borders in rebrand, auto-sized renderIcon

Merge notes

Test Plan

  • Docs /v11_8/Pill: check the Sizes and Colors examples in canvas, canvas-high-contrast, light and dark against Figma (rebrand: pastel backgrounds, solid error with white text and icon; legacy: white background, colored border, bold text)
  • Text is vertically centered relative to the icon and border at every size
  • RTL toggle: icon and status label order mirror correctly
  • Truncated Pill still shows the Tooltip on hover
  • /v11_7/Pill still renders the old Pill
  • Visual regression small-components: new size row and accent colors

Fixes INSTUI-5179

🤖 Generated with Claude Code

@git-nandor git-nandor self-assigned this Sep 23, 2026
@git-nandor
git-nandor force-pushed the INSTUI-5179_new_pill_v3 branch from a3f4543 to 97644d8 Compare September 23, 2026 14:37
git-nandor and others added 5 commits October 5, 2026 16:43
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Add the missing statusLabel and renderIcon to allowedProps.

Co-Authored-By: Claude <noreply@anthropic.com>
Add a size prop (x-small, small, medium, large) and the accent colors stone, sky, orange,
aurora, plum, violet and sea. InstUI icons in renderIcon are sized to match the Pill.

BREAKING CHANGE: Pill from /latest renders the redesigned v3 styles.

Co-Authored-By: Claude <noreply@anthropic.com>
@git-nandor
git-nandor force-pushed the INSTUI-5179_new_pill_v3 branch from 97644d8 to a33a3c4 Compare October 5, 2026 14:50
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2727/

Built to branch gh-pages at 2026-10-05 14:54 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

Cypress suite: ✅ Passing

Visual diff: ⚠️ Changes detected.

Status Count
Unchanged 86
Changed 13
New 0
Removed 0

Accessibility (axe): ✅ No violations.

📊 View full report — click a screenshot's ⚠ badge to see each violation boxed on the image, with the offending element named and contrast failures shown as color swatches.

Diff images (13)

badge-canvas.png — 1573 pixels differ

colorpicker-canvas.png — 316 pixels differ

colorpicker-dark.png — 5194 pixels differ

colorpicker-light.png — 4906 pixels differ

drilldown-canvas.png — 130 pixels differ

drilldown-dark.png — 1572 pixels differ

drilldown-light.png — 989 pixels differ

small-components-canvas.png — 251970 pixels differ

small-components-dark.png — 298425 pixels differ

small-components-light.png — 271025 pixels differ

tooltip-canvas.png — 65 pixels differ

tooltip-dark.png — 1208 pixels differ

tooltip-light.png — 830 pixels differ

Baselines come from the visual-baselines branch. They refresh on every merge to master. The Cypress suite line covers the a11y and console-error assertions — a ❌ there means the suite found real issues even if the visual diff is clean.

github-actions Bot pushed a commit that referenced this pull request Oct 5, 2026

This branch has not been deployed

No deployments
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.

1 participant