Repository navigation
fix: match outlined chips' text and close icon to the Chips design - #279
Merged
Merged
Conversation
The design system's Chips component draws every Outline and Outline-White variant with Dark Gray 2 text, at rest and on hover, and sets the close icon 4px from the label with the chip's padding 4px narrower on that side (16/12 at large, 12/8 at the default size). The theme drew Dark Gray 1 text and an 8px gap with 14px (large) or 10px (medium) of padding after the icon. The colour change reaches every outlined and outlinedWhite chip that does not set its own text colour. The margin change reaches only chips with onDelete. Figma: MIT Design System, Chips (node 692:4835). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Summary
Refines chip styling by balancing delete-icon spacing and using a lighter dark-gray text color across outlined and filled chips.
Key Changes
- Adjusts delete-icon margins to maintain consistent four-pixel label spacing.
- Updates outlined and filled chip text and hover colors to
darkGray2.
All Relevant File Changes (click to expand)
- src/components/ThemeProvider/chips.tsx: Refines delete-icon spacing and updates chip text color styling.
💬 Feedback & Commands
Share feedback on my comments with 👍 👎 — I'll stop raising issues you push back on. Think I missed something? Adjust my sensitivity →
5 things I can do →
#optibot review— I'll re-review your latest changes (incremental)#optibot full review— I'll re-review the entire PR from scratch#optibot fix— I'll apply my suggested fixes to your code#optibot compliance— I'll run a compliance check on your changes#optibot release notes— I'll write up release notes for your production release
💡 Tip: I can audit every dependency change before it reaches main — one compromised package can take down your entire system. Try Supply Chain Agent.
|
Pre-release workflow has completed successfully. To update a previously-installed version with yarn up @mitodl/smoot-design@0.0.0-8f8796b |
|
🎉 This PR is included in version 6.39.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
ChristopherChudzicki
added a commit
to mitodl/mit-learn
that referenced
this pull request
Oct 23, 2026
6.39.1 carries mitodl/smoot-design#279: outlined and outlinedWhite chips draw Dark Gray 2 text, and the close icon sits 4px from the label. It also brings #263 (FeedbackDrawer) and #274 (ContactUsLauncher, plus an AiChat input whose accessible name follows a placeholder when one is passed); mit-learn uses neither FeedbackDrawer nor ContactUsLauncher, and passes AiChat no placeholder. ol-components declares smoot as an exact-version peer, so it moves with main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChristopherChudzicki
added a commit
to mitodl/mit-learn
that referenced
this pull request
Oct 23, 2026
6.39.1 is 6.39.0 plus mitodl/smoot-design#279 and nothing else: outlined and outlinedWhite chips draw Dark Gray 2 text, and the close icon sits 4px from the label. ol-components declares smoot as an exact-version peer, so it moves with main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChristopherChudzicki
added a commit
to mitodl/mit-learn
that referenced
this pull request
Oct 23, 2026
…nding chips unchanged (#4136) * Pin the homepage trending chips' hover text to the colour they render On smoot 6.38.0 the hover text on the homepage's trending chips is smoot's outlined/outlinedWhite hover colour, Dark Gray 1: smoot's `.MuiChip-clickable:hover` rule (specificity 0,3,0) outranks TrendingChip's `&:hover` (0,2,0), which is also why its background and border overrides need `!important`. The Dark Gray 2 that TrendingChip declared for outlinedWhite never applied, and Explore All (outlined) declared none. smoot's chips are moving to Dark Gray 2 to match the design system's Chips component, but the homepage's trending pills are a separate design. Setting Dark Gray 1 here with `!important` keeps them as they are on either smoot. Measured on local dev against both smoot 6.38.0 and a build with the chip change: every computed colour, border, background, padding and font on all six chips, at rest and on hover, is identical to today. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Bump smoot-design to 6.39.1 for the outlined chip fix 6.39.1 is 6.39.0 plus mitodl/smoot-design#279 and nothing else: outlined and outlinedWhite chips draw Dark Gray 2 text, and the close icon sits 4px from the label. ol-components declares smoot as an exact-version peer, so it moves with main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
N/A
Description (What does it do?)
Brings the
outlinedandoutlinedWhitechips in line with the design system's Chips component:darkGray2at rest and on hover, where it wasdarkGray1. All 16 Outline and Outline-White variants in the Figma set use Dark Gray 2.This brings smoot in line with Figma rather than changing the design. The page designs that use these chips keep the component's Dark Gray 2 rather than overriding it:
sx), not the colour.Implementation details
colorvalues in the two variants' rest and:hoverrules, plus onedeleteIconmargin (0 -2px 0 8px→0 -4px 0 4px).onDelete, which no mit-learn page uses today.Screenshots (if appropriate):
mit-learn, before (6.38.0) and after (this branch, built locally):
/topics/sub-topic chips, desktop/topics/sub-topic chips, mobileProgram page label

How can this be tested?
smoot has no Chip stories, so this is checked in mit-learn with this build installed:
/topics/: the sub-topic chips' text is darker than on 6.38.0, at rest and on hover, at desktop and mobile widths./programs/program-v1:MITxT+SCM: the label chip above the title is darker.Agent-Run Checks
yarn typecheck,eslintand the repo's prek hooks pass./topics/sub-topic chips (8 of 8) and the program page label (1 of 1) go fromrgb(64, 70, 76)torgb(33, 35, 38), at rest and on hover; borders, fills and sizes unchanged.Additional Context
🤖 Co-authored with Claude Code