Skip to content

Commit

Permalink
Fix: Add buttonTextTransform variable to theme (#728)
Browse files Browse the repository at this point in the history
Close #702
  • Loading branch information
jmurret authored and sapegin committed Dec 6, 2017
1 parent 8155523 commit dab1474
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rsg-components/TabButton/TabButtonRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import PropTypes from 'prop-types';
import Styled from 'rsg-components/Styled';
import cx from 'classnames';

export const styles = ({ space, color, fontFamily, fontSize }) => ({
export const styles = ({ space, color, fontFamily, fontSize, buttonTextTransform }) => ({
button: {
padding: [[space[1], 0]],
fontFamily: fontFamily.base,
fontSize: fontSize.base,
color: color.light,
background: 'transparent',
textTransform: 'uppercase',
textTransform: buttonTextTransform,
transition: 'color 750ms ease-out',
border: 'none',
cursor: 'pointer',
Expand Down
2 changes: 2 additions & 0 deletions src/styles/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ export const mq = {
export const borderRadius = 3;
export const maxWidth = 1000;
export const sidebarWidth = 200;

export const buttonTextTransform = 'uppercase';

0 comments on commit dab1474

Please sign in to comment.