Skip to content

Commit

Permalink
feat(css.focus-visible): add support for the :focus-visible pseudo-class
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Mar 4, 2020
1 parent d1e09a1 commit cac6e5a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ And, if you request `performance.now`, `date.now` will also be included since th
- **`esnext.promise`**
- `es.promise.all-settled`
- `es.promise.try`
- `es.promise.any`
- `es.promise.try`
- **`esnext.reflect`**
- `es.reflect.define-metadata`
- `es.reflect.delete-metadata`
Expand Down Expand Up @@ -734,6 +734,7 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `base64`
- `blob`
- `proxy`
- `es.promise.any`
- `es.string.replace`
- `pointer-event`
- `xhr`
Expand All @@ -743,6 +744,7 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `document-fragment`
- `node.parentelement`
- `scroll-behavior`
- `focus-visible`
- `node.contains`
- `window`
- `document`
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"web-animations-js": "^2.3.2",
"whatwg-fetch": "^3.0.0",
"xhr-polyfill": "^0.1.8",
"focus-visible": "^5.0.2",
"zone.js": "^0.10.2"
},
"main": "./dist/index.js",
Expand Down
8 changes: 8 additions & 0 deletions src/constant/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,14 @@ export const constant: IConstant = {
dependencies: ["es.object.define-property", "es.object.get-own-property-descriptor", "requestanimationframe"],
contexts: WINDOW_CONTEXT
},
"focus-visible": {
library: "focus-visible",
relativePaths: ["dist/focus-visible.min.js"],
features: ["css-focus-visible"],
version: environment.NPM_PACKAGE_DEPENDENCIES_FOCUS_VISIBLE,
dependencies: ["class-list"],
contexts: WINDOW_CONTEXT
},
"node.contains": {
library: "polyfill-library",
relativePaths: ["polyfills/__dist/Node.prototype.contains/min.js"],
Expand Down
1 change: 1 addition & 0 deletions src/environment/environment-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const environmentDefaults = {
NPM_PACKAGE_DEPENDENCIES_INTERSECTION_OBSERVER: "",
NPM_PACKAGE_DEPENDENCIES_CONSTRUCT_STYLE_SHEETS_POLYFILL: "",
NPM_PACKAGE_DEPENDENCIES_SCROLL_BEHAVIOR_POLYFILL: "",
NPM_PACKAGE_DEPENDENCIES_FOCUS_VISIBLE: "",
NPM_PACKAGE_DEPENDENCIES_SETIMMEDIATE: "",
NPM_PACKAGE_DEPENDENCIES_WHATWG_FETCH: "",
NPM_PACKAGE_DEPENDENCIES__WEBCOMPONENTS_SHADYDOM: "",
Expand Down
3 changes: 2 additions & 1 deletion src/polyfill/polyfill-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,5 @@ export declare type PolyfillDealiasedName =
| "web-animations"
| "global-this"
| "constructable-style-sheets"
| "proto";
| "proto"
| "focus-visible";

0 comments on commit cac6e5a

Please sign in to comment.