Remove focus-visible dependency

This commit is contained in:
Sergio Padrino 2023-04-14 11:18:03 +02:00
parent 81b02b3dbc
commit 074156226b
4 changed files with 0 additions and 26 deletions

View file

@ -60,7 +60,6 @@
"untildify": "^3.0.2",
"username": "^5.1.0",
"uuid": "^3.0.1",
"focus-visible": "^5.2.0",
"winston": "^3.6.0"
},
"devDependencies": {

View file

@ -56,18 +56,6 @@ import { ApiRepositoriesStore } from '../lib/stores/api-repositories-store'
import { CommitStatusStore } from '../lib/stores/commit-status-store'
import { PullRequestCoordinator } from '../lib/stores/pull-request-coordinator'
// We're using a polyfill for the upcoming CSS4 `:focus-visible` pseudo-selector.
// This allows us to not have to override default accessibility driven focus
// styles for buttons in the case when a user clicks on a button. This also
// gives better visibility to individuals who navigate with the keyboard.
// Note: This was previously `:focus-ring` using the `wcig-focus-ring` library,
// but that one was deprecated in favor of `focus-visible`.
//
// See:
// https://github.com/WICG/focus-visible
// Focus Ring! -- A11ycasts #16: https://youtu.be/ilj2P5-5CjI
import 'focus-visible'
import { sendNonFatalException } from '../lib/helpers/non-fatal-exception'
import { enableUnhandledRejectionReporting } from '../lib/feature-flag'
import { AheadBehindStore } from '../lib/stores/ahead-behind-store'

View file

@ -522,11 +522,6 @@ focus-trap@^6.1.0:
dependencies:
tabbable "^5.1.0"
focus-visible@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/focus-visible/-/focus-visible-5.2.0.tgz#3a9e41fccf587bd25dcc2ef045508284f0a4d6b3"
integrity sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ==
fs-admin@^0.19.0:
version "0.19.0"
resolved "https://registry.yarnpkg.com/fs-admin/-/fs-admin-0.19.0.tgz#c2b077b21607ca1982bf9bc8c3fc096be7a1186e"

View file

@ -38,14 +38,6 @@ export const licenseOverrides: LicenseLookup = {
'Code is licensed under the AFL or BSD 3-Clause license as part of the Persevere project which is administered under the Dojo foundation, and all contributions require a Dojo CLA.',
},
'focus-visible@5.2.0': {
repository: 'git+https://github.com/WICG/focus-visible',
license: 'W3C',
source:
'https://github.com/WICG/focus-visible/blob/6501c9382d072014e0aa8a816064fc78ae07b36b/LICENSE.md',
sourceText: `All Reports in this Repository are licensed by Contributors under the W3C Software and Document License. Contributions to Specifications are made under the W3C CLA.`,
},
'tslib@2.0.0': tslibLicenseOverride,
'tslib@2.3.1': tslibLicenseOverride,
}