mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
test(chips): fix firefox not supporting :has
PiperOrigin-RevId: 542313215
This commit is contained in:
parent
2cd235dcb4
commit
4cf084faf0
@ -157,6 +157,7 @@
|
||||
.icon {
|
||||
align-self: center;
|
||||
display: flex;
|
||||
fill: currentColor;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,7 @@ export class FilterChip extends MultiActionChip {
|
||||
...super.getContainerClasses(),
|
||||
elevated: this.elevated,
|
||||
selected: this.selected,
|
||||
'has-trailing': this.removable,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,7 @@ export enum State {
|
||||
FOCUS = 'Focus',
|
||||
HOVER = 'Hover',
|
||||
PRESSED = 'Pressed',
|
||||
SELECTED = 'Selected',
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user