|
3 | 3 | .kbq-button-group { |
4 | 4 | &.kbq-button-group_horizontal { |
5 | 5 | @include groups-mixins.group(':is(.kbq-button, .kbq-button-icon)'); |
| 6 | + |
| 7 | + & > :is(.kbq-button, .kbq-button-icon):not(:last-child, .cdk-keyboard-focused) { |
| 8 | + border-right-color: transparent; |
| 9 | + } |
6 | 10 | } |
7 | 11 |
|
8 | 12 | &.kbq-button-group_vertical { |
9 | 13 | @include groups-mixins.vertical-group(':is(.kbq-button, .kbq-button-icon)'); |
| 14 | + |
| 15 | + & > :is(.kbq-button, .kbq-button-icon):not(:last-child, .cdk-keyboard-focused) { |
| 16 | + border-bottom-color: transparent; |
| 17 | + } |
10 | 18 | } |
11 | 19 |
|
12 | 20 | &:not(:has(> :not(.kbq-contrast-fade.kbq-button_filled))), |
13 | 21 | &:not(:has(> :not(.kbq-contrast.kbq-button_filled))) { |
14 | | - // @TODO tech debt (#DS-4847) |
15 | | - gap: var(--kbq-size-3xs); |
| 22 | + :is(.kbq-button, .kbq-button-icon) { |
| 23 | + background-clip: padding-box !important; |
| 24 | + } |
| 25 | + } |
| 26 | + |
| 27 | + &.kbq-contrast-fade.kbq-button-group-root_filled { |
| 28 | + // internal css variable, so don't prefixed with kbq |
| 29 | + --button-group-divider-color: var(--kbq-line-contrast-fade); |
| 30 | + |
| 31 | + &.kbq-button-group_horizontal { |
| 32 | + :is(.kbq-button, .kbq-button-icon):not(:first-child)::before { |
| 33 | + content: ''; |
| 34 | + position: absolute; |
| 35 | + // offset by -1px because absolute positioning is relative to the padding edge, |
| 36 | + // but the visual junction sits 1px to the left in the transparent border area |
| 37 | + left: calc(-1 * var(--kbq-size-border-width)); |
| 38 | + top: 0; |
| 39 | + bottom: 0; |
| 40 | + width: var(--kbq-size-border-width); |
| 41 | + background: var(--button-group-divider-color); |
| 42 | + } |
| 43 | + } |
| 44 | + |
| 45 | + &.kbq-button-group_vertical { |
| 46 | + :is(.kbq-button, .kbq-button-icon):not(:first-child)::before { |
| 47 | + content: ''; |
| 48 | + position: absolute; |
| 49 | + top: calc(-1 * var(--kbq-size-border-width)); |
| 50 | + left: 0; |
| 51 | + right: 0; |
| 52 | + height: var(--kbq-size-border-width); |
| 53 | + background: var(--button-group-divider-color); |
| 54 | + } |
| 55 | + } |
16 | 56 | } |
17 | 57 | } |
0 commit comments