Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 5 commits intosymfony:3.4fromnormisg:ticket_26869
Apr 14, 2018

Conversation

@normisg
Copy link

@normisgnormisg commentedApr 9, 2018
edited by ogizanagi
Loading

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#26869
LicenseMIT
Doc PRN/A

vudaltsov reacted with thumbs up emoji
nicolas-grekasand others added2 commitsApril 9, 2018 15:40
…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
@chapterjason
Copy link
Contributor

Is there any reason why aspan is used to display the alerts? When I look at the docs of bootstrap, I can clearly see that thediv tag are used for that.

https://getbootstrap.com/docs/4.0/components/alerts/

Usingd-block is for me really odd.

@normisg
Copy link
Author

Yes, it was changed in5dcaaad to "Make sure form errors is valid HTML".
Seems unnecessary to me too.

@vudaltsov
Copy link
Contributor

The reason for this is that now error blocks might appear inside<label> tags. You cannot have<div> inside a label.

chapterjason reacted with thumbs up emoji

{%blockform_errors -%}
{%-iferrors|length>0 -%}
<spanclass="{%ifformis notrootform %}invalid-feedback d-block{%else %}alert alert-danger{%endif %}">
<spanclass="{%ifformis notrootform %}invalid-feedback d-block{%else %}alert alert-danger d-block{%endif %}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's move thed-block class outside the{% if %} statement to have it only once in the line

jvasseur and axzx reacted with thumbs up emoji
nicolas-grekasand others added2 commitsApril 14, 2018 08:14
…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
@nicolas-grekasnicolas-grekas changed the base branch frommaster to3.4April 14, 2018 14:54
@nicolas-grekas
Copy link
Member

Thank you@normisg.

@nicolas-grekasnicolas-grekas merged commit40bd8bd intosymfony:3.4Apr 14, 2018
nicolas-grekas added a commit that referenced this pull requestApr 14, 2018
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/ACommits-------40bd8bd Add d-block to bootstrap 4 alerts
This was referencedApr 30, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@vudaltsovvudaltsovvudaltsov requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

7 participants

@normisg@chapterjason@vudaltsov@nicolas-grekas@xabbuh@carsonbot@Tobion

[8]ページ先頭

©2009-2025 Movatter.jp