mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-06 17:06:35 +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 {
|
static get styles(): CSSResult {
|
||||||
return css`
|
return css`
|
||||||
${unsafeCSS(chipStyles)}
|
${unsafeCSS(chipStyles)}
|
||||||
|
|
||||||
|
ha-chip {
|
||||||
|
margin: 4px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ declare global {
|
|||||||
export class HaChip extends LitElement {
|
export class HaChip extends LitElement {
|
||||||
@property() public index = 0;
|
@property() public index = 0;
|
||||||
|
|
||||||
@property({type: Boolean}) public hasIcon = false;
|
@property({ type: Boolean }) public hasIcon = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
@ -48,7 +48,6 @@ export class HaChip extends LitElement {
|
|||||||
return css`
|
return css`
|
||||||
${unsafeCSS(chipStyles)}
|
${unsafeCSS(chipStyles)}
|
||||||
.mdc-chip {
|
.mdc-chip {
|
||||||
margin: 4px;
|
|
||||||
background-color: var(
|
background-color: var(
|
||||||
--ha-chip-background-color,
|
--ha-chip-background-color,
|
||||||
rgba(var(--rgb-primary-text-color), 0.15)
|
rgba(var(--rgb-primary-text-color), 0.15)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user