File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,9 @@ import {SLDSNotification} from 'design-system-react';
247
247
248
248
...
249
249
250
- < SLDSNotification variant= ' toast' theme= ' success' icon= ' notification' texture= {true } content= {message} animated= {true } / >
250
+ < SLDSNotification variant= ' alert' theme= ' success' icon= ' notification' texture= {true } content= {successMsg} onDismiss= {this .dismissToast } / >
251
+ < SLDSNotification variant= ' alert' theme= ' error' icon= ' warning' texture= {true } content= {errorMsg} onDismiss= {this .dismissToast } / >
252
+ < SLDSNotification variant= ' toast' theme= ' success' icon= ' notification' content= {successMsg} / >
251
253
```
252
254
253
255
[ ![ browser support] ( /readme-assets/SLDSNotifications.png )] ( /readme-assets/SLDSNotifications.png )
Original file line number Diff line number Diff line change 1
1
2
- <SLDSNotification variant='toast' theme='success' icon='notification' texture={true} content={message} animated={true} />
2
+ <SLDSNotification variant='alert' theme='success' icon='notification' texture={true} content={successMsg} onDismiss={this.dismissToast} />
3
+ <SLDSNotification variant='alert' theme='error' icon='warning' texture={true} content={errorMsg} onDismiss={this.dismissToast} />
4
+ <SLDSNotification variant='toast' theme='success' icon='notification' content={successMsg} />
3
5
4
6
<SLDSModal
5
7
isOpen={this.state.modalIsOpen}
Original file line number Diff line number Diff line change @@ -43,15 +43,13 @@ module.exports = React.createClass( {
43
43
44
44
45
45
< div className = "slds-p-around--medium" >
46
-
47
46
< h3 id = 'dropdownSection' className = "slds-text-heading--medium slds-truncate" >
48
47
Dropdown Base
49
48
</ h3 >
50
49
51
50
< PrismCode className = 'language-markup' >
52
51
{ require ( "raw-loader!../../code-snippets/SLDSDropdownPage.txt" ) }
53
52
</ PrismCode >
54
-
55
53
< div className = "slds-p-vertical--large" >
56
54
< SLDSDropdownBase
57
55
options = { [
@@ -76,7 +74,6 @@ module.exports = React.createClass( {
76
74
onUpdateHighlighted = { this . handleOnUpdateHighlighted }
77
75
/>
78
76
</ div >
79
-
80
77
</ div >
81
78
82
79
Original file line number Diff line number Diff line change @@ -96,11 +96,12 @@ module.exports = React.createClass( {
96
96
< div className = "slds-p-vertical--small" >
97
97
< h4 className = "slds-text-heading--small " > Alerts</ h4 >
98
98
< div className = "demo-only" >
99
- Base
100
- { this . state . modalIsOpen ? null : < SLDSNotification variant = 'alert' theme = 'success' icon = 'notification' texture = { true } content = { successMsg } onDismiss = { this . dismissToast } /> }
101
-
102
- Animated
103
- { this . state . modalIsOpen ? null : < SLDSNotification variant = 'alert' theme = 'error' icon = 'warning' texture = { true } content = { errorMsg } onDismiss = { this . dismissToast } /> }
99
+ < div className = "slds-p-bottom--small" >
100
+ { this . state . modalIsOpen ? null : < SLDSNotification variant = 'alert' theme = 'success' icon = 'notification' texture = { true } content = { successMsg } onDismiss = { this . dismissToast } /> }
101
+ </ div >
102
+ < div className = "slds-p-bottom--small" >
103
+ { this . state . modalIsOpen ? null : < SLDSNotification variant = 'alert' theme = 'error' icon = 'warning' texture = { true } content = { errorMsg } onDismiss = { this . dismissToast } /> }
104
+ </ div >
104
105
</ div >
105
106
</ div >
106
107
You can’t perform that action at this time.
0 commit comments