Skip to content

Commit

Permalink
fix(styles): fixes theme definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Firsov committed Dec 25, 2018
1 parent a2e9437 commit c8b414b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
17 changes: 10 additions & 7 deletions src/components/Form/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ type FormFieldProps = {
const name = 'formField';

const themeLabel = createComponentTheme(`${name}Label`, ({ COLORS, SIZES }: *) => ({
fontSize: SIZES.OVERLINE_1,
color: COLORS.SECONDARY_TEXT_COLOR,
lineHeight: 2,
root: {
fontSize: SIZES.OVERLINE_1,
lineHeight: SIZES.OVERLINE_1_LH,
color: COLORS.SECONDARY_TEXT_COLOR,
},
}));

const themeError = createComponentTheme(`${name}Error`, ({ COLORS, SIZES }: *) => ({
fontSize: SIZES.OVERLINE_2,
lineHeight: SIZES.OVERLINE_2_LH,
color: COLORS.DANGER,
root: {
fontSize: SIZES.OVERLINE_2,
lineHeight: SIZES.OVERLINE_2_LH,
color: COLORS.DANGER,
},
}));

const theme = {
Expand Down Expand Up @@ -57,7 +61,6 @@ const ControlErrorWrapperTag = createStyledTag(`${name}ErrorWrapper`, {


export const ControlErrorTag = createStyledTag(`${name}Error`, {
lineHeight: 1,
position: 'relative',
top: '-2px',
});
Expand Down
6 changes: 4 additions & 2 deletions src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ injectGlobal`
const name = 'modal';

const themeOverlay = createComponentTheme(`${name}Overlay`, ({ Z_INDEX }: *) => ({
background: 'rgba(60, 87, 118, 0.6)',
zIndex: Z_INDEX.MODAL,
root: {
background: 'rgba(60, 87, 118, 0.6)',
zIndex: Z_INDEX.MODAL,
},
}));

const theme = {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Navigation/NavigationItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const themeMain = createComponentTheme(name, ({ COLORS }) => ({
}));

const themeLabel = createComponentTheme(`${name}Label`, ({ COLORS }) => ({
color: COLORS.LIGHT_PRIMARY_TEXT_COLOR,
root: {
color: COLORS.LIGHT_PRIMARY_TEXT_COLOR,
},
}));

const theme = {
Expand Down

0 comments on commit c8b414b

Please sign in to comment.