{# /** * Target site picker for the bulk content translate action. * * The data-param/data-value pairs are posted back and land on the element * action's public properties. */ #} {% set currentSiteHandle = craft.app.request.getParam('site') ?? craft.app.sites.currentSite.handle %}
{% css %} /* Craft's .btn is inline-flex, so the icon and label need an explicit gap rather than relying on the whitespace between them. */ .btn.enupal-translate-trigger { display: inline-flex; align-items: center; gap: 5px; } .btn.enupal-translate-trigger svg { width: 13px; height: 13px; flex: 0 0 auto; } /* The icon ships with Craft's text colour baked into each shape; recolour only those and leave the transparent ones alone. */ .btn.enupal-translate-trigger svg [style*="3f4d5a"] { fill: currentColor !important; } {% endcss %}