Skip to content

Conversation

martyan
Copy link
Contributor

@martyan martyan commented Apr 6, 2017

Hi folks, it would be nice to be able to define custom class for each button. I know you can define inline styles, but classes are more concise and organized IMO.

{
  text: 'reply',
  onPress:() => console.log('reply'),
  style: { backgroundColor: 'orange', color: 'white' },
  cls: 'custom-class-1'
}

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.327% when pulling 03e5d96 on martyan:master into 02faa3c on react-component:master.

@silentcloud
Copy link
Member

@martyan className may be better

@martyan
Copy link
Contributor Author

martyan commented Apr 7, 2017

@silentcloud I wanted to keep uniformity as there is already prefixCls used for className prefix.

Updated to use className.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.327% when pulling 4b08f42 on martyan:master into 02faa3c on react-component:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.327% when pulling 4b08f42 on martyan:master into 02faa3c on react-component:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.327% when pulling 4b08f42 on martyan:master into 02faa3c on react-component:master.

@silentcloud silentcloud merged commit c8f7317 into react-component:master Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants