Skip to content

Commit 53635d5

Browse files
authored
fix: use relative units for the overflow chip styling (#3794)
1 parent 38a1bb8 commit 53635d5

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

-19 Bytes
Loading
-23 Bytes
Loading

‎packages/multi-select-combo-box/theme/lumo/vaadin-multi-select-combo-box-chip-styles.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ const chip = css`
3636
:host([part~='overflow'])::after {
3737
position: absolute;
3838
content: '';
39-
width: 3px;
40-
height: calc(1.875em - 1px);
41-
border-left: 2px solid;
42-
border-radius: 4px 0 0 4px;
39+
width: 100%;
40+
height: 100%;
41+
border-left: calc(var(--lumo-space-s) / 4) solid;
42+
border-radius: var(--lumo-border-radius-s);
4343
border-color: var(--lumo-contrast-30pct);
4444
}
4545
4646
:host([part~='overflow'])::before {
47-
left: -4px;
47+
left: calc(-1 * var(--lumo-space-s) / 2);
4848
}
4949
5050
:host([part~='overflow'])::after {
51-
left: -8px;
51+
left: calc(-1 * var(--lumo-space-s));
5252
}
5353
5454
:host([part~='overflow-two']) {

‎packages/multi-select-combo-box/theme/material/vaadin-multi-select-combo-box-chip-styles.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ const chip = css`
3333
:host([part~='overflow'])::after {
3434
position: absolute;
3535
content: '';
36-
width: 3px;
37-
height: 20px;
38-
border-left: 2px solid;
39-
border-radius: 4px 0 0 4px;
36+
width: 100%;
37+
height: 100%;
38+
border-left: 0.125rem solid;
39+
border-radius: 0.25rem;
4040
border-color: hsla(214, 53%, 23%, 0.1);
4141
}
4242
4343
:host([part~='overflow'])::before {
44-
left: -4px;
44+
left: -0.25rem;
4545
}
4646
4747
:host([part~='overflow'])::after {
48-
left: -8px;
48+
left: -0.5rem;
4949
}
5050
5151
:host([part~='overflow-two']) {

0 commit comments

Comments
 (0)