pls
postcss-list-style-safari-fix
npm i postcss-list-style-safari-fix
pls

postcss-list-style-safari-fix

Remove list styles in CSS without preventing VoiceOver from announcing them in Safari

by Jonathan Neal

1.0.0 (see all)License:CC0-1.0TypeScript:Not Found
npm i postcss-list-style-safari-fix
Readme

PostCSS List Style Safari Fix PostCSS

NPM Version Build Status Support Chat

PostCSS List Style Safari Fix lets you remove list styles in CSS without preventing VoiceOver from announcing them in Safari.

nav ol, nav ul {
  list-style: none;
}

/* becomes */

nav ol, nav ul {
  list-style: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E");
}

For more information about this Safari / VoiceOver bug, read VoiceOver and list-style-type: none.

Usage

Add PostCSS List Style Safari Fix to your project:

npm install postcss-list-style-safari-fix --save-dev

Use PostCSS List Style Safari Fix to process your CSS:

const postcssListStyleSafariFix = require('postcss-list-style-safari-fix');

postcssListStyleSafariFix.process(YOUR_CSS /*, processOptions, pluginOptions */);

Or use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssListStyleSafariFix = require('postcss-list-style-safari-fix');

postcss([
  postcssListStyleSafariFix(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

PostCSS List Style Safari Fix runs in all Node environments, with special instructions for:

NodePostCSS CLIWebpackCreate React AppGulpGrunt

Downloads/wk

33

GitHub Stars

10

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.0
latest
4yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate