Skip to content

Commit

Permalink
Use functional color variables in ButtonClose
Browse files Browse the repository at this point in the history
  • Loading branch information
VanAnderson committed Mar 2, 2021
1 parent 8f2b4d2 commit 9259750
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-months-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/components': patch
---

Use functional color variables in ButtonClose
4 changes: 2 additions & 2 deletions src/Button/ButtonClose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const StyledButton = styled.button<StyledButtonProps>`
border-radius: ${get('radii.2')};
&:focus {
box-shadow: ${get('buttons.close.shadow.focus')};
box-shadow: ${get('shadows.btn.shadow')};
}
&:active {
color: ${get('buttons.close.color.default')};
color: ${get('colors.btn.text')};
}
${COMMON};
${LAYOUT};
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/Dialog.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Array [
}
.c1:focus {
box-shadow: 0 0 0 3px rgba(3,102,214,0.3);
box-shadow: 0 1px 0 rgba(27,31,35,0.04);
}
.c1:active {
Expand Down

0 comments on commit 9259750

Please sign in to comment.