For example, when clicking the search icon, the entire background would turn to rgba(0,0,0,0.25). The search input though, would be 100% opacity top z-index level.
Might you know of a swift way to add an rgba color to the entire background when search input field is focused?
Not quite what I was looking for. I was hoping to make onclick, the entire background becomes black and the only thing visible on website is search input field.