-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-3092: dropdown in subfield should be small like other fields #479
Conversation
tischsoic
commented
Jun 25, 2022
Question | Answer |
---|---|
Tickets | https://issues.ibexa.co/browse/IBX-3092 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Tests pass? | yes |
Doc needed? | no |
License | GPL-2.0 |
{% set attr = attr|merge({'class': (attr.class|default('') ~ ' ibexa-data-source__input ibexa-data-source__input ibexa-input--small')|trim}) %} | ||
{% set attr = attr|merge({ | ||
class: (attr.class|default('') ~ ' ibexa-data-source__input ibexa-data-source__input ibexa-input--small')|trim, | ||
is_small: true, |
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.
I don't like passing this in attr
because we usually use attr
as HTML element params, but this is how it is currently done in the dropdown widget:
admin-ui/src/bundle/Resources/views/themes/admin/ui/form_fields/dropdown_widget.html.twig
Line 25 in 034e145
is_small: attr.is_small|default(false), |
Another option would be to deprecate this approach and add a separate
is_small
variable.
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.
Maybe you have other ideas?
Merged up:
|