Skip to content

Commit

Permalink
fix border radius on single button groups
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Oct 26, 2021
1 parent 1381519 commit f91ffb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/button/button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export default css`
* buttons and we style them here instead.
*/
:host(.sl-button-group__button--first) .button {
:host(.sl-button-group__button--first:not(.sl-button-group__button--last)) .button {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
Expand All @@ -607,7 +607,7 @@ export default css`
border-radius: 0;
}
:host(.sl-button-group__button--last) .button {
:host(.sl-button-group__button--last:not(.sl-button-group__button--first)) .button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
Expand Down

0 comments on commit f91ffb6

Please sign in to comment.