Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Sep 23, 2021
1 parent 0e6f9db commit 9282d99
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions cypress/integration/accessibility_Icon_spec.js
Expand Up @@ -5,14 +5,14 @@ describe('Icon Accessibility check', () => {
});

it('Tests accessibility on the Icon page', () => {
cy.configureAxe({
rules: [
{
id: 'aria-command-name',
enabled: false,
},
],
});
// cy.configureAxe({
// rules: [
// {
// id: 'aria-command-name',
// enabled: false,
// },
// ],
// });

cy.checkA11y();
});
Expand Down
Expand Up @@ -4,9 +4,7 @@ describe('Iconography and SVGs Accessibility check', () => {
cy.injectAxe();
});

// Disable the test for now since it's timing out on GitHub CI
// eslint-disable-next-line jest/no-disabled-tests
it.skip('Tests accessibility on the Iconography and SVGs page', () => {
it('Tests accessibility on the Iconography and SVGs page', () => {
cy.checkA11y();
});
});
6 changes: 4 additions & 2 deletions docs/pages/icon.js
Expand Up @@ -87,9 +87,11 @@ export default function IconPage({ generatedDocGen }: {| generatedDocGen: DocGen
type="don't"
description="Don't create interactive Icons using TapArea. Use [IconButton](/iconbutton) instead."
defaultCode={`
<Tooltip text="Pinterest">
<Tooltip text="Share pin">
<TapArea>
<Icon icon="share" accessibilityLabel="" color="darkGray" />
<Box aria-hidden>
<Icon icon="share" accessibilityLabel="" color="darkGray" />
</Box>
</TapArea>
</Tooltip>`}
/>
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/iconography_and_svgs.js
Expand Up @@ -55,7 +55,7 @@ export default function IconPage(): Node {
return undefined;
}}
>
<Box padding={2}>
<Box padding={2} aria-hidden>
{/* $FlowFixMe[prop-missing] */}
<Icon color="darkGray" accessibilityLabel="" icon={iconName} />
</Box>
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt/src/AvatarGroup.js
Expand Up @@ -16,9 +16,9 @@ type Size = 'xs' | 'sm' | 'md' | 'fit';
type UnionRefs = HTMLDivElement | HTMLAnchorElement;
type Props = {|
/**
* Label for screen readers to announce Icon.
* Label for screen readers to announce AvatarGroup.
*
* See the [Accessibility](#ARIA-attributes) guidelines for details on proper usage.
* See the [Accessibility guidelines](https://gestalt.pinterest.systems/AvatarGroup#Accessibility) for details on proper usage.
*/
accessibilityLabel: string,
/**
Expand Down

0 comments on commit 9282d99

Please sign in to comment.