Fix button start/end slot margins, add reduce-left-padding flag (#26431)

* Fix button start/end slot margins, add reduce-left-padding flag

* Always reduce padding when icons are there

* Revert icon padding changes
This commit is contained in:
Wendelin
2025-08-07 15:05:56 +02:00
committed by GitHub
parent bbd9d8887d
commit d5985dcaaf
10 changed files with 26 additions and 31 deletions

View File

@@ -211,6 +211,13 @@ export class HaButton extends Button {
.button.disabled {
opacity: 1;
}
slot[name="start"]::slotted(*) {
margin-inline-end: 4px;
}
slot[name="end"]::slotted(*) {
margin-inline-start: 4px;
}
`,
];
}