@use '@angular/material' as mat;
@use 'sass:map';

// Material tree mixin
@mixin mat-tree-override($theme) {
  $primary: map.get($theme, primary);

  .mat-tree {
    background: transparent;
  }

  a.mat-tree-node:focus {
    outline: map.get($primary, A400) solid 2px;
    border-radius: 5px;
  }

  .mat-tree-node:has(button:focus) {
    outline: map.get($primary, A400) solid 2px;
    border-radius: 5px;
    outline-offset: 2px;

    .mat-mdc-button-base:focus.mdc-icon-button {
      outline: none;
    }
  }
}
