Skip to content

Commit

Permalink
chore: Remove ally.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuchet committed Mar 11, 2024
1 parent 878144c commit 9957716
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 50 deletions.
1 change: 0 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@talend/react-a11y": "^3.0.1",
"@talend/react-bootstrap": "^2.2.2",
"@talend/utils": "^3.0.4",
"ally.js": "^1.4.1",
"classnames": "^2.5.1",
"d3": "^7.8.5",
"date-fns": "^3.3.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/Badge/Badge.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $tc-badge-disabled-opacity: 0.62;

&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
outline: none;
}
}
Expand Down Expand Up @@ -356,7 +356,7 @@ $tc-badge-disabled-opacity: 0.62;
&-dropdown {
.tc-badge-button {
&:not(.tc-badge-disabled) {
&:global(.ally-focus-within) {
&:focus-within {
border-color: tokens.$coral-color-accent-border;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ $item-checkbox-width: 20px;
}

.tc-enumeration-item:hover,
.tc-enumeration-item:global(.ally-focus-within) {
.tc-enumeration-item:focus-within {
.tc-enumeration-item-actions {
visibility: visible;
}
}

// disable hover if item is selected
.tc-enumeration-item:hover:not(.selected-item),
.tc-enumeration-item:not(.selected-item):global(.ally-focus-within) {
.tc-enumeration-item:not(.selected-item):focus-within {
background-color: tokens.$coral-color-neutral-background-medium;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $tc-enumeration-height: 40vh !default;

[role='row']:first-child {
&:hover,
&:global(.ally-focus-within) {
&:focus-within {
box-shadow: inset 0 21px 3px -20px $shadow;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $tc-height: 2.5rem;
border-bottom: $tc-popover-border-width solid tokens.$coral-color-neutral-border-weak;
}

&:global(.ally-focus-within),
&:focus-within,
&:hover {
background: tokens.$coral-color-neutral-background-medium;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Status/Status.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $tc-status-space-btn-icon-label: 5px !default;
}

&.action:hover,
&.action:global(.ally-focus-within) {
&.action:focus-within {
.tc-status-icon,
.tc-status-label {
opacity: 0;
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/Status/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../polyfills/focus-within';
import { Status } from './Status.component';

export default Status;
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $tc-list-title-icon-size: $svg-rg-size !default;
.tc-list-title-filter {
&:not(.tc-list-title-disabled) {
&:hover,
&:global(.ally-focus-within) {
&:focus-within {
.icon {
color: tokens.$coral-color-accent-text;
filter: none;
Expand All @@ -86,7 +86,7 @@ $tc-list-title-icon-size: $svg-rg-size !default;
:global(.ReactVirtualized__Table__row) {
&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
:global(.tc-list-title .cell-title-actions) {
opacity: 1;
width: 100%;
Expand All @@ -100,7 +100,7 @@ $tc-list-title-icon-size: $svg-rg-size !default;
:global(.ReactVirtualized__Table__row.active) {
&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
:global(.tc-list-title .cell-title-actions) {
// background: linear-gradient(90deg, tokens.$coral-color-neutral-background, tokens.$coral-color-accent-background $padding-large);
}
Expand All @@ -111,7 +111,7 @@ $tc-list-title-icon-size: $svg-rg-size !default;
:global(.ReactVirtualized__Table__row.selected) {
&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
:global(.tc-list-title .cell-title-actions) {
// background: linear-gradient(90deg, tokens.$coral-color-neutral-background, tokens.$coral-color-accent-background $padding-large);
}
Expand All @@ -125,7 +125,7 @@ $tc-list-title-icon-size: $svg-rg-size !default;
:global(.ReactVirtualized__Table__row) {
&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
overflow: visible !important;

:global(.tc-list-title-cell),
Expand All @@ -138,7 +138,7 @@ $tc-list-title-icon-size: $svg-rg-size !default;
:global(.ReactVirtualized__Table__row) {
&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
/* avoid scrolling over x axis */
width: auto !important;
right: 0 !important;
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/VirtualizedList/CellTitle/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../../polyfills/focus-within';
import TitleColumn, { cellType, titleColumnConfiguration } from './TitleColumn.component';

export { cellType, TitleColumn };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $tc-list-table-cell-padding: $padding-small !default;

&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
background-color: tokens.$coral-color-neutral-background-medium;

.cell {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
background: tokens.$coral-color-accent-background-hover;
}
}
Expand All @@ -17,7 +17,7 @@

&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
background: tokens.$coral-color-accent-background-hover;
}
}
Expand All @@ -35,7 +35,7 @@

&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
background: tokens.$coral-color-accent-background-hover;
}
}
Expand All @@ -45,7 +45,7 @@

&:hover,
&:focus,
&:global(.ally-focus-within) {
&:focus-within {
background: tokens.$coral-color-accent-background-hover;
}
}
Expand Down
3 changes: 0 additions & 3 deletions packages/components/src/polyfills/focus-within.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"ally.js": "^1.4.1",
"i18next": "^23.10.0",
"i18next-scanner-typescript": "^1.2.0",
"jest-in-case": "^1.0.2",
Expand Down
4 changes: 0 additions & 4 deletions tools/scripts-config-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
},
"peerDependencies": {
"@talend/design-system": ">= 8.1.0",
"ally.js": ">= 1.4.1",
"i18next": ">= 23.5.1",
"classnames": ">= 2.3.2",
"jest-axe": ">= 8.0.0",
Expand All @@ -48,9 +47,6 @@
"@talend/design-system": {
"optional": true
},
"ally.js": {
"optional": true
},
"classnames": {
"optional": true
},
Expand Down
6 changes: 0 additions & 6 deletions tools/scripts-config-jest/test-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ try {
warnMessageOptionalDep('jest-axe');
}

try {
jest.mock('ally.js');
} catch (e) {
warnMessageOptionalDep('ally.js');
}

// add missing ResizeObserver
class ResizeObserver {
observe() {
Expand Down
1 change: 0 additions & 1 deletion versions/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"angular": "^1.5.9",
"ag-grid-community": "^24.0.0",
"ag-grid-react": "^24.0.0",
"ally.js": "^1.4.1",
"babel-polyfill": "^6.26.0",
"popper.js": "1.16.1",
"ag-grid": "^24.0.0",
Expand Down
15 changes: 1 addition & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5709,14 +5709,6 @@ all-contributors-cli@^6.26.1:
optionalDependencies:
prettier "^2"

ally.js@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/ally.js/-/ally.js-1.4.1.tgz#9fb7e6ba58efac4ee9131cb29aa9ee3b540bcf1e"
integrity sha512-ZewdfuwP6VewtMN36QY0gmiyvBfMnmEaNwbVu2nTS6zRt069viTgkYgaDiqu6vRJ1VJCriNqV0jGMu44R8zNbA==
dependencies:
css.escape "^1.5.0"
platform "1.3.3"

ansi-colors@^4.1.1, ansi-colors@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b"
Expand Down Expand Up @@ -7664,7 +7656,7 @@ css-what@^6.0.1, css-what@^6.1.0:
resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==

css.escape@^1.5.0, css.escape@^1.5.1:
css.escape@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb"
integrity sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==
Expand Down Expand Up @@ -14741,11 +14733,6 @@ pkg-dir@^7.0.0:
dependencies:
find-up "^6.3.0"

[email protected]:
version "1.3.3"
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.3.tgz#646c77011899870b6a0903e75e997e8e51da7461"
integrity sha512-VJK1SRmXBpjwsB4YOHYSturx48rLKMzHgCqDH2ZDa6ZbMS/N5huoNqyQdK5Fj/xayu3fqbXckn5SeCS1EbMDZg==

polished@^4.2.2:
version "4.3.1"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.3.1.tgz#5a00ae32715609f83d89f6f31d0f0261c6170548"
Expand Down

0 comments on commit 9957716

Please sign in to comment.