@brightspace-ui/core 3.181.0 → 3.182.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/helpers/focus.js +0 -20
  2. package/package.json +1 -1
package/helpers/focus.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { css, unsafeCSS } from 'lit';
2
2
  import { getComposedChildren, getComposedParent, getFirstVisibleAncestor, getNextAncestorSibling, getPreviousAncestorSibling, isVisible } from './dom.js';
3
- import { getFlag } from './flags.js';
4
3
 
5
4
  const focusableElements = {
6
5
  a: true,
@@ -15,9 +14,6 @@ const focusableElements = {
15
14
  textarea: true
16
15
  };
17
16
 
18
- // The default here cannot be changed, as BSI relies on it being true. Do not change the default without adding a way for BSI to override it.
19
- const focusVisibleSupportChangesEnabled = getFlag('focus-visible-support-changes-for-focus-rings', true);
20
-
21
17
  export function getComposedActiveElement() {
22
18
  let node = document.activeElement;
23
19
 
@@ -80,22 +76,6 @@ export function getFocusPseudoClass() {
80
76
  return isFocusVisibleSupported() ? 'focus-visible' : 'focus';
81
77
  }
82
78
  export function getFocusRingStyles(selector, { extraStyles = null } = {}) {
83
- // Remove when cleaning up focus-visible-support-changes-for-focus-rings
84
- if (!focusVisibleSupportChangesEnabled) {
85
- const selectorDelegate = typeof selector === 'string' ? pseudoClass => `${selector}:${pseudoClass}` : selector;
86
- const cssSelector = unsafeCSS(selectorDelegate(getFocusPseudoClass()));
87
- return css`${cssSelector} {
88
- ${extraStyles ?? css``}
89
- outline: 2px solid var(--d2l-focus-ring-color, var(--d2l-color-celestine));
90
- outline-offset: var(--d2l-focus-ring-offset, 2px);
91
- }
92
- @media (prefers-contrast: more) {
93
- ${cssSelector} {
94
- outline-color: Highlight;
95
- }
96
- }`;
97
- }
98
-
99
79
  const stylesDelegate = selector => css`
100
80
  ${selector} {
101
81
  ${extraStyles ?? css``}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.181.0",
3
+ "version": "3.182.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",