Skip to content

[TwigBridge] do not drop embed label classes #49421

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

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 17, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #45727
License MIT
Doc PR

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 879b5d1 into symfony:5.4 Feb 21, 2023
@xabbuh xabbuh deleted the issue-45727 branch February 21, 2023 14:10
{%- if parent_label_class is defined -%}
{% set embed_label_classes = parent_label_class|split(' ')|filter(class => class in ['checkbox-inline', 'radio-inline']) %}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ embed_label_classes|join(' '))|trim}) -%}
{% endif %}
Copy link
Member

Choose a reason for hiding this comment

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

when merging in 6.2, I couldn't find where this should apply so I kept the file as is.
can you please have a look?

nicolas-grekas added a commit that referenced this pull request Feb 22, 2023
This PR was merged into the 6.2 branch.

Discussion
----------

[TwigBridge] do not drop embed label classes

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #49421 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

7324eb8 do not drop embed label classes
This was referenced Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants