Skip to content

Commit

Permalink
components: Remove wp-g2 imports from visually-hidden (#31210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Apr 27, 2021
1 parent 9c5e2b6 commit 20f2df1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 6 additions & 2 deletions packages/components/src/ui/visually-hidden/styles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/**
* External dependencies
*/
import { css, ui } from '@wp-g2/styles';
import { css } from 'emotion';
/**
* Internal dependencies
*/
import { COLORS } from '../../utils/colors-values';

export const VisuallyHidden = css`
border: 0;
Expand All @@ -17,7 +21,7 @@ export const VisuallyHidden = css`
word-wrap: normal !important;
&:focus {
background-color: ${ ui.get( 'lightGray300' ) };
background-color: ${ COLORS.lightGray[ '300' ] };
clip: auto !important;
clip-path: none;
color: #444;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`VisuallyHidden should render correctly 1`] = `
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
.emotion-0 {
border: 0;
-webkit-clip: rect( 1px,1px,1px,1px );
clip: rect( 1px,1px,1px,1px );
Expand All @@ -17,9 +17,8 @@ exports[`VisuallyHidden should render correctly 1`] = `
word-wrap: normal !important;
}
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0:focus {
.emotion-0:focus {
background-color: #edeff0;
background-color: var(--wp-g2-light-gray-300);
-webkit-clip: auto !important;
clip: auto !important;
-webkit-clip-path: none;
Expand Down

0 comments on commit 20f2df1

Please sign in to comment.