Bootstrap switches with on-off labels

Apple&rsquo;s iOS, iPadOS and macOS all feature an accessibility option to add labels to switches. This can be helpful for users who may not be able to distinguish between the on and off states of a switch via color alone. It&rsquo;s easy to add this feature to Bootstrap switches using a little CSS. Here&rsquo;s how you can do it. Copy . form-switch . form-check-input :: after { font-size : 0.5…