Move margin styling from ha-chip to ha-chip-set (#8718)

This commit is contained in:
Donnie 2021-03-25 09:03:47 -07:00 committed by GitHub
parent 6de8b4e35f
commit 343b67fa7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -51,6 +51,10 @@ export class HaChipSet extends LitElement {
static get styles(): CSSResult {
return css`
${unsafeCSS(chipStyles)}
ha-chip {
margin: 4px;
}
`;
}
}

View File

@ -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)