Skip to content

Commit

Permalink
fix(signup): switch primary button text color between light and dark …
Browse files Browse the repository at this point in the history
…mode

make the button label legible against the background
  • Loading branch information
masakudamatsu committed Jun 4, 2023
1 parent 7688e19 commit ffe8f5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elements/ComposeLoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const styleButton = `
& a[data-button-purpose="signup"],
& button[data-button-purpose="signup"] {
background-color: var(--dialog-button-color);
color: white; /* TODO #344: Make button label text see-through the background */
color: var(--primary-button-text-color); /* TODO #344: Make button label text see-through the background */
width: 100%;
}
`;
Expand Down
2 changes: 1 addition & 1 deletion src/elements/ComposeLoginPage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('ComposeLoginPage component', () => {
.c0 a[data-button-purpose="signup"],
.c0 button[data-button-purpose="signup"] {
background-color: var(--dialog-button-color);
color: white;
color: var(--primary-button-text-color);
width: 100%;
}
Expand Down
2 changes: 2 additions & 0 deletions src/elements/GlobalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const setColorScheme = `
--button-shadow-color: ${color['black 33']};
--button-shadow-color-focus: ${color['focus-blue 100']};
--dialog-button-color: ${color['google-blue 100']};
--primary-button-text-color: ${color['white 93']};
--link-text-color: ${color['google-blue 100']};
--menu-border-color: ${color['google-blue 100']};
--menu-item-color: ${color['dark-grey 100']};
Expand All @@ -58,6 +59,7 @@ const setColorScheme = `
--button-shadow-color: ${color['black 60']};
--button-shadow-color-focus: ${color['white 100']};
--dialog-button-color: ${color['moonlight 100']};
--primary-button-text-color: #5c5c5c;
--link-text-color: ${color['moonlight 100']};
--menu-border-color: ${color['moonlight 100']};
--menu-item-color: ${color['off-white 100']};
Expand Down

0 comments on commit ffe8f5c

Please sign in to comment.