Skip to content

Commit

Permalink
fix: hover styles on secondary button inside a button group
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Feb 6, 2023
1 parent 4dbe0ac commit 6b601c2
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-otters-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/circuit-ui': minor
---

fix hover styles on secondary button inside a button group
4 changes: 4 additions & 0 deletions packages/circuit-ui/components/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ const secondaryButtonStyles = ({
${theme.mq.untilKilo} {
margin-right: 0;
margin-top: ${theme.spacings.mega};
&:hover {
background-color: transparent;
border-color: transparent;
}
${tertiaryStyles({ theme, variant: 'tertiary', destructive })}
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ exports[`ButtonGroup should render aligned to the center 1`] = `
.circuit-5[aria-pressed='true'] {
color: #1A368E;
}
.circuit-5:hover {
background-color: transparent;
border-color: transparent;
}
}
<div
Expand Down Expand Up @@ -562,6 +567,11 @@ exports[`ButtonGroup should render aligned to the left 1`] = `
.circuit-5[aria-pressed='true'] {
color: #1A368E;
}
.circuit-5:hover {
background-color: transparent;
border-color: transparent;
}
}
<div
Expand Down Expand Up @@ -863,6 +873,11 @@ exports[`ButtonGroup should render aligned to the right 1`] = `
.circuit-5[aria-pressed='true'] {
color: #1A368E;
}
.circuit-5:hover {
background-color: transparent;
border-color: transparent;
}
}
<div
Expand Down Expand Up @@ -1164,6 +1179,11 @@ exports[`ButtonGroup should render with default styles 1`] = `
.circuit-5[aria-pressed='true'] {
color: #1A368E;
}
.circuit-5:hover {
background-color: transparent;
border-color: transparent;
}
}
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ exports[`NotificationModal styles should render with an SVG 1`] = `
.circuit-16[aria-pressed='true'] {
color: #1A368E;
}
.circuit-16:hover {
background-color: transparent;
border-color: transparent;
}
}
<body
Expand Down Expand Up @@ -963,6 +968,11 @@ exports[`NotificationModal styles should render with default styles 1`] = `
.circuit-15[aria-pressed='true'] {
color: #1A368E;
}
.circuit-15:hover {
background-color: transparent;
border-color: transparent;
}
}
<body
Expand Down Expand Up @@ -1489,6 +1499,11 @@ exports[`NotificationModal styles should render without an image 1`] = `
.circuit-14[aria-pressed='true'] {
color: #1A368E;
}
.circuit-14:hover {
background-color: transparent;
border-color: transparent;
}
}
<body
Expand Down

0 comments on commit 6b601c2

Please sign in to comment.