/**
 * @file
 * Adds icons to OtB-defined top-level admin menu items.
 *
 * Both selectors are needed: `.toolbar-link--{slug}` is used by Drupal core's
 * new Navigation sidebar (Gin's `classic_toolbar: new` mode, the current
 * configuration), and `.toolbar-icon-{slug}` is the classic horizontal toolbar
 * fallback. The slug derives from the menu link plugin ID via
 * Html::getClass(str_replace('.', '_', $plugin_id)) — see
 * NavigationMenuLinkTree::build().
 *
 * !important is needed to override the Gin sprite default that would otherwise
 * win specificity. mask-image colored via currentColor (Gin's stylesheet) so
 * the icon tracks dark/light mode.
 */

.toolbar-icon-otb-core-mailer::before,
.toolbar-link--otb-core-mailer::before {
  -webkit-mask-image: url("../images/icons/envelope.svg") !important;
          mask-image: url("../images/icons/envelope.svg") !important;
}
