Skip to content

Commit

Permalink
fix: cleanup axe-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 17, 2020
1 parent 0f37714 commit 7262b7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ Extract props info from react typescript components:

# Plugins

<package-section file="./misc/axe-plugin/README.md" section="overview" />
<package-section file="./plugins/axe-plugin/README.md" section="overview" />

<!-- START-PACKAGE-SECTION -->

## [@component-controls/axe-plugin](https://github.com/ccontrols/component-controls/blob/master/misc/axe-plugin)
## [@component-controls/axe-plugin](https://github.com/ccontrols/component-controls/blob/master/plugins/axe-plugin)

Axe ally plugin for component-contols
Axe ally testing plugin

Accessibility testing plugin using the [axe-core](https://github.com/dequelabs/axe-core) library from [deque](https://www.deque.com/axe/)

Expand All @@ -351,10 +351,9 @@ Some of the design goals:
- Provide a dashboard view to quickly see the errors and tests for the compnnt.
- Ability to select and outline the sub-elements generating the errors.
- Ability to see details from the errors and passed rules.
- Ability to review the rendered story right next to the testing panels.

<p align="center">
<img src="https://github.com/ccontrols/component-controls/raw/master/misc/axe-plugin/images/axe-ally-testing.gif" alt="ally tests with axe plugin" width="738">
<img src="https://github.com/ccontrols/component-controls/raw/master/plugins/axe-plugin/images/axe-ally-testing.gif" alt="ally tests with axe plugin" width="738">
</p>

<!-- END-PACKAGE-SECTION -->
Expand Down
4 changes: 2 additions & 2 deletions plugins/axe-plugin/src/components/HighlightSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const HighlightNode = styled.div<StyledContainerProps>`
}
const styles = `${selectors.join(', \n')}
{
outline: 4px dotted red;
outline-offset: 4px;
outline: 2px dotted red;
outline-offset: 2px;
};
`;
return styles;
Expand Down
1 change: 0 additions & 1 deletion plugins/axe-plugin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const AxeAllyBlock: FC<AxeAllyBlockProps> = ({
runAxe(canvas)
.then(results => {
setResults(results);
console.log(results);
isRunning.current = false;
})
.catch(e => {
Expand Down

0 comments on commit 7262b7f

Please sign in to comment.