Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Initial NPM release:
* Renaming from outline.js to remove-focus-outline * Updating package.json to include everything NPM requires * Adding installation & usage instructions to README * Adding note about v2 to README
- Loading branch information
1 parent
cf363a8
commit d134ef0
Showing
2 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,38 @@ | ||
# outline.js | ||
# remove-focus-outline | ||
|
||
> Formerly outline.js | ||
Removes CSS outlines in an accessible manner | ||
|
||
Based on http://www.paciellogroup.com/blog/2012/04/how-to-remove-css-outlines-in-an-accessible-manner/ | ||
|
||
> :new: I'm working busily on version 2 of remove-focus-outline - pop on over to the [project page](https://github.com/lindsayevans/outline.js/projects/1) to see what's happening, or take a look at the [`develop` branch](https://github.com/lindsayevans/outline.js/tree/develop). | ||
## Installation | ||
|
||
```sh | ||
npm install remove-focus-outline | ||
``` | ||
|
||
Or if Yarn is your thing: | ||
|
||
```sh | ||
yarn add remove-focus-outline | ||
``` | ||
|
||
## Usage | ||
|
||
ES6 - TypeScript, Babel, etc. | ||
```js | ||
import 'remove-focus-outline'; | ||
``` | ||
|
||
CommonJS - RequireJS etc. | ||
```js | ||
require('remove-focus-outline'); | ||
``` | ||
|
||
HTML `<script>`: | ||
```html | ||
<script src="node_modules/remove-focus-outline/outline.js"></script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
{ | ||
"name": "outline.js", | ||
"name": "remove-focus-outline", | ||
"version": "1.2.0", | ||
"description": "Removes CSS outlines in an accessible manner", | ||
"main": "outline.js", | ||
"repository": "https://github.com/lindsayevans/outline.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/lindsayevans/outline.js.git" | ||
}, | ||
"keywords": [ | ||
"focus", | ||
"outline", | ||
"css", | ||
"a11y", | ||
"accessibility" | ||
], | ||
"author": "Lindsay Evans <linz@linz.id.au>", | ||
"license": "MIT" | ||
} | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/lindsayevans/outline.js/issues" | ||
}, | ||
"homepage": "https://github.com/lindsayevans/outline.js#readme" | ||
} |