Skip to content

Commit

Permalink
Restore auth banner colors
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 21, 2023
1 parent 9e998e3 commit 299db18
Showing 1 changed file with 17 additions and 45 deletions.
62 changes: 17 additions & 45 deletions src/components/WindowAuthenticationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ const StyledTopBar = styled('div')(({ theme }) => ({
},
alignItems: 'center',
display: 'flex',
justifyContent: 'inherit',
padding: theme.spacing(1),
textTransform: 'none',
}));

const StyledFauxButton = styled('span')(({ theme }) => ({
Expand Down Expand Up @@ -62,16 +59,13 @@ export class WindowAuthenticationBar extends Component {
const button = (
<Button
onClick={this.onSubmit}
sx={theme => ({
color="secondary"
sx={(theme) => ({
'&:hover': {
backgroundColor: alpha(theme.palette.secondary.contrastText, 1 - theme.palette.action.hoverOpacity),
},
backgroundColor: theme.palette.secondary.contrastText,
marginLeft: theme.spacing(5),
paddingBottom: 0,
paddingTop: 0,
})}
color="secondary"
{...ConfirmProps}
>
{confirmButton || t('login')}
Expand All @@ -84,24 +78,12 @@ export class WindowAuthenticationBar extends Component {
square
elevation={4}
color="secondary"
sx={{
'& .MuiPaper-root': {
backgroundColor: 'secondary.main',
color: 'secondary.contrastText',
cursor: 'pointer',
},
}}
>
<StyledTopBar>
{ icon || (
<LockIcon
sx={{
marginRight: 1.5,
verticalAlign: 'text-bottom',
}}
/>
<LockIcon sx={{ marginInlineEnd: 1.5 }} />
) }
<Typography sx={{ lineHeight: 2.25 }} component="h3" variant="body1" color="inherit">
<Typography component="h3" variant="body1" color="inherit">
{ ruleSet ? <SanitizedHtml htmlString={label} ruleSet={ruleSet} /> : label }
</Typography>
<PluginHook {...this.props} />
Expand All @@ -116,38 +98,27 @@ export class WindowAuthenticationBar extends Component {
square
elevation={4}
color="secondary"
sx={{
'& .MuiPaper-root': {
backgroundColor: 'secondary.main',
color: 'secondary.contrastText',
cursor: 'pointer',
},
}}
>
<Button
fullWidth
sx={{
'&:hover': {
backgroundColor: 'secondary.main',
},
alignItems: 'center',
display: 'flex',
justifyContent: 'inherit',
padding: 1,
textTransform: 'none',
}}
onClick={() => this.setOpen(true)}
component="div"
color="inherit"
sx={(theme) => ({
backgroundColor: theme.palette.secondary.main,
'&:hover': {

Check failure on line 109 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected object keys to be in insensitive ascending order. '&:hover' should be before 'backgroundColor'

Check failure on line 109 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected object keys to be in insensitive ascending order. '&:hover' should be before 'backgroundColor'

Check failure on line 109 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected object keys to be in insensitive ascending order. '&:hover' should be before 'backgroundColor'
backgroundColor: theme.palette.secondary.main,
},
borderRadius: 0,
color: theme.palette.secondary.contrastText,
justifyContent: 'start',
textTransform: 'none',
})}
>
{ icon || (
<LockIcon sx={{
marginRight: 1.5,
verticalAlign: 'text-bottom',
}}
/>
<LockIcon sx={{ marginInlineEnd: 1.5 }} />
) }
<Typography sx={{ lineHeight: 2.25 }} component="h3" variant="body1" color="inherit">
<Typography sx={{ paddingBlockStart: 1, paddingBlockEnd: 1 }} component="h3" variant="body1" color="inherit">

Check failure on line 121 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected object keys to be in insensitive ascending order. 'paddingBlockEnd' should be before 'paddingBlockStart'

Check failure on line 121 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected object keys to be in insensitive ascending order. 'paddingBlockEnd' should be before 'paddingBlockStart'

Check failure on line 121 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected object keys to be in insensitive ascending order. 'paddingBlockEnd' should be before 'paddingBlockStart'
{ ruleSet ? <SanitizedHtml htmlString={label} ruleSet={ruleSet} /> : label }
</Typography>
<PluginHook {...this.props} />
Expand All @@ -160,6 +131,7 @@ export class WindowAuthenticationBar extends Component {
</StyledFauxButton>
</Button>
<Collapse
sx={(theme) => ({ backgroundColor: theme.palette.secondary.main, color: theme.palette.secondary.contrastText, paddingInlineStart: theme.spacing(1), paddingInlineEnd: theme.spacing(1) })}

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (16.x)

This line has a length of 196. Maximum allowed is 120

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected a line break after this opening brace

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected object keys to be in insensitive ascending order. 'paddingInlineEnd' should be before 'paddingInlineStart'

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected a line break before this closing brace

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (18.x)

This line has a length of 196. Maximum allowed is 120

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected a line break after this opening brace

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected object keys to be in insensitive ascending order. 'paddingInlineEnd' should be before 'paddingInlineStart'

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected a line break before this closing brace

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (19.x)

This line has a length of 196. Maximum allowed is 120

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected a line break after this opening brace

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected object keys to be in insensitive ascending order. 'paddingInlineEnd' should be before 'paddingInlineStart'

Check failure on line 134 in src/components/WindowAuthenticationBar.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected a line break before this closing brace
in={open}
onClose={() => this.setOpen(false)}
>
Expand Down

0 comments on commit 299db18

Please sign in to comment.