Created by: roblevintennis
Description
This is a proof-of-concept so far to enquire on the overall approach and get feedback.
@mdo this is an incomplete PR but I wanted to ask if moving the offending code to only the .btn-#{$color}
section is acceptable and/or not risky. My reasoning is that it appears that --#{$prefix}btn-hover-bg: #{$hover-background};
is only ever going to get defined in a button variant anyway.
Motivation & Context
https://github.com/twbs/bootstrap/issues/37270
Type of changes
-
Bug fix (non-breaking change which fixes an issue)
Checklist
-
I have read the contributing guidelines -
My code follows the code style of the project (using npm run lint
) -
All new and existing tests passed
Live previews
Related issues
Fixes #37270 (closed)