Created by: rabuckley
I was wanting to customise alerts (specifically, removing the border by making it transparent), but I don't want to copy and paste the base (.alert
) component out of the imported file (and also .alert-heading
, .alert-link
, and .alert-dismissible
).
Currently if you import the component file there is no way to not have the component variants added too, and these cannot be customised to the same extent as through direct use of the mixins.
This PR adds the option to enable or disable variants through sass option variables, so you could import alerts but set $enable-alert-variants
to false to only get the base classes. Then you can import your own file using the mixins directly for custom variants.
For consistency, I have added options for:
- Alerts
- Buttons
- Buttons outlines
- Tables
But there may be more that I've missed?
If you're happy with the changes I will add documentation in the options (or component?) page.