Skip to content

Commit 4785c3c

Browse files
authored
Merge pull request #28 from mvdschee/dev
Release 0.2.8
2 parents 1f67fd7 + c7b2038 commit 4785c3c

10 files changed

Lines changed: 36 additions & 32 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# CHANGELOG
2+
## Version 0.2.8
3+
* Added support for Vue-html [pull #27](https://github.com/mvdschee/web-accessibility/pull/27) by [Kemal Ahmed](https://github.com/goatandsheep)
4+
* Added support for Vue linting
5+
* Changed patterns to be less prone to false positives
6+
* Updated readme
7+
28
## Version 0.2.7
39
* Correct spelling mistakes [pull #23](https://github.com/mvdschee/web-accessibility/pull/23) by [Gilles Leblanc](https://github.com/gilles-leblanc)
410
* Updated/Upgraded dependencies

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# Web Accessibility Extension - Visual Studio Code
22
[![The MIT License](https://flat.badgen.net/badge/license/MIT/orange)](http://opensource.org/licenses/MIT)
33
[![GitHub](https://flat.badgen.net/github/release/mvdschee/web-accessibility)](https://github.com/mvdschee/web-accessibility/releases)
4-
[![Visual Studio Marketplace](https://flat.badgen.net/vs-marketplace/d/MaxvanderSchee.web-accessibility)](https://marketplace.visualstudio.com/items?itemName=MaxvanderSchee.web-accessibility)
4+
[![Visual Studio Marketplace](https://flat.badgen.net/vs-marketplace/i/MaxvanderSchee.web-accessibility)](https://marketplace.visualstudio.com/items?itemName=MaxvanderSchee.web-accessibility)
55

6-
### So I heard you wanted to write more accessible websites? Well, you came to the right Extension!
7-
> Although this extension will help you write better Web Accessible applications/websites is only based on your code, which means it can't cover the full spectrum of Web Accessibility.
6+
### So I heard you wanted to write more accessible code? Well, you came to the right Extension!
7+
> This extension is here to help you get feedback on what parts need some more attention for it to be accessible, this is just the basics and doesn't cover all the rules but will help with making your project more accessible.
88
99
## ✨Features
1010
![](./web-accessibility.gif)
1111

1212
The extension can do the following for you:
1313
* Highlight elements that you should consider changing.
14-
* Give a hint what to change
15-
14+
* Give a hint on how you should change it.
1615

1716
## 🔒Extension Settings
1817
The settings can be found at `File > Preferences > Settings > Extensions > Web Accessibility`
@@ -23,11 +22,6 @@ The settings can be found at `File > Preferences > Settings > Extensions > Web A
2322
| Semantic HTML | boolean | false |
2423
| Trace: Server | string | off |
2524

26-
## 🐛Known Issues
27-
The following Issues will be dealt with soon.
28-
* More informing messages with links to resources.
29-
* Not all Web Accessibility errors implemented.
30-
3125
## 📝Release Notes
3226
All notable changes to this project will be documented in the [Changelog](./CHANGELOG.md).
3327

client/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "web-accessibility-client",
3-
"description": "Web Accessibility for Visual Studio Code",
3+
"description": "Audit Web Accessibility issues in Visual Studio Code",
44
"author": "MaxvanderSchee",
55
"license": "MIT",
6-
"version": "0.2.7",
6+
"version": "0.2.8",
77
"publisher": "MaxvanderSchee",
88
"repository": "https://github.com/mvdschee/web-accessibility",
99
"engines": {

client/src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export function activate(context: ExtensionContext) {
3939
// Register the server for HTML documents
4040
documentSelector: [
4141
{ language: 'html', scheme: 'file' },
42-
{ language: 'javascriptreact', scheme: 'file' }
42+
{ language: 'javascriptreact', scheme: 'file' },
43+
{ language: 'vue-html', scheme: 'file' },
44+
{ language: 'vue', scheme: 'file' },
4345
],
4446
synchronize: {
4547
// Notify the server about file changes to '.clientrc files contained in the workspace

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "web-accessibility",
33
"displayName": "Web Accessibility",
4-
"description": "Web Accessibility for Visual Studio Code",
5-
"version": "0.2.7",
4+
"description": "Audit Web Accessibility issues in Visual Studio Code",
5+
"version": "0.2.8",
66
"publisher": "MaxvanderSchee",
77
"license": "MIT",
88
"repository": "https://github.com/mvdschee/web-accessibility",
@@ -11,19 +11,21 @@
1111
"vscode": "^1.25.0"
1212
},
1313
"categories": [
14-
"Linters",
15-
"Formatters"
14+
"Linters"
1615
],
1716
"keywords": [
1817
"web accessibility",
1918
"a11y",
2019
"wai-aria",
2120
"wai",
22-
"accessibility"
21+
"accessibility",
22+
"audit"
2323
],
2424
"activationEvents": [
2525
"onLanguage:html",
26-
"onLanguage:javascriptreact"
26+
"onLanguage:javascriptreact",
27+
"onLanguage:vue-html",
28+
"onLanguage:vue"
2729
],
2830
"main": "./client/out/extension",
2931
"contributes": {

server/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "web-accessibility-server",
3-
"description": "Web Accessibility for Visual Studio Code",
3+
"description": "Audit Web Accessibility issues in Visual Studio Code",
44
"author": "MaxvanderSchee",
55
"license": "MIT",
6-
"version": "0.2.7",
6+
"version": "0.2.8",
77
"publisher": "MaxvanderSchee",
88
"repository": "https://github.com/mvdschee/web-accessibility",
99
"engines": {

server/src/accessibilityPatterns.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
// Order based om most common types first
1313
const patterns: string[] = [
14-
"<div(?:.)+?>",
15-
"<span(?:.)+?>",
14+
"<div(>|)(?:.)+?>",
15+
"<span(>|)(?:.)+?>",
1616
// "id=\"(?:.)+?\"",
17-
"<a(?:.)+?>(?:(?:\\s|\\S)+?(?=<\/a>))<\/a>",
18-
"<img(?:.)+?>",
19-
"<input(?:.)+?>",
20-
"<head(?:.|)+?>(?:(?:\\s|\\S|)+?(?=<\/head>))<\/head>",
21-
"<html(?:.)+?>",
17+
"<a (?:.)+?>(?:(?:\\s|\\S)+?(?=<\/a>))<\/a>",
18+
"<img (?:.)+?>",
19+
"<input (?:.)+?>",
20+
"<head (?:.|)+?>(?:(?:\\s|\\S|)+?(?=<\/head>))<\/head>",
21+
"<html(>|)(?:.)+?>",
2222
"tabindex=\"(?:.)+?\"",
23-
"<(?:i|)frame(?:.|)+?>"
23+
"<(?:i|)frame (?:.|)+?>"
2424
];
2525
export const pattern: RegExp = new RegExp(patterns.join('|'), 'ig');
2626

0 commit comments

Comments
 (0)