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

feat(labels): add fallback for other filters #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
15 changes: 7 additions & 8 deletions src/Resources/app/storefront/src/scss/_product-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,19 @@
cursor: pointer;
border: 1px dashed $dark;
border-radius: $border-radius;
box-shadow: inset 3px 3px 0 $white, inset -3px -3px 0 $white;
background-color: $white;
display: inline-flex;
justify-content: center;
height: 60px;
min-width: 60px;
opacity: 0.35;
padding: 3px;
padding: 5px 10px;
transition: border-color 0.45s cubic-bezier(0.3, 0, 0.15, 1), background-color 0.45s cubic-bezier(0.3, 0, 0.15, 1);

&.is-display-text {
box-shadow: none;
height: auto;
padding: 5px 10px;

&.is-display-color,
&.is-display-media {
height: 60px;
padding: 3px;
box-shadow: inset 3px 3px 0 $white, inset -3px -3px 0 $white;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
}
} %}
{% endblock %}
{% elseif displayType == 'text' or
(displayType == 'media' and not media) or
(displayType == 'color' and not option.colorHexCode) %}
{% elseif (displayType == 'color' and option.colorHexCode) %}
{# nothing to do #}
{% else %}
{% block component_product_box_configurator_option_radio_label_text %}
{{ option.translated.name }}
{% endblock %}
Expand Down