Skip to content

Commit

Permalink
fix(components): update refereces to ban icon (#3169)
Browse files Browse the repository at this point in the history
  • Loading branch information
engai authored Mar 22, 2018
1 parent 9bddfde commit cd98ab6
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 36 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ui/components/alert/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ it('renders a error alert', () =>
containerClassName="slds-m-right_x-small"
className="slds-icon_x-small"
assistiveText={false}
symbol="ban"
symbol="error"
/>
<h2>
Your browser is currently not supported. Your Salesforce may be
Expand Down
2 changes: 1 addition & 1 deletion ui/components/alert/base/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export let states = [
containerClassName="slds-m-right_x-small"
className="slds-icon_x-small"
assistiveText={false}
symbol="ban"
symbol="error"
/>
<h2>
Your browser is currently not supported. Your Salesforce may be
Expand Down
2 changes: 1 addition & 1 deletion ui/components/alert/docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Use the error variant when you need to alert the user about an error in the syst
containerClassName="slds-m-right_x-small"
className="slds-icon_x-small"
assistiveText={false}
symbol="ban"
symbol="error"
/>
<h2>
Your browser is currently not supported. Your Salesforce may be
Expand Down
2 changes: 1 addition & 1 deletion ui/components/data-tables/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ export const ErrorTd = props => (
}
)}
id={'error-0' + props.index}
symbol="ban"
symbol="error"
tabIndex={props.actionableMode && props.hasError ? null : '-1'}
title={`Item ${props.index} has errors`}
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/components/data-tables/inline-edit/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export let states = [
<FeedbackHeader
headingId={headingUniqueId}
title="Resolve error"
symbol="ban"
symbol="error"
/>
}
style={{
Expand Down
6 changes: 3 additions & 3 deletions ui/components/docked-form-footer/base/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export let states = [
assistiveText="Resolve error"
className="slds-button_icon slds-button_icon-error"
iconClassName="slds-button__icon_large"
symbol="ban"
symbol="error"
title="Resolve error"
/>
<button type="button" className="slds-button slds-button_neutral">
Expand All @@ -56,7 +56,7 @@ export let states = [
assistiveText="Resolve error"
className="slds-button_icon slds-button_icon-error"
iconClassName="slds-button__icon_large"
symbol="ban"
symbol="error"
title="Resolve error"
/>
<button type="button" className="slds-button slds-button_neutral">
Expand All @@ -72,7 +72,7 @@ export let states = [
<FeedbackHeader
headingId={headingUniqueId}
title="Resolve error"
symbol="ban"
symbol="error"
/>
}
closeButton
Expand Down
10 changes: 4 additions & 6 deletions ui/components/file-selector/integrated/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let IntegratedFileSelector = props => (
<SvgIcon
className="slds-file-selector__body-icon slds-icon slds-icon-text-default"
sprite="utility"
symbol="ban"
symbol="error"
/>
) : (
<SvgIcon
Expand All @@ -47,11 +47,9 @@ let IntegratedFileSelector = props => (
/>
)}
<span className="slds-file-selector__text slds-file-selector__text_integrated slds-text-heading_medium slds-text-align_center">
{props.draggoverError ? (
'Too many files selected. Attach up to 1 file.'
) : (
'Drop Files'
)}
{props.draggoverError
? 'Too many files selected. Attach up to 1 file.'
: 'Drop Files'}
</span>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion ui/components/input/base/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export let examples = [
<FormElement className="slds-text-align_center">
<ButtonIcon
className="slds-button_icon-small slds-input__button_decrement"
symbol="error"
symbol="ban"
assistiveText={'Decrement counter'}
title={'Decrement counter'}
/>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui/components/popovers/__tests__/snapshot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ it('renders an error popover', () =>
className="slds-popover_error slds-nubbin_bottom-left"
headingId={headingUniqueId}
header={
<FeedbackHeader title="Resolve the following errors" symbol="ban" />
<FeedbackHeader title="Resolve the following errors" symbol="error" />
}
closeButton
inverse
Expand All @@ -131,7 +131,7 @@ it('renders an error popover with footer', () =>
className="slds-popover_error slds-nubbin_bottom-left"
headingId={headingUniqueId}
header={
<FeedbackHeader title="Resolve the following errors" symbol="ban" />
<FeedbackHeader title="Resolve the following errors" symbol="error" />
}
footer={<FeedbackFooter />}
closeButton
Expand Down
24 changes: 11 additions & 13 deletions ui/components/popovers/error/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import React from 'react';
import SvgIcon from '../../../shared/svg-icon';
import ButtonIcon from '../../button-icons/';
import { UtilityIcon } from '../../icons/base/example';
import { Popover } from '../base/example';
import classNames from 'classnames';
import _ from '../../../shared/helpers';
Expand All @@ -15,17 +16,14 @@ export const FeedbackHeader = props => (
<div className="slds-media slds-media_center slds-has-flexi-truncate ">
{props.symbol ? (
<div className="slds-media__figure">
<span
className={'slds-icon_container slds-icon-utility-' + props.symbol}
>
<SvgIcon
className={classNames('slds-icon slds-icon_x-small', {
'slds-icon-text-default': props.iconDefault
})}
sprite="utility"
symbol={props.symbol}
/>
</span>
<UtilityIcon
className={classNames('slds-icon_x-small', {
'slds-icon-text-default': props.iconDefault
})}
symbol={props.symbol}
title={false}
assistiveText={false}
/>
</div>
) : null}
<div className="slds-media__body">
Expand Down Expand Up @@ -59,7 +57,7 @@ export default (
<FeedbackHeader
headingId={headingUniqueId}
title="Resolve error"
symbol="ban"
symbol="error"
/>
}
closeButton
Expand Down Expand Up @@ -87,7 +85,7 @@ export let examples = [
<FeedbackHeader
headingId={headingUniqueId}
title="Resolve error"
symbol="ban"
symbol="error"
/>
}
footer={<FeedbackFooter />}
Expand Down

0 comments on commit cd98ab6

Please sign in to comment.