-
Notifications
You must be signed in to change notification settings - Fork 80
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
Format availability for the new style #159
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.
I don't see a hardcoded color in this file except for your changes. Shouldn't we use existing variables or introduce a new one?
I understand that you see it as a "dead theme", but it will be a default theme for PrestaShop 9 anyway, so... let's keep things clear.
@kpodemski Dude, please, check the code. You use this: <div class="alert alert-primary" role="alert">
<i class="material-icons">person</i> This is a primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
<i class="material-icons">person</i> This is a secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
<i class="material-icons">person</i> This is a success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
<i class="material-icons">person</i> This is a danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
<i class="material-icons">person</i> This is a warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
<i class="material-icons">person</i> This is a info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
<i class="material-icons">person</i> This is a light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
<i class="material-icons">person</i> This is a dark alert—check it out!
</div> You get this: Because somebody decided it's an amazing idea to style one alert color completely differently and hack it up: .alert-warning {
.material-icons {
padding-top: $extra-small-space;
margin-right: $small-space;
font-size: 2rem;
color: $warning;
}
.alert-text {
padding-top: $small-space;
font-size: 0.9375rem;
}
etc. |
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.
Hello @Hlavtox ,
I tested this PR with PrestaShop/PrestaShop#37018.
More details on how those 2 PR were tested here : PrestaShop/PrestaShop#37018 (review)
This is validated ✅
Related core PRs
How it looks
In stock
Available on backorder
Not available (+ a new availability submessage)
Disabled (and product displayed)