Skip to content

Change button flavor to Brand and make onClick an alert message #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/code-snippets/SLDSButton.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

<SLDSButton flavor="neutral" onClick={this.handleButtonClick}>Test Button</SLDSButton>
<SLDSButton flavor="brand" onClick={this.handleButtonClick}>Test Button</SLDSButton>
4 changes: 2 additions & 2 deletions demo/pages/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class HomePage extends Component {
}

handleButtonClick(){
console.log("SLDS Test Button Clicked");
alert("Test Button Clicked");
}

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