{% if options.visible|default(true) %}
<div class="ui{% if options.icon is defined %} labeled icon{% endif %} floating dropdown {{ options.class|default('') }} link button">
    {% if options.icon is defined %}<i class="{{ options.icon }} icon"></i>{% endif %}
    <span class="text">{{ action.label|trans }}</span>
    <div class="menu">
        {% if options.header is defined %}
        <div class="header">
            {% if options.header.icon is defined %}<i class="{{ options.header.icon }} icon"></i>{% endif %}
            {{ options.header.label|trans }}
        </div>
        <div class="divider"></div>
        {% endif %}
        {% for link in options.links %}
            {% include '@SyliusUi/Grid/Action/_link.html.twig' %}
        {% endfor %}
    </div>
</div>
{% endif %}

{% set visible = options.visible is defined ? options.visible : true %}

{% if visible %}
<div class="ui{% if options.icon is defined %} labeled icon{% endif %} floating dropdown {{ options.class|default('') }} link button">
    {% if options.icon is defined %}<i class="{{ options.icon }} icon"></i>{% endif %}
    <span class="text">{{ action.label|trans }}</span>
    <div class="menu">
        {% if options.header is defined %}
        <div class="header">
            {% if options.header.icon is defined %}<i class="{{ options.header.icon }} icon"></i>{% endif %}
            {{ options.header.label|trans }}
        </div>
        <div class="divider"></div>
        {% endif %}
        {% for link in options.links %}
            {% include '@SyliusUi/Grid/Action/_link.html.twig' %}
        {% endfor %}
    </div>
</div>
{% endif %}

Fix visible option in links action template
[Grid][Action] Fix visible option in links action template
