Fan speed tile feature (#15958)

* Move fan speed rules outside fan more info

* Add fan speed tile feature

* Improve select style
This commit is contained in:
Paul Bottein
2023-03-28 17:59:07 +02:00
committed by GitHub
parent a6f9482bf6
commit f2cf598f98
11 changed files with 314 additions and 154 deletions

View File

@@ -205,8 +205,11 @@ export class HaControlSelect extends LitElement {
--control-select-background: var(--disabled-color);
--control-select-background-opacity: 0.2;
--control-select-thickness: 40px;
--control-select-border-radius: 12px;
--control-select-border-radius: 10px;
--control-select-padding: 4px;
--control-select-button-border-radius: calc(
var(--control-select-border-radius) - var(--control-select-padding)
);
--mdc-icon-size: 20px;
height: var(--control-select-thickness);
width: 100%;
@@ -263,9 +266,7 @@ export class HaControlSelect extends LitElement {
display: flex;
align-items: center;
justify-content: center;
border-radius: calc(
var(--control-select-border-radius) - var(--control-select-padding)
);
border-radius: var(--control-select-button-border-radius);
overflow: hidden;
color: var(--primary-text-color);
/* For safari border-radius overflow */