Skip to content

Commit

Permalink
Remove iconSize prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 1, 2018
1 parent 4a30b31 commit 08f42b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src-docs/src/views/empty_prompt/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default () => (
<EuiEmptyPrompt
iconType="dataVisualizer"
iconColor={null}
iconSize="xs"
title={<h2>You have no spice</h2>}
titleSize="xs"
body={
Expand All @@ -18,6 +17,6 @@ export default () => (
<p>You&rsquo;ll need spice to rule Arrakis, young Atreides.</p>
</Fragment>
}
actions={<EuiButton color="primary" fill>Harvest spice</EuiButton>}
actions={<EuiButton size="s" color="primary" fill>Harvest spice</EuiButton>}
/>
);
2 changes: 1 addition & 1 deletion src-docs/src/views/empty_prompt/empty_prompt_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const EmptyPromptExample = {
text: (
<p>
You can control sizes and colors with the <EuiCode>iconColor</EuiCode>,{' '}
<EuiCode>iconSize</EuiCode>, and <EuiCode>titleSize</EuiCode> props.
and <EuiCode>titleSize</EuiCode> props.
</p>
),
props: { EuiEmptyPrompt },
Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/tables/in_memory/in_memory_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class Table extends Component {
message: (
<EuiEmptyPrompt
title={<h3>No users</h3>}
titleSize="xs"
body="Looks like you don&rsquo;t have any users. Let&rsquo;s create some!"
actions={(
<EuiButton
Expand Down
7 changes: 2 additions & 5 deletions src/components/empty_prompt/empty_prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import classNames from 'classnames';
import { TITLE_SIZES } from '../title/title';
import { EuiFlexGroup, EuiFlexItem } from '../flex';
import { EuiSpacer } from '../spacer';
import { EuiIcon, COLORS, SIZES } from '../icon/icon';
import { EuiIcon, COLORS } from '../icon/icon';
import { EuiText, EuiTextColor } from '../text';
import { EuiTitle } from '../title';

export const EuiEmptyPrompt = ({
iconType,
iconColor,
iconSize,
title,
titleSize,
body,
Expand All @@ -27,7 +26,7 @@ export const EuiEmptyPrompt = ({
if (iconType) {
icon = (
<Fragment>
<EuiIcon type={iconType} size={iconSize} color={iconColor} />
<EuiIcon type={iconType} size="xxl" color={iconColor} />
<EuiSpacer size="s" />
</Fragment>
)
Expand Down Expand Up @@ -121,7 +120,6 @@ EuiEmptyPrompt.propTypes = {
* Pass `null` to use original icon color
*/
iconColor: PropTypes.oneOf(COLORS),
iconSize: PropTypes.oneOf(SIZES),
title: PropTypes.node,
titleSize: PropTypes.oneOf(TITLE_SIZES),
body: PropTypes.node,
Expand All @@ -131,5 +129,4 @@ EuiEmptyPrompt.propTypes = {

EuiEmptyPrompt.defaultProps = {
iconColor: "subdued",
iconSize: "xxl",
};

0 comments on commit 08f42b6

Please sign in to comment.