/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiErrorBoundary {
  $color1: transparentize($ouiColorDanger, .75);
  $color2: transparentize($ouiColorDanger, .95);

  background: repeating-linear-gradient(
    45deg,
    $color1,
    $color1 1px,
    $color2 1px,
    $color2 20px
  );
  overflow: auto;
  padding: $ouiSize;
}

.ouiErrorBoundary__text {
  background-color: $ouiColorEmptyShade;
  padding: $ouiSizeS;
}

.ouiErrorBoundary__stack {
  white-space: pre-wrap;
}
