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-5455: Checkboxes are not aligned with other data in Languages & Currencies tabs #777

Merged
merged 1 commit into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/bundle/Resources/public/scss/_inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
position: relative;
display: inline-block;
cursor: pointer;

&:disabled {
&.form-check-input {
opacity: 1;
}
}
}

&--checkbox {
Expand Down
1 change: 0 additions & 1 deletion src/bundle/Resources/public/scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
height: calculateRem(68px);

.form-check {
display: flex;
margin-bottom: 0;
min-height: calculateRem(16px);
margin-top: 0;
Expand Down
16 changes: 9 additions & 7 deletions src/bundle/Resources/views/themes/admin/language/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@

{% block content %}
{% set enable_checkbox_raw %}
<input
type="checkbox"
title="{{ language.enabled ? 'language.enabled'|trans|desc('Enabled') : 'language.disabled'|trans|desc('Disabled') }}"
class="ibexa-input ibexa-input--checkbox"
disabled
{% if language.enabled %}checked{% endif %}
>
<div class="form-check">
<input
type="checkbox"
title="{{ language.enabled ? 'language.enabled'|trans|desc('Enabled') : 'language.disabled'|trans|desc('Disabled') }}"
class="ibexa-input ibexa-input--checkbox form-check-input"
disabled
{% if language.enabled %}checked{% endif %}
>
</div>
{% endset %}
{% set language_items = [
{
Expand Down
16 changes: 9 additions & 7 deletions src/bundle/Resources/views/themes/admin/language/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@
]) %}

{% set col_raw %}
<input
type="checkbox"
title="{{ language.enabled ? 'language.enabled'|trans|desc('Enabled') : 'language.disabled'|trans|desc('Disabled') }}"
class="ibexa-input ibexa-input--checkbox"
disabled
{% if language.enabled %}checked{% endif %}
>
<div class="form-check">
<input
type="checkbox"
title="{{ language.enabled ? 'language.enabled'|trans|desc('Enabled') : 'language.disabled'|trans|desc('Disabled') }}"
class="ibexa-input ibexa-input--checkbox form-check-input"
disabled
{% if language.enabled %}checked{% endif %}
>
</div>
{% endset %}
{% set body_row_cols = body_row_cols|merge([{
content: col_raw,
Expand Down