I have a page that opens to a search bar with a search button beside it. On hitting the search button, a listing will appear below that section. There's a button at the bottom to submit after selecting from the listing.
With my definition of primary & secondary buttons, the search button is a primary button on the page when it loads. But after the user searches, the submit button would be the primary button. At this point I do not want the search button to be primary as it deviates focus. How should the buttons be assigned in such a scenario?
Also if there's any question/blog/article that explains button uses in such scenarios please direct me to those.