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

IBX-3092: dropdown in subfield should be small like other fields #479

Merged
merged 2 commits into from
Jun 28, 2022

Conversation

tischsoic
Copy link
Contributor

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,
Copy link
Contributor Author

@tischsoic tischsoic Jun 25, 2022

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:


Another option would be to deprecate this approach and add a separate is_small variable.

Copy link
Contributor Author

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?

@tischsoic tischsoic requested a review from dew326 June 27, 2022 09:08
@bogusez bogusez self-assigned this Jun 28, 2022
@dew326 dew326 merged commit 5aa693b into 4.1 Jun 28, 2022
@dew326 dew326 deleted the IBX-3092-wrong-dropdown-size-in-subfields branch June 28, 2022 13:54
@tischsoic
Copy link
Contributor Author

Merged up:

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.

6 participants