Skip to content

Commit

Permalink
Revert "Revert "components: Promote VisuallyHidden from ui into full …
Browse files Browse the repository at this point in the history
…components (#31244)"" (#31902)

* Revert "Revert "components: Promote VisuallyHidden from ui into full components (#31244)" (#31882)"

This reverts commit 269f31a.

* Convert to styled component

* Update snapshots

* Add children prop

* Use View naming convention

* Use inline styles and remove focus styles

* Update color picker snapshots

* Render a View to allow for polymorphism and forward the ref
  • Loading branch information
sarayourfriend authored Jul 17, 2021
1 parent 2d346b9 commit 2d99d85
Show file tree
Hide file tree
Showing 34 changed files with 250 additions and 409 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/alignment-matrix-control/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { CompositeItem } from '../composite';
import Tooltip from '../tooltip';
import VisuallyHidden from '../visually-hidden';
import { VisuallyHidden } from '../visually-hidden';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/base-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import classnames from 'classnames';
/**
* Internal dependencies
*/
import VisuallyHidden from '../visually-hidden';
import { VisuallyHidden } from '../visually-hidden';
import {
Wrapper,
StyledField,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { forwardRef } from '@wordpress/element';
*/
import Tooltip from '../tooltip';
import Icon from '../icon';
import VisuallyHidden from '../visually-hidden';
import { VisuallyHidden } from '../visually-hidden';

const disabledEventsOnDisabledButton = [ 'onMouseDown', 'onClick' ];

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/button/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { plusCircle } from '@wordpress/icons';
* Internal dependencies
*/
import ButtonWithForwardedRef, { Button } from '../';
import VisuallyHidden from '../../visually-hidden';
import { VisuallyHidden } from '../../visually-hidden';

describe( 'Button', () => {
describe( 'basic rendering', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/color-picker/hue.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { TAB } from '@wordpress/keycodes';
*/
import { calculateHueChange } from './utils';
import KeyboardShortcuts from '../keyboard-shortcuts';
import VisuallyHidden from '../visually-hidden';
import { VisuallyHidden } from '../visually-hidden';

export class Hue extends Component {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/color-picker/inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { chevronDown } from '@wordpress/icons';
*/
import Button from '../button';
import TextControl from '../text-control';
import VisuallyHidden from '../visually-hidden';
import { VisuallyHidden } from '../visually-hidden';
import { isValidHex } from './utils';

/* Wrapper for TextControl, only used to handle intermediate state while typing. */
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/color-picker/saturation.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { compose, pure, withInstanceId } from '@wordpress/compose';
import { calculateSaturationChange } from './utils';
import Button from '../button';
import KeyboardShortcuts from '../keyboard-shortcuts';
import VisuallyHidden from '../visually-hidden';
import { VisuallyHidden } from '../visually-hidden';

export class Saturation extends Component {
constructor( props ) {
Expand Down
Loading

0 comments on commit 2d99d85

Please sign in to comment.