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] bootstrap4 file_widget: allow setting label attributes declared in label_attr #31102

Closed
wants to merge 1 commit into from

Conversation

AngelFQC
Copy link
Contributor

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ...
License MIT
Doc PR ...

Bootstrap provides a way to translate the “Browse” text in HTML with the data-browse attribute which can be added to the custom input label.

https://getbootstrap.com/docs/4.3/components/forms/#translating-or-customizing-the-strings-with-html

But currently the attributes declared in label_attr aren't being added.

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.2?)

@nicolas-grekas nicolas-grekas changed the title BS4 File layout: Allow set label attributes declared in label_attr [TwigBridge] bootstrap4 file_widget: Allow set label attributes declared in label_attr Apr 15, 2019
@nicolas-grekas nicolas-grekas changed the title [TwigBridge] bootstrap4 file_widget: Allow set label attributes declared in label_attr [TwigBridge] bootstrap4 file_widget: allow setting label attributes declared in label_attr Apr 15, 2019
@AngelFQC AngelFQC changed the base branch from master to 4.2 April 17, 2019 22:22
@AngelFQC AngelFQC changed the base branch from 4.2 to master April 17, 2019 22:22
@AngelFQC AngelFQC closed this Apr 24, 2019
fabpot added a commit that referenced this pull request Apr 27, 2019
…el attributes declared in label_attr (AngelFQC)

This PR was submitted for the 4.2 branch but it was merged into the 4.3-dev branch instead (closes #31220).

Discussion
----------

[TwigBridge] bootstrap4 file_widget: allow setting label attributes declared in label_attr

| Q             | A
| ------------- | ---
| Branch?       | 4.2 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | ...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | ... <!-- required for new features -->

> Bootstrap provides a way to translate the “Browse” text in HTML with the data-browse attribute which can be added to the custom input label.

https://getbootstrap.com/docs/4.3/components/forms/#translating-or-customizing-the-strings-with-html

But currently the attributes declared in label_attr aren't being added.

Previously I sent this same change to the master branch (PR #31102), but I think I should have sent it to branch 4.2

Commits
-------

9c76b29 [TwigBridge] bootstrap4 file_widget: allow setting label attributes declared in label_attr
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

4 participants