mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 13:27:22 +00:00
Move margin styling from ha-chip to ha-chip-set (#8718)
This commit is contained in:
parent
6de8b4e35f
commit
343b67fa7f
@ -51,6 +51,10 @@ export class HaChipSet extends LitElement {
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
${unsafeCSS(chipStyles)}
|
||||
|
||||
ha-chip {
|
||||
margin: 4px;
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ declare global {
|
||||
export class HaChip extends LitElement {
|
||||
@property() public index = 0;
|
||||
|
||||
@property({type: Boolean}) public hasIcon = false;
|
||||
@property({ type: Boolean }) public hasIcon = false;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
@ -48,7 +48,6 @@ export class HaChip extends LitElement {
|
||||
return css`
|
||||
${unsafeCSS(chipStyles)}
|
||||
.mdc-chip {
|
||||
margin: 4px;
|
||||
background-color: var(
|
||||
--ha-chip-background-color,
|
||||
rgba(var(--rgb-primary-text-color), 0.15)
|
||||
|
Loading…
x
Reference in New Issue
Block a user