Starting in Bootstrap 4, they've introduced a new button variation which will produce an outlined button instead of a filled one. To apply this look and feel, you need to change up one of the button classes. Let's take a look at the following code for all variations:
<button type="button" class="btn btn-primary-outline">Primary</button> <button type="button" class="btn btn-secondary-outline">Secondary</button> <button type="button" class="btn btn-success-outline">Success</button> <button type="button" class="btn btn-info-outline">Info</button> <button type="button" class="btn btn-warning-outline">Warning</button> <button type="button" class="btn btn-danger-outline">Danger</button>
As you can see, the class names have changed; here's how they map to each button variation:
btn-primary-outlinebtn-secondary-outlinebtn-success-outlinebtn-info-outlinebtn-warning-outlinebtn-danger-outlineBasically, you just need to append -outline to the default button variation class name. Once you do, your buttons should look like this:
