test(chips): fix firefox not supporting :has

PiperOrigin-RevId: 542313215
This commit is contained in:
Elizabeth Mitchell 2023-06-21 11:25:00 -07:00 committed by Copybara-Service
parent 2cd235dcb4
commit 4cf084faf0
5 changed files with 5 additions and 1 deletions

View File

@ -157,6 +157,7 @@
.icon {
align-self: center;
display: flex;
fill: currentColor;
position: relative;
}

View File

@ -33,7 +33,7 @@
width: calc(4 / 3 * var(--_icon-size)); // 24px default
}
:has(.trailing.action) .primary.action {
.has-trailing .primary.action {
padding-inline-end: 0;
}

View File

@ -56,6 +56,7 @@ export class FilterChip extends MultiActionChip {
...super.getContainerClasses(),
elevated: this.elevated,
selected: this.selected,
'has-trailing': this.removable,
};
}

View File

@ -59,6 +59,7 @@ export class InputChip extends MultiActionChip {
// Link chips cannot be disabled
disabled: !this.href && this.disabled,
selected: this.selected,
'has-trailing': true,
};
}

View File

@ -22,6 +22,7 @@ export enum State {
FOCUS = 'Focus',
HOVER = 'Hover',
PRESSED = 'Pressed',
SELECTED = 'Selected',
}
/**