-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add d-block to bootstrap 4 alerts #26870
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
Conversation
normisg
commented
Apr 9, 2018
•
edited by ogizanagi
Loading
edited by ogizanagi
Q | A |
---|---|
Branch? | master |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #26869 |
License | MIT |
Doc PR | N/A |
…alar argument (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [DI] Improve error message for non-autowirable scalar argument | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#26838 | License | MIT | Doc PR | - Commits ------- 7f39811 [DI] Improve error message for non-autowirable scalar argument
Is there any reason why a https://getbootstrap.com/docs/4.0/components/alerts/ Using |
Yes, it was changed in 5dcaaad to "Make sure form errors is valid HTML". |
The reason for this is that now error blocks might appear inside |
@@ -283,7 +283,7 @@ | |||
|
|||
{% block form_errors -%} | |||
{%- if errors|length > 0 -%} | |||
<span class="{% if form is not rootform %}invalid-feedback d-block{% else %}alert alert-danger{% endif %}"> | |||
<span class="{% if form is not rootform %}invalid-feedback d-block{% else %}alert alert-danger d-block{% endif %}"> |
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.
Let's move the d-block
class outside the {% if %}
statement to have it only once in the line
…ns in tests (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Dont create mock cookie for new sessions in tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#26493 | License | MIT | Doc PR | - @romainneutron can you please check if this fixes your issue? Commits ------- 86b850e [HttpKernel] Dont create mock cookie for new sessions in tests
2dfb071
to
40bd8bd
Compare
Thank you @normisg. |
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #26870). Discussion ---------- Add d-block to bootstrap 4 alerts | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #26869 | License | MIT | Doc PR | N/A Commits ------- 40bd8bd Add d-block to bootstrap 4 alerts