Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spicy-goats-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/primitives": minor
---

Update `control` knob border-color values
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions src/tokens/functional/color/control.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
},
borderColor: {
rest: {
$value: '{control.borderColor.emphasis}',
$value: '{control.borderColor.rest}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -1292,7 +1292,14 @@
scopes: ['borderColor'],
},
'org.primer.overrides': {
dark: '{control.borderColor.emphasis}',
dark: '{control.borderColor.rest}',
'dark-dimmed-high-contrast': '{control.borderColor.emphasis}',
'light-high-contrast': '{control.borderColor.emphasis}',
'light-tritanopia-high-contrast': '{control.borderColor.emphasis}',
'light-protanopia-deuteranopia-high-contrast': '{control.borderColor.emphasis}',
'dark-high-contrast': '{control.borderColor.emphasis}',
'dark-tritanopia-high-contrast': '{control.borderColor.emphasis}',
'dark-protanopia-deuteranopia-high-contrast': '{control.borderColor.emphasis}',
Comment on lines +1296 to +1302
Copy link
Preview

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

[nitpick] The high contrast theme overrides could be organized alphabetically for better maintainability. Consider grouping light themes first, then dark themes, and within each group sort alphabetically.

Suggested change
'dark-dimmed-high-contrast': '{control.borderColor.emphasis}',
'light-high-contrast': '{control.borderColor.emphasis}',
'light-tritanopia-high-contrast': '{control.borderColor.emphasis}',
'light-protanopia-deuteranopia-high-contrast': '{control.borderColor.emphasis}',
'dark-high-contrast': '{control.borderColor.emphasis}',
'dark-tritanopia-high-contrast': '{control.borderColor.emphasis}',
'dark-protanopia-deuteranopia-high-contrast': '{control.borderColor.emphasis}',
'light-high-contrast': '{control.borderColor.emphasis}',
'light-protanopia-deuteranopia-high-contrast': '{control.borderColor.emphasis}',
'light-tritanopia-high-contrast': '{control.borderColor.emphasis}',
'dark-dimmed-high-contrast': '{control.borderColor.emphasis}',
'dark-high-contrast': '{control.borderColor.emphasis}',
'dark-protanopia-deuteranopia-high-contrast': '{control.borderColor.emphasis}',
'dark-tritanopia-high-contrast': '{control.borderColor.emphasis}',

Copilot uses AI. Check for mistakes.

},
},
},
Expand Down