I am currently working on a single-page web application that is still using Bootstrap 3. However, I find that it is becoming quite frustrating in certain areas. My goal is to transition to Bootstrap 4, but not all at once. Instead, I want to start by converting specific parts of the application without disrupting other sections that are still reliant on Bootstrap 3.
Right now, the global application includes Bootstrap 3 CSS. The sections I plan to convert to Bootstrap 4 first are nested within the main application, making it difficult to cleanly separate the two frameworks into distinct hierarchies at this time.
The main issue I am facing is the conflict between selectors if I were to embed both stylesheets concurrently. While there are some makeshift solutions involving manual modification of selectors for one Bootstrap version, I would prefer to avoid such methods unless absolutely necessary.
Is there a practical way to gradually transition an application from Bootstrap 3 to Bootstrap 4? Ideally, I am looking for a method to specify that Bootstrap 4 should only apply to a specific HTML element and its descendants, while Bootstrap 3 continues to be used elsewhere.