Skip to content
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

[TwigBridge] Update bootstrap_4_layout.html.twig missing switch-custom label #34811

Merged
merged 1 commit into from Dec 5, 2019
Merged

Conversation

sabruss
Copy link
Contributor

@sabruss sabruss commented Dec 4, 2019

Q A
Branch? 5.0
Bug fix? yes
New feature? no
License MIT

Missing .custom-control-label for bootstrap custom-switch when using .switch-custom class in label_attr

@bykclk
Copy link

bykclk commented Dec 4, 2019

I just tested this in a real project - I couldn't find bug. How to reproduce ?

@sabruss
Copy link
Contributor Author

sabruss commented Dec 4, 2019

for a test case:

in a FormType

->add(
                'categories',
                EntityType::class,
                [
                    'label' => false,
                    'required' => false,
                    'class' => Category::class,
                    'expanded' => true,
                    'multiple' => true,
                    'label_attr' => ['class' => 'switch-custom']
                ]
            )

before
image

after
image

Copy link

@bykclk bykclk left a comment

Choose a reason for hiding this comment

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

Nice job there! I just tested this in a real project - no missing pieces - it works great :).

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Dec 4, 2019
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(for 4.4)

Missing custom-control-label for custom-switch
@fabpot fabpot changed the base branch from master to 4.4 December 5, 2019 05:58
@fabpot
Copy link
Member

fabpot commented Dec 5, 2019

Thank you @sabruss.

fabpot added a commit that referenced this pull request Dec 5, 2019
…witch-custom label (sabruss)

This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes #34811).

Discussion
----------

[TwigBridge] Update bootstrap_4_layout.html.twig missing switch-custom label

| Q             | A
| ------------- | ---
| Branch?       | 5.0
| Bug fix?      | yes
| New feature?  | no
| License       | MIT

Missing .custom-control-label for bootstrap custom-switch when using .switch-custom class in label_attr

Commits
-------

9347b2e [TwigBridge] Update bootstrap_4_layout.html.twig
@fabpot fabpot merged commit 9347b2e into symfony:4.4 Dec 5, 2019
This was referenced Dec 19, 2019
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.

None yet

6 participants