Я хочу скрыть левую кнопку, когда поле ввода не в фокусе. Правая кнопка уже работает как положено
Код: Выделить всё
Код: Выделить всё
.bf-clear-text-btn {
display: inline-block; // Ensure buttons are visible by default (for demo purposes)
}
.bp3-input-group {
.bp3-input:not(:focus) {
+ .bp3-input-action .bf-clear-text-btn:not(:focus):not(:hover),
.bp3-input-left-container .bf-clear-text-btn:not(:focus):not(:hover) {
display: none;
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... t-in-focus
Мобильная версия