Skip to content

Add button component to homepage #2

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: 2 additions & 0 deletions demo/code-snippets/SLDSButton.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

<SLDSButton flavor="neutral" onClick={this.handleButtonClick}>Test Button</SLDSButton>
23 changes: 20 additions & 3 deletions demo/pages/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export default class HomePage extends Component {
this.setState({showModal: !this.state.showModal});
}

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

render() {
return (
<SLDSGrid flavor="vertical" className="stage slds-nowrap">
Expand Down Expand Up @@ -63,7 +67,20 @@ export default class HomePage extends Component {



<div className="slds-p-around--medium">
<h3 className="slds-text-heading--medium slds-truncate">
Button
</h3>

<PrismCode className='language-markup'>
{require("raw-loader!../code-snippets/SLDSButton.txt")}
</PrismCode>
<div className="slds-p-vertical--large">
<SLDSButton flavor="neutral" onClick={this.handleButtonClick}>
Test Button
</SLDSButton>
</div>
</div>



Expand All @@ -79,7 +96,7 @@ export default class HomePage extends Component {
</PrismCode>

<div className="slds-p-vertical--large">
<SLDSPicklistBase
<SLDSPicklistBase
options={[
{label:'A Option Option Super Super Long',value:'A0'},
{label:'B Option',value:'B0'},
Expand All @@ -93,9 +110,9 @@ export default class HomePage extends Component {
{label:'E2 Option Super Super Long',value:'E1'},


]}
]}
value='C0'
label="Contacts"
label="Contacts"
modal={true}
placeholder = "Select a contact" />
</div>
Expand Down