Skip to content

Commit

Permalink
Use View naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Jun 30, 2021
1 parent 5b1f9fa commit 35892e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
32 changes: 0 additions & 32 deletions packages/components/src/ui/visually-hidden/hook.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/components/src/visually-hidden/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* Internal dependencies
*/
import { useContextSystem, contextConnect } from '../ui/context';
import { VisuallyHidden as VisuallyHiddenWrapper } from './styles';
import { VisuallyHiddenView } from './styles';

/**
* @param {import('../ui/context').PolymorphicComponentProps<{ children: import('react').ReactNode }, 'div'>} props
*/
function VisuallyHidden( props ) {
const contextProps = useContextSystem( props, 'VisuallyHidden' );
return <VisuallyHiddenWrapper { ...contextProps } />;
return <VisuallyHiddenView { ...contextProps } />;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/visually-hidden/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styled from '@emotion/styled';
*/
import { COLORS } from '../utils/colors-values';

export const VisuallyHidden = styled.div`
export const VisuallyHiddenView = styled.div`
border: 0;
clip: rect( 1px, 1px, 1px, 1px );
-webkit-clip-path: inset( 50% );
Expand Down

0 comments on commit 35892e1

Please sign in to comment.