postcss-pseudo-class-any-link
Advanced tools
Comparing version 7.0.2 to 7.1.0
# Changes to PostCSS Pseudo Class Any Link | ||
### 7.1.0 (January 31, 2022) | ||
- Add support in IE and Edge for the `<area>` element | ||
- Add support for `:any-link` in pseudo class functions (`:not(:any-link)`) | ||
To support matching `:any-link` in IE and Edge on `<area href>` you need to set the `subFeatures.areaHrefNeedsFixing` option to `true`: | ||
```js | ||
postcssPseudoClassAnyLink({ | ||
subFeatures: { | ||
areaHrefNeedsFixing: true | ||
} | ||
}) | ||
``` | ||
### 7.0.2 (January 2, 2022) | ||
@@ -4,0 +19,0 @@ |
{ | ||
"name": "postcss-pseudo-class-any-link", | ||
"version": "7.0.2", | ||
"version": "7.1.0", | ||
"description": "Use the :any-link pseudo-class in CSS", | ||
@@ -23,3 +23,4 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"stryker": "stryker run --logLevel error", | ||
"test": "postcss-tape --ci && npm run test:exports", | ||
"test": "node .tape.mjs && npm run test:exports", | ||
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs", | ||
"test:exports": "node ./test/_import.mjs && node ./test/_require.cjs" | ||
@@ -31,10 +32,6 @@ }, | ||
"dependencies": { | ||
"postcss-selector-parser": "^6.0.8" | ||
"postcss-selector-parser": "^6.0.9" | ||
}, | ||
"devDependencies": { | ||
"postcss": "^8.3.6", | ||
"postcss-tape": "^6.0.1" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.3" | ||
"postcss": "^8.4" | ||
}, | ||
@@ -41,0 +38,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ # PostCSS Pseudo Class Any Link [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
[![Build Status][cli-img]][cli-url] | ||
[![Support Chat][git-img]][git-url] | ||
[<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord] | ||
@@ -84,8 +84,36 @@ [PostCSS Pseudo Class Any Link] lets you `:any-link` pseudo-class in CSS, | ||
### subFeatures | ||
#### areaHrefNeedsFixing | ||
The `subFeatures.areaHrefNeedsFixing` option determines if `<area href>` elements should match `:any-link` pseudo-class.<br> | ||
In IE and Edge these do not match `:link` or `:visited`. | ||
_This increased CSS bundle size and is disabled by default._ | ||
```js | ||
postcssPseudoClassAnyLink({ | ||
subFeatures: { | ||
areaHrefNeedsFixing: true | ||
} | ||
}) | ||
``` | ||
```pcss | ||
nav :any-link > span { | ||
background-color: yellow; | ||
} | ||
/* becomes */ | ||
nav :link > span, nav :visited > span, area[href] > span { | ||
background-color: yellow; | ||
} | ||
``` | ||
[cli-img]: https://github.com/csstools/postcss-plugins/workflows/test/badge.svg | ||
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test | ||
[css-img]: https://cssdb.org/badge/any-link-pseudo-class.svg | ||
[css-img]: https://cssdb.org/images/badges/any-link-pseudo-class.svg | ||
[css-url]: https://cssdb.org/#any-link-pseudo-class | ||
[git-img]: https://img.shields.io/badge/support-chat-blue.svg | ||
[git-url]: https://gitter.im/postcss/postcss | ||
[discord]: https://discord.gg/bUadyRwkJS | ||
[npm-img]: https://img.shields.io/npm/v/postcss-pseudo-class-any-link.svg | ||
@@ -92,0 +120,0 @@ [npm-url]: https://www.npmjs.com/package/postcss-pseudo-class-any-link |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
19167
0
21
126
0