Search icon on desktop instead search bar?

I’m trying to use the mobile search icon on desktop (luma child theme). Therefore I was thinking to just change Magento_Search/web/js/form-mini.js from

mediaCheck({ media: '(max-width: 768px)', entry: function () { this.isExpandable = true; }.bind(this), exit: function () { this.isExpandable = true; }.bind(this) }); 

to

mediaCheck({ media: 'all', entry: function () { this.isExpandable = true; }.bind(this), exit: function () { this.isExpandable = true; }.bind(this) }); 

Unfortunately it’s not working. Any idea how to use the mobile search on desktop? Thanks

submitted by /u/hardy123480
[link] [comments]