You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@andresgalante Thank you for leaving it open. The issue is very frustrating. Right now, I have to hack and override alert colors with !important rules. This gets very messy... we should be able to control the color level we want with variables.
Having the automated feature to produce colors with functions is definitely great, but it should be something we can turn off.
No, it's different from past approaches in Bootstrap, but it does match v4's theming system.
I don't know if @danijelGombac's approach is best, but I wouldn't mind seeing a demo or PR to explore it more. Alternatively, we can provide variables for the theme-color-level for each mixin parameter:
Having a separate variable for each alert background would probably been better in my opinion. I guess having the ability to control $alert-bg-levels might be the way to go about it.
Activity
andresgalante commentedon Oct 12, 2017
Hi @myorangeca I see what you mean, that mixin is using this function:
https://github.com/twbs/bootstrap/blob/v4-dev/scss/_functions.scss#L80-L86
Which was improved recently on this PR: #24074
@mdo closed issue #23894 where you bring up the same subject. I'll leave this one open in case he wants to reconsider.
myplaneticket commentedon Oct 12, 2017
@andresgalante Thank you for leaving it open. The issue is very frustrating. Right now, I have to hack and override alert colors with !important rules. This gets very messy... we should be able to control the color level we want with variables.
Having the automated feature to produce colors with functions is definitely great, but it should be something we can turn off.
danijelGombac commentedon Oct 12, 2017
I had also this problem and i don't need all the alert variant so i added new map:
And change alert each:
Now i can remove alert variant and change background level color.
myplaneticket commentedon Oct 12, 2017
@danijelGombac Your solution makes more sense.
mdo commentedon Oct 18, 2017
No, it's different from past approaches in Bootstrap, but it does match v4's theming system.
I don't know if @danijelGombac's approach is best, but I wouldn't mind seeing a demo or PR to explore it more. Alternatively, we can provide variables for the
theme-color-levelfor each mixin parameter:Thoughts?
myplaneticket commentedon Oct 18, 2017
@mdo
Having a separate variable for each alert background would probably been better in my opinion. I guess having the ability to control $alert-bg-levels might be the way to go about it.
Move alert theme-color() levels to variables
Move alert theme-color() levels to variables
merge after v4-beta3 release