Skip to content

Commit e97fcbd

Browse files
committed
add variable for uppercase text transform
1 parent 04989d3 commit e97fcbd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/rsg-components/TabButton/TabButtonRenderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import PropTypes from 'prop-types';
33
import Styled from 'rsg-components/Styled';
44
import cx from 'classnames';
55

6-
export const styles = ({ space, color, fontFamily, fontSize }) => ({
6+
export const styles = ({ space, color, fontFamily, fontSize, textTransform }) => ({
77
button: {
88
padding: [[space[1], 0]],
99
fontFamily: fontFamily.base,
1010
fontSize: fontSize.base,
1111
color: color.light,
1212
background: 'transparent',
13-
textTransform: 'uppercase',
13+
textTransform: textTransform.base,
1414
transition: 'color 750ms ease-out',
1515
border: 'none',
1616
cursor: 'pointer',

src/styles/theme.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ export const mq = {
5757
small: '@media (max-width: 600px)',
5858
};
5959

60+
export const textTransform = {
61+
base: 'uppercase',
62+
};
63+
6064
export const borderRadius = 3;
6165
export const maxWidth = 1000;
6266
export const sidebarWidth = 200;

0 commit comments

Comments
 (0)