-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plugin action modals (#96880)
* Update plugin action modals * Fix styles for Jetpack Cloud * Revert heading wording for multiple plugins * Update unit tests * Fix unit test * Fix tests * use Modal component for plugin action dialogs * Revert "use Modal component for plugin action dialogs" This reverts commit b4de867. * fix CSS leakage --------- Co-authored-by: Gergely Csécsey <[email protected]>
- Loading branch information
1 parent
3207ba4
commit 7c98dc2
Showing
19 changed files
with
222 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,45 @@ | ||
@import '@automattic/typography/styles/fonts'; | ||
|
||
.accept__dialog { | ||
padding-bottom: 24px; | ||
max-width: 500px; | ||
} | ||
|
||
.accept__dialog-use-modal { | ||
.components-modal__header h1.components-modal__header-heading { | ||
font-family: $sans; | ||
font-size: 1.25rem; | ||
font-weight: 600; | ||
} | ||
|
||
.accept__dialog-buttons { | ||
display: flex; | ||
justify-content: end; | ||
gap: 0.5rem; | ||
margin-top: 1.5rem; | ||
|
||
.components-button.is-primary.is-scary { | ||
background-color: var( --color-error ); | ||
color: var( --color-text-inverted ); | ||
border-color: var( --color-error ); | ||
|
||
&:hover, | ||
&:focus-visible { | ||
background-color: var( --color-error-60 ); | ||
} | ||
} | ||
} | ||
} | ||
|
||
// TODO: remove after /plugins/manage details doesn't use Dialog | ||
.is-section-plugins .components-modal__screen-overlay { | ||
z-index: z-index( 'root', '.is-section-plugins .components-modal__screen-overlay' ); | ||
} | ||
|
||
// TODO: remove after /plugins/manage details doesn't use Dialog | ||
.is-section-jetpack-cloud-plugin-management .components-modal__screen-overlay { | ||
z-index: z-index( | ||
'root', | ||
'.is-section-jetpack-cloud-plugin-management .components-modal__screen-overlay' | ||
); | ||
} |
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
Oops, something went wrong.