Adjust filter button
All checks were successful
Build and Deploy / build-and-push (push) Successful in 31s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 31s
This commit is contained in:
@@ -21,8 +21,8 @@ const PREP_TIME_STEP = 5;
|
||||
const PREP_TIME_MIN_GAP = PREP_TIME_STEP;
|
||||
const FILTER_CONTEXTS = {
|
||||
recipes: {
|
||||
anchorShellId: 'recipe-bottom-controls',
|
||||
buttonId: 'recipe-filter-btn',
|
||||
anchorShellId: 'recipe-filter-float-btn',
|
||||
buttonId: 'recipe-filter-float-btn',
|
||||
getState: () => getFilterState(),
|
||||
applyState: (nextState) => applyFilters(nextState),
|
||||
showSlots: true,
|
||||
@@ -408,7 +408,7 @@ function syncPanelCount() {
|
||||
|
||||
if (button) {
|
||||
const highlight = isFilterPanelOpen() || count > 0;
|
||||
const isRecipeGlassButton = buttonId === 'recipe-filter-btn';
|
||||
const isRecipeGlassButton = button.classList.contains('recipe-glass-btn');
|
||||
if (isRecipeGlassButton) {
|
||||
button.style.removeProperty('background');
|
||||
button.style.removeProperty('border-color');
|
||||
|
||||
Reference in New Issue
Block a user