Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPO3DPKRT-85/invalid value of 'auto' used for 'color' CSS properties #598

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/components/controls/IndentedReadOnlyRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const useStyles = makeStyles(({ palette, spacing }) => ({
backgroundColor: ({ required, error }: IndentedReadOnlyRowProps) => (error ? fade(palette.error.light, 0.3) : required ? palette.primary.light : palette.secondary.light)
},
label: {
color: 'auto',
color: palette.primary.dark,
gridColumnStart: 2,
gridColumnEnd: 3
},
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/controls/LabelTooltipText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeStyles } from '@material-ui/core/styles';
import { Typography, TypographyProps, Tooltip, PropTypes } from '@material-ui/core';
import { HelpOutline } from '@material-ui/icons';

const useStyles = makeStyles(({ spacing }) => ({
const useStyles = makeStyles(({ palette, spacing }) => ({
container: {
display: 'flex',
padding: ({ padding }: LabelTooltipTextProps ) => padding ? padding : '0px 10px',
Expand All @@ -14,7 +14,7 @@ const useStyles = makeStyles(({ spacing }) => ({
//backgroundColor: ({ required, error }: LabelTooltipTextProps ) => (error ? fade(palette.error.light, 0.3) : required ? palette.primary.light : palette.secondary.light)
},
label: {
color: 'auto'
color: palette.primary.dark
},
loading: {
position: 'absolute',
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/shared/FieldType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const useStyles = makeStyles(({ palette, spacing }) => ({
backgroundColor: ({ required, error }: FieldTypeProps) => (error ? fade(palette.error.light, 0.3) : required ? '0' : palette.primary.light)
},
label: {
color: 'auto'
color: palette.primary.dark
},
loading: {
position: 'absolute',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ const useStyles = makeStyles(({ typography, palette }) => ({
},
tableCell: {
border: 'none',
padding: '1px 10px'
padding: '1px 10px',
},
tableRow: {
height: '26.5px'
},
blueRow: {
backgroundColor: palette.primary.light
backgroundColor: palette.primary.light,
},
yellowRow: {
backgroundColor: palette.secondary.light
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useStyles = makeStyles(({ palette, typography, breakpoints }) => ({
fontSize: '0.8rem'
},
labelText: {
color: 'auto',
color: palette.primary.dark,
fontSize: '0.8rem'
},
select: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const useStyles = makeStyles(({ palette, typography }) => createStyles({
detailsContainer: {
},
label: {
color: 'auto'
color: palette.primary.dark
},
input: {
width: 'fit-content',
Expand Down Expand Up @@ -248,7 +248,7 @@ function SelectField(props: SelectFieldProps): React.ReactElement {
return (
<div style={{ display: 'grid', gridTemplateColumns: '120px calc(100% - 120px)', gridColumnGap: 5, padding: '3px 10px 3px 10px', height: 20 }}>
<div style={{ gridColumnStart: 1, gridColumnEnd: 2 }}>
<Typography style={{ color: 'auto' }} variant='caption'>
<Typography style={{ color: 'black' }} variant='caption'>
{label}
</Typography>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const useStyles = makeStyles(({ palette }) => ({
'&:not(:last-child)': {
borderBottom: '1px solid #D8E5EE'
}
}
},
color: palette.primary.dark
}
}));

Expand Down
Loading