-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed link style generating light and dark modes together (#643)
- Loading branch information
Showing
20 changed files
with
239 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@jpmorganchase/mosaic-content-editor-plugin': patch | ||
'@jpmorganchase/mosaic-site': patch | ||
'@jpmorganchase/mosaic-theme': patch | ||
--- | ||
|
||
Fixed link style CSS is generated against both light and dark modes. Fixed #640. |
4 changes: 2 additions & 2 deletions
4
packages/content-editor-plugin/src/plugins/TableActionMenuPlugin.css.ts
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const lightMode = '[data-mode="light"]'; | ||
export const darkMode = '[data-mode="dark"]'; | ||
|
||
export const lightModeCondition = { | ||
lightMode: { selector: `${lightMode} &` } | ||
}; | ||
export const lightModeInteractiveCondition = { | ||
...lightModeCondition, | ||
lightModeHover: { selector: `${lightMode} &:hover, ${lightMode} &[data-dp-hover="true"]` }, | ||
lightModeActive: { selector: `${lightMode} &:active` }, | ||
lightModeDisabled: { selector: `${lightMode} &:disabled` } | ||
}; | ||
export const darkModeCondition = { | ||
darkMode: { selector: `${darkMode} &` } | ||
}; | ||
export const darkModeInteractiveCondition = { | ||
...darkModeCondition, | ||
darkModeHover: { selector: `${darkMode} &:hover` }, | ||
darkModeActive: { selector: `${darkMode} &:active` }, | ||
darkModeDisabled: { selector: `${darkMode} &:disabled` } | ||
}; | ||
|
||
/** | ||
* Both modes conditions, use with caution. | ||
* All properties will be generated against both modes, if you use with `defineProperties`. | ||
* */ | ||
export const bothModeConditions = { | ||
...lightModeCondition, | ||
...darkModeCondition | ||
}; |
Oops, something went wrong.