generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: organize colors, modal buttons (#473)
* organize and prune color variables and apply light theme at custom modal level * use var for disabled input text color * prevent flicker on select file button * remove classnames import from file upload modal * restore necessry whitespace in version modal text * position close x correctly in modal header * fix typo in focus selector * remove unneeded ant animation prop
- Loading branch information
Showing
14 changed files
with
114 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
/* Default and primary button colors differ within modals */ | ||
/* Primary and secondary button colors differ within modals */ | ||
|
||
/* primary button */ | ||
/* primary buttons */ | ||
.light-theme :global(.primary-button), | ||
.light-theme :global(.primary-button):focus { | ||
border: 1px solid var(--light-theme-button-primary-bg); | ||
border-radius: 3px; | ||
background-color: var(--light-theme-button-primary-bg); | ||
color: var(--light-theme-button-primary-text); | ||
background-color: var(--light-theme-btn-primary-bg); | ||
border: var(--light-theme-btn-primary-border); | ||
color: var(--light-theme-btn-primary-color); | ||
} | ||
|
||
.light-theme :global(.primary-button):hover { | ||
color: var(--light-theme-button-primary-text-hover); | ||
border: 1px solid var(--light-theme-button-primary-border-hover); | ||
.light-theme :global(.primary-button:hover) { | ||
background-color: var(--light-theme-btn-primary-hover-bg); | ||
border: var(--light-theme-btn-primary-hover-border); | ||
color: var(--light-theme-btn-primary-hover-color); | ||
} | ||
|
||
.light-theme :global(.primary-button):disabled { | ||
border: 1px solid var(--light-theme-button-primary-text-disabled); | ||
color: var(--light-theme-button-primary-text-disabled); | ||
background-color: var(--light-theme-button-primary-bg-disabled); | ||
.light-theme :global(.primary-button[disabled]) { | ||
background: var(--light-theme-btn-primary-disabled-bg); | ||
border: var(--light-theme-btn-primary-disabled-border); | ||
color: var(--light-theme-btn-primary-disabled-color); | ||
} | ||
|
||
/* secondary button */ | ||
/* secondary buttons: typically: close, ok, cancel */ | ||
.light-theme :global(.secondary-button), | ||
.light-theme :global(.secondary-button):focus { | ||
border: 1px solid var(--light-theme-button-secondary-border); | ||
border-radius: 3px; | ||
background-color: transparent; | ||
color: var(--light-theme-button-secondary-text); | ||
background-color: var(--light-theme-btn-secondary-bg); | ||
border-color: var(--light-theme-btn-secondary-border); | ||
color: var(--light-theme-btn-secondary-color); | ||
} | ||
|
||
.light-theme :global(.secondary-button):hover { | ||
background-color: var(--light-theme-button-secondary-bg-hover); | ||
color: var(--light-theme-button-secondary-text-hover); | ||
border: 1px solid var(--light-theme-button-secondary-border); | ||
.light-theme :global(.secondary-button:hover) { | ||
background-color: var(--light-theme-btn-secondary-hover-bg); | ||
border-color: var(--light-theme-btn-secondary-hover-border); | ||
color: var(--light-theme-btn-secondary-hover-color); | ||
} | ||
|
||
.light-theme :global(.secondary-button):disabled { | ||
border: 1px solid var(--light-theme-button-primary-border-disabled); | ||
color: var(--light-theme-button-secondary-text-disabled); | ||
background-color: transparent; | ||
.light-theme :global(.secondary-button[disabled]) { | ||
background: var(--light-theme-btn-secondary-disabled-bg); | ||
border: var(--light-theme-btn-secondary-disabled-border); | ||
color: var(--light-theme-btn-secondary-disabled-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.