Skip to content

Commit

Permalink
fixed color contrast issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasaditya committed Oct 4, 2024
1 parent a0b8975 commit f9a56af
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ class App extends Component {

const WeVoteBody = styled('div')`
background-color: #fff; // rgb(235, 236, 238); // #fafafa;
color: #333;
color: #000;
display: block;
font-family: "Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
line-height: 1.4;
Expand Down
16 changes: 8 additions & 8 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
--white:#fff;
--gray:#6c757d;
--gray-dark:#343a40;
--primary:#0858A1;
--primary:#206DB3;
--secondary:#6c757d;
--success:#28a745;
--info:#17a2b8;
Expand Down Expand Up @@ -102,13 +102,13 @@ small {
}

a {
color:#0858A1;
color:#206DB3; /* primary500 */
text-decoration:none;
background-color:transparent
}

a:hover {
color:#0858A1;
color:#206DB3; /* primary500 */
text-decoration:underline
}

Expand Down Expand Up @@ -1746,15 +1746,15 @@ h1,h2,h3,h4,h5,h6 {
}

.u-link-color {
color:#0858A1
color:#206DB3; /* primary500 */
}

.u-link-color-on-hover {
color:#0858A1
color:#206DB3; /* primary500 */
}

.u-link-color-on-hover:hover {
color:#0858A1
color:#206DB3; /* primary500 */
}

.u-bold {
Expand All @@ -1767,7 +1767,7 @@ h1,h2,h3,h4,h5,h6 {

.u-link-underline {
text-decoration:underline;
color:#0858A1;
color:#206DB3; /* primary500 */
}

.u-link-underline-on-hover:hover {
Expand Down Expand Up @@ -2665,7 +2665,7 @@ h1,h2,h3,h4,h5,h6 {
}

.open-web-site {
color:#4371cc;
color:#206DB3; /* primary500 */
padding-right:2px;
padding-left:2px
}
Expand Down
20 changes: 10 additions & 10 deletions src/js/common/components/Navigation/ChallengeInviteSteps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ const HeaderContainer = styled('div')`
button {
background: none;
border: none;
color: ${DesignTokenColors.primary600};
color: ${DesignTokenColors.primary500};
font-size: 13px;
font-weight: 500;
text-decoration: none;
}
`;

const Wrapper = styled('div')`
align-items: center;
align-items: center;
display: flex;
margin-left: auto;
`;
Expand All @@ -200,7 +200,7 @@ const StepsContainer = styled('div')`

const StepOneIconAndText = styled('div')`
align-items: center;
border-bottom: 2px solid ${({ isActive }) => (isActive ? DesignTokenColors.primary600 : 'transparent')};
border-bottom: 2px solid ${({ isActive }) => (isActive ? DesignTokenColors.primary500 : 'transparent')};
cursor: pointer;
display: flex;
flex-direction: column;
Expand All @@ -214,23 +214,23 @@ const StepOneIconAndText = styled('div')`
a {
font-weight: ${({ isActive }) => (isActive ? '600' : 'normal')};
color: ${({ isActive }) => (isActive ? DesignTokenColors.primary600 : 'inherit')};
color: ${({ isActive }) => (isActive ? DesignTokenColors.primary500 : 'inherit')};
&:hover {
color: ${DesignTokenColors.primary600};
color: ${DesignTokenColors.primary500};
font-weight: 600;
text-decoration: underline;
}
}
&:hover {
border-bottom: 2px solid ${DesignTokenColors.primary600};
border-bottom: 2px solid ${DesignTokenColors.primary500};
}
`;

const StepTwoIconAndText = styled('div')`
align-items: center;
border-bottom: 2px solid ${({ isActive }) => (isActive ? DesignTokenColors.primary600 : 'transparent')};
border-bottom: 2px solid ${({ isActive }) => (isActive ? DesignTokenColors.primary500 : 'transparent')};
cursor: pointer;
display: flex;
flex-direction: column;
Expand All @@ -244,16 +244,16 @@ const StepTwoIconAndText = styled('div')`
a {
font-weight: ${({ isActive }) => (isActive ? '600' : 'normal')};
color: ${({ isActive }) => (isActive ? DesignTokenColors.primary600 : 'inherit')};
color: ${({ isActive }) => (isActive ? DesignTokenColors.primary500 : 'inherit')};
&:hover {
color: ${DesignTokenColors.primary600};
color: ${DesignTokenColors.primary500};
font-weight: 600;
}
}
&:hover {
// border-bottom: 2px solid ${DesignTokenColors.primary600};
// border-bottom: 2px solid ${DesignTokenColors.primary500};
}
`;

Expand Down
2 changes: 1 addition & 1 deletion src/js/common/components/Style/muiTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import muiStyleOverrides from '../../../components/Style/muiStyleOverrides';
const muiTheme = createTheme({
palette: {
primary: {
main: `${DesignTokenColors.primary600}`, // Former brandBlue #2E3C5D
main: `${DesignTokenColors.primary500}`, // Former brandBlue #2E3C5D
dark: `${DesignTokenColors.primary700}`,
},
secondary: {
Expand Down
2 changes: 1 addition & 1 deletion src/js/common/components/Widgets/OpenExternalWebSite.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class OpenExternalWebSite extends Component {
target={this.props.target || ''}
rel="noopener noreferrer"
title={this.props.title || ''}
aria-label={this.props.ariaLabel}
aria-label={this.props.ariaLabel || this.props.title || ''}
>
{this.props.body ? this.props.body : ''}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/Widgets/ShowMoreButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const styles = (theme) => ({

const ShowMoreButtonsStyled = styled('button')(({ theme }) => (`
border: 0 !important;
color: #0858A1;
color: #206DB3;
cursor: pointer;
display: block !important;
background: #fff !important;
Expand Down

0 comments on commit f9a56af

Please sign in to comment.