CSS Class to Search and Clear Buttons

Hey TB Community-

Code to apply a CSS class to the search component buttons:

TB.render('component_24', data => data.ele[0].querySelectorAll('button').forEach(button => button.classList.add('btn-sm')));

Hope this helps,
Adam

1 Like

@SafetyUniversity Hi Adam, just wondering why we need this? is it applicable for the new layouts search feature as i noticed some minor issues with it. Please advise.

Can’t apply custom CSS classes to search component buttons.