Skip to content

Commit

Permalink
Making card-text pull its text color from the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Villarreal committed Oct 27, 2015
1 parent aa7e541 commit 23e4080
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/card/card-text.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,13 @@ const CardText = React.createClass({
actAsExpander: React.PropTypes.bool,
},

getDefaultProps() {
return {
color: Styles.Colors.ck,
};
},

getStyles() {
let themeVariables = this.state.muiTheme.cardText;
return {
root: {
padding: 16,
fontSize: '14px',
color: this.props.color,
color: this.props.color ? this.props.color : themeVariables.textColor,
},
};
},
Expand Down
3 changes: 3 additions & 0 deletions src/styles/theme-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports = {
minWidth: 88,
iconButtonSize: rawTheme.spacing.iconSize * 2,
},
cardText: {
textColor: rawTheme.palette.textColor,
},
checkbox: {
boxColor: rawTheme.palette.textColor,
checkedColor: rawTheme.palette.primary1Color,
Expand Down

0 comments on commit 23e4080

Please sign in to comment.