Skip to content

Commit 7f4c2bf

Browse files
committed
Merge pull request #3 from salesforce-ux/button
Change button flavor to Brand and make onClick an alert message
2 parents 794ed26 + c61fe72 commit 7f4c2bf

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
@@ -34,7 +34,7 @@ export default class HomePage extends Component {
3434
}
3535

3636
handleButtonClick(){
37-
console.log("SLDS Test Button Clicked");
37+
alert("Test Button Clicked");
3838
}
3939

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

0 commit comments

Comments
 (0)