Skip to content

Commit

Permalink
fix: replace Reach VisuallyHidden with Radix (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley authored May 2, 2023
1 parent aab0844 commit 565a1b1
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/hungry-plants-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hashicorp/react-alert-banner': minor
'@hashicorp/react-subnav': minor
---

Replace Reach VisuallyHidden with Radix
55 changes: 52 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/alert-banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useEffect, useState } from 'react'
import cookie from 'js-cookie'
import slugify from 'slugify'
import classNames from 'classnames'
import VisuallyHidden from '@reach/visually-hidden'
import { VisuallyHidden } from '@radix-ui/react-visually-hidden'
import useProductMeta, {
Products as HashiCorpProduct,
} from '@hashicorp/platform-product-meta'
Expand Down
2 changes: 1 addition & 1 deletion packages/alert-banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@hashicorp/platform-product-meta": "^0.1.0",
"@hashicorp/react-inline-svg": "^6.0.3",
"@reach/visually-hidden": "^0.16.0",
"@radix-ui/react-visually-hidden": "^1.0.2",
"js-cookie": "^2.2.1",
"slugify": "^1.6.5"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/subnav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@hashicorp/react-button": "^6.0.4",
"@hashicorp/react-inline-svg": "^6.0.3",
"@hashicorp/react-link-wrap": "^3.0.3",
"@reach/visually-hidden": "^0.16.0",
"@radix-ui/react-visually-hidden": "^1.0.2",
"camel-case": "^4.1.2",
"classnames": "^2.3.1",
"isomorphic-unfetch": "^3.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import formatStarCount from './formatStarCount/index.js'
import parseGithubUrl from './parseGithubUrl/index.js'
import StarIcon from '../icons/star'
import GithubIcon from '../icons/github-logo'
import VisuallyHidden from '@reach/visually-hidden'
import { VisuallyHidden } from '@radix-ui/react-visually-hidden'
import s from './style.module.css'

function GithubStarsButton(props) {
Expand Down

0 comments on commit 565a1b1

Please sign in to comment.