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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Grid] Allow not to pass "apply_transition" button class #10517

Conversation

Zales0123
Copy link
Member

Q A
Branch? 1.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

I suppose it should not be required. It's quite weird to get an exception if you do not specify the color of the button 馃悞

@Zales0123 Zales0123 added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Jul 9, 2019
@Zales0123 Zales0123 requested a review from a team as a code owner July 9, 2019 20:33
@Zales0123 Zales0123 changed the base branch from master to 1.4 July 9, 2019 20:33
@Zales0123 Zales0123 force-pushed the allow-not-to-pass-apply-transition-button-class branch from ea452ec to 8f92568 Compare July 10, 2019 05:45
@Zales0123 Zales0123 force-pushed the allow-not-to-pass-apply-transition-button-class branch from 8f92568 to 15752a6 Compare July 15, 2019 08:44
@@ -2,6 +2,6 @@
<form action="{{ path(options.link.route, options.link.parameters) }}" method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token(data.id) }}">
<input type="hidden" name="_method" value="PUT">
<button class="ui loadable {{ options.class }} labeled icon button" type="submit"><i class="{{ action.icon }} icon"></i> {{ action.label|trans }}</button>
<button class="ui loadable {{ options.class|default }} labeled icon button" type="submit"><i class="{{ action.icon }} icon"></i> {{ action.label|trans }}</button>
Copy link
Member

Choose a reason for hiding this comment

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

Can we also remove icon constraint?

Suggested change
<button class="ui loadable {{ options.class|default }} labeled icon button" type="submit"><i class="{{ action.icon }} icon"></i> {{ action.label|trans }}</button>
<button class="ui loadable {{ options.class|default }} labeled icon button" type="submit"><i class="{{ action.icon|default }} icon"></i> {{ action.label|trans }}</button>

@lchrusciel lchrusciel merged commit c5cddb6 into Sylius:1.4 Jul 18, 2019
@lchrusciel
Copy link
Member

Thanks, Mateusz! 馃帀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants