Skip to content

Commit

Permalink
Fix box shadow on AvatarPair (#499)
Browse files Browse the repository at this point in the history
* Fix border shadow on AvatarPair children
  • Loading branch information
Josep Martins authored Feb 17, 2023
1 parent 5aec263 commit f731161
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-queens-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': patch
---

Fix bug on AvatarPair box shadow
2 changes: 1 addition & 1 deletion data/colors/vars/component_dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
border: get('border.subtle'),
stackFade: get('scale.gray.6'),
stackFadeMore: get('scale.gray.7'),
childShadow: (theme: any) => `-2px -2px 0 ${get('scale.gray.9')(theme)}`
childShadow: (theme: any) => `0 0 0 2px ${get('scale.gray.9')(theme)}`
},
topicTag: {
border: 'transparent'
Expand Down
2 changes: 1 addition & 1 deletion data/colors/vars/component_light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
border: get('border.subtle'),
stackFade: get('scale.gray.3'),
stackFadeMore: get('scale.gray.2'),
childShadow: (theme: any) => `-2px -2px 0 ${alpha(get('scale.white'), 0.8)(theme)}`
childShadow: (theme: any) => `0 0 0 2px ${alpha(get('scale.white'), 0.8)(theme)}`
},
topicTag: {
border: 'transparent'
Expand Down

0 comments on commit f731161

Please sign in to comment.