Skip to content

Commit

Permalink
refactor(VisuallyHidden): removed dependency (#1494)
Browse files Browse the repository at this point in the history
* refactor(VisuallyHidden): removed import

the related usage has been removed with 2ff8e1c

* refactor: removed the need for @reach/visually-hidden dependency

* refactor: removed dependency @reach/visually-hidden
  • Loading branch information
mfranzke authored May 29, 2023
1 parent 4ff84d0 commit c5ef833
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion packages/uikit-workshop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@pattern-lab/engine-handlebars": "^6.0.0",
"@pattern-lab/engine-mustache": "^6.0.0",
"@pattern-lab/uikit-polyfills": "^6.0.0",
"@reach/visually-hidden": "^0.1.2",
"@webcomponents/custom-elements": "^1.4.3",
"autoprefixer": "^10.2.5",
"babel-loader": "^9.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Fuse from 'fuse.js';
import ReactHtmlParser from 'react-html-parser';
import classNames from 'classnames';
import Mousetrap from 'mousetrap';
import VisuallyHidden from '@reach/visually-hidden';
import Autosuggest from 'react-autosuggest';

import { urlHandler, iframeMsgDataExtraction } from '../../utils';
Expand Down Expand Up @@ -255,7 +254,7 @@ class Search extends BaseComponent {
}}
type="button"
>
<VisuallyHidden>{clearButtonText}</VisuallyHidden>
<span class="is-vishidden">{clearButtonText}</span>
<svg
viewBox="0 0 16 16"
height="16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { define, props } from 'skatejs';
import { BaseComponent } from '../../components/base-component.js';
import { store } from '../../store.js'; // connect to redux

import VisuallyHidden from '@reach/visually-hidden';

import {
minViewportWidth,
maxViewportWidth,
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2139,11 +2139,6 @@
dependencies:
"@octokit/openapi-types" "^12.11.0"

"@reach/visually-hidden@^0.1.2":
version "0.1.4"
resolved "https://registry.yarnpkg.com/@reach/visually-hidden/-/visually-hidden-0.1.4.tgz#0dc4ecedf523004337214187db70a46183bd945b"
integrity sha512-QHbzXjflSlCvDd6vJwdwx16mSB+vUCCQMiU/wK/CgVNPibtpEiIbisyxkpZc55DyDFNUIqP91rSUsNae+ogGDQ==

"@sindresorhus/is@^0.14.0":
version "0.14.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
Expand Down

0 comments on commit c5ef833

Please sign in to comment.