// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
// See LICENSE in the project root for license information.

// ---------------------------------------------------------------------

// sass-lint:disable mixins-before-declarations

/// Global selector to address box-model and default `:focus` pseudo elements.
///
/// [Manage](/#scope-prefix-variable) `$scope` option.
/// @group †deprecated
/// @deprecated see `core.scss`
/// @example scss - import file
///   @import "./node_modules/@alaskaairux/orion-web-core-style-sheets/dist/baseline";
///
* {
  &,
  &:before,
  &:after {
    box-sizing: border-box;
  }

  // default experience is to remove all a11y enhancements
  &:focus {
    outline: none;
  }
}

/// Selector set to enable use of [focus visible](https://www.npmjs.com/package/focus-visible) polyfill.
///
/// Based on the proposed CSS `:focus-visible` pseudo-selector, this prototype adds a `focus-visible` class to the focused element, in situations in which the `:focus-visible` pseudo-selector should match.
///
/// @example scss - import file
///   @import "./node_modules/@alaskaairux/orion-web-core-style-sheets/dist/baseline";
///
/// @group †deprecated
/// @deprecated see `core.scss`
.focus-visible :focus:not(.focus-visible) {
  outline: none;
}
