-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .btn-subtle
variant
#38763
Add .btn-subtle
variant
#38763
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for your contribution!
This PR doesn't fix the issue raised. Maybe we can try to help you with this subject ?
} | ||
} | ||
|
||
@each $color, $value in $theme-colors { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of existing code (See l.148)
@@ -150,6 +150,39 @@ | |||
@include button-outline-variant($value); | |||
} | |||
} | |||
|
|||
@each $color, $value in $theme-colors { | |||
.btn-subtle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless I'm wrong, it seems that you're creating several times .btn-subtle
.
The goal of the issue was to create a button that could change its color and bg-color contextually. I think it's not the code proposed here and it might not be the good way to do it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should I try making a new button ??
should the code be like?
@each $color, $value in $theme-colors {
.btn-tert {
@include button-variant($value, $value);
}
}
I am kinda beginner so please don't mind me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, even if I think that this feature is needed, this might be studied a bit more, I think that this kind of feature might be thought for whole Bootstrap at the same time at a naming and code level.
Let's continue the discussion in the issue, and when everyone agrees on the solution, let's create a PR.
Description
Added "btn-subtle" which will respect the theme, tinting the button as suitable for either dark or light mode. (ISSUE #38748)
Motivation & Context
I've been using btn-light in a number of places to act as a subtle tint. That worked prior to dark mode, but breaks now.
Type of changes
Checklist
npm run lint
)Live previews
Related issues
Closes #38748