Skip to content

Commit c61fe72

Browse files
committed
Change button flavor to Brand and make onClick an alert message
1 parent e15f306 commit c61fe72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/code-snippets/SLDSButton.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<SLDSButton flavor="neutral" onClick={this.handleButtonClick}>Test Button</SLDSButton>
2+
<SLDSButton flavor="brand" onClick={this.handleButtonClick}>Test Button</SLDSButton>

demo/pages/HomePage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class HomePage extends Component {
3535
}
3636

3737
handleButtonClick(){
38-
console.log("SLDS Test Button Clicked");
38+
alert("Test Button Clicked");
3939
}
4040

4141
render() {
@@ -76,7 +76,7 @@ export default class HomePage extends Component {
7676
{require("raw-loader!../code-snippets/SLDSButton.txt")}
7777
</PrismCode>
7878
<div className="slds-p-vertical--large">
79-
<SLDSButton flavor="neutral" onClick={this.handleButtonClick}>
79+
<SLDSButton flavor="brand" onClick={this.handleButtonClick}>
8080
Test Button
8181
</SLDSButton>
8282
</div>

0 commit comments

Comments
 (0)