Skip to content

Commit

Permalink
Merge branch 'master' into 3602-reduce-tooltip-icon-selector-specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Aug 5, 2019
2 parents 9cd5814 + 66efe3b commit 62f9ee9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 135 deletions.
9 changes: 4 additions & 5 deletions packages/react/src/components/ListBox/ListBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { settings } from 'carbon-components';
import ListBoxField from './ListBoxField';
import ListBoxMenu from './ListBoxMenu';
import { ListBoxType } from './ListBoxPropTypes';
import childrenOf from '../../prop-types/childrenOf';
import { WarningFilled16 } from '@carbon/icons-react';

const { prefix } = settings;

Expand Down Expand Up @@ -73,7 +69,10 @@ const ListBox = ({
};

ListBox.propTypes = {
children: childrenOf([ListBoxField, ListBoxMenu, WarningFilled16]),
/**
* Provide the contents of your ListBox
*/
children: PropTypes.node,

/**
* Specify a class name to be applied on the containing list box node
Expand Down
5 changes: 1 addition & 4 deletions packages/react/src/components/ListBox/ListBoxField.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import React from 'react';
import { settings } from 'carbon-components';
import PropTypes from 'prop-types';
import ListBoxMenuIcon from './ListBoxMenuIcon';
import ListBoxSelection from './ListBoxSelection';
import childrenOf from '../../prop-types/childrenOf';

const { prefix } = settings;

Expand Down Expand Up @@ -53,7 +50,7 @@ ListBoxField.propTypes = {
/**
* Provide the contents of your ListBoxField
*/
children: childrenOf([ListBoxMenuIcon, ListBoxSelection, 'span', 'input']),
children: PropTypes.node,

/**
* Specify a custom `id`
Expand Down
82 changes: 0 additions & 82 deletions packages/react/src/prop-types/__tests__/childrenOf-test.js

This file was deleted.

44 changes: 0 additions & 44 deletions packages/react/src/prop-types/childrenOf.js

This file was deleted.

0 comments on commit 62f9ee9

Please sign in to comment.