-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color Schemes: update sidebar styles to better match wp-admin #92397
Merged
Conversation
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
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
chad1008
requested review from
a team and
stephanethomas
and removed request for
a team
July 4, 2024 17:18
matticbot
added
[Status] Needs Review
The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
labels
Jul 4, 2024
chad1008
requested review from
fredrikekelund and
nightnei
and removed request for
stephanethomas
July 4, 2024 17:19
This was referenced Jul 4, 2024
Merge branch 'chad1008/fix-modern-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-aquatic-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-blue-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-classic-blue-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-classic-bright-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-classic-dark-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-coffee-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-contrast-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-ectoplasm-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-midnight-color-scheme' into chad1008/sidebar-style-updates
Merge branch 'chad1008/fix-nightfall-color-scheme' into chad1008/sidebar-style-updates
…debar-style-updates
chad1008
changed the title
Color Schemes: update sidebar styles to allow more specificity
Color Schemes: update sidebar styles to better match wp-admin
Jul 12, 2024
github-actions
bot
removed
the
[Status] Needs Review
The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
label
Jul 12, 2024
gabrielcaires
pushed a commit
that referenced
this pull request
Jul 22, 2024
* add specifity to sidebar styles * fix expandable and selected background color * add variable to target the "collapse menu" link * add var for submenu selected hover color * add navredesign submenu selected hover variable * fix selected menu item * fix submenu hover colors * fix navredesign colors and "collapse menu" button * fix "collapse menu" link color * reorganize existing style * fix submenu selected hover color * fix "collapse menu" color * fix navredesign submenu hover color * fix submenu selected hover color * fix "collapse menu" link color * fix "collapse menu" link color * fix navredesign submenu hover color * fix submenu selected hover color * fix submenu hover colors * fix submenu colors * fix submenu selected hover color * fix submenu and "collapse menu" colors * fix subment selected hover color * fix nav redesign submenu and "collapse menu" colors * fix "collapse menu", nav redesign and regular sidebar submenu selected colors * fix submenu text color * Update packages/calypso-color-schemes/src/shared/color-schemes/_aquatic.scss Co-authored-by: Volodymyr Makukha <nei.css@gmail.com> * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * reorganize code * remove empty section * edit code comment * remove empty section * remove empty section * remove empty section * remove empty line * add specifity to sidebar styles * fix expandable and selected background color * add variable to target the "collapse menu" link * add var for submenu selected hover color * add navredesign submenu selected hover variable * fix submenu selected hover color * reorganize code * fix submenu selected hover color and "collapse menu" color * edit code comment * remove empty section * fix nav redesign colors and "collapse menu" color * edit code comment --------- Co-authored-by: Volodymyr Makukha <nei.css@gmail.com>
gabrielcaires
pushed a commit
that referenced
this pull request
Jul 22, 2024
* add specifity to sidebar styles * fix expandable and selected background color * add variable to target the "collapse menu" link * add var for submenu selected hover color * add navredesign submenu selected hover variable * fix selected menu item * fix submenu hover colors * fix navredesign colors and "collapse menu" button * fix "collapse menu" link color * reorganize existing style * fix submenu selected hover color * fix "collapse menu" color * fix navredesign submenu hover color * fix submenu selected hover color * fix "collapse menu" link color * fix "collapse menu" link color * fix navredesign submenu hover color * fix submenu selected hover color * fix submenu hover colors * fix submenu colors * fix submenu selected hover color * fix submenu and "collapse menu" colors * fix subment selected hover color * fix nav redesign submenu and "collapse menu" colors * fix "collapse menu", nav redesign and regular sidebar submenu selected colors * fix submenu text color * Update packages/calypso-color-schemes/src/shared/color-schemes/_aquatic.scss Co-authored-by: Volodymyr Makukha <nei.css@gmail.com> * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * edit code comment * reorganize code * remove empty section * edit code comment * remove empty section * remove empty section * remove empty section * remove empty line * add specifity to sidebar styles * fix expandable and selected background color * add variable to target the "collapse menu" link * add var for submenu selected hover color * add navredesign submenu selected hover variable * fix submenu selected hover color * reorganize code * fix submenu selected hover color and "collapse menu" color * edit code comment * remove empty section * fix nav redesign colors and "collapse menu" color * edit code comment --------- Co-authored-by: Volodymyr Makukha <nei.css@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of 7884-gh-Automattic/dotcom-forge
Proposed Changes
Adds some styles and a few new variables to the Calypso sidebar stylesheet to allow more versatility within individual color schemes to better match wp-admin
This PR contains the changes of 17 other smaller PRs for the individual color schemes (see links in the to-do list on 7884-gh-Automattic/dotcom-forge).
Why are these changes being made?
An issue recently highlighted some disconnects that have developed between our unified/redesigned sidebars and the wp-admin styles for various color schemes. This PR is the first step in making sure our schemes can match what wp-admin displays.
Important Note On Merging:
This PR is a pre-requisite for other PRs for each individual color scheme. I wanted to keep them separate so an individual scheme is easy to revert if needed.
That means this PR has to be merged before any of the others listed in 7884-gh-Automattic/dotcom-forge. It also means, because this PR introduces a few variables that the color schemes on production don't recognize, that we should merge this one and then immediately merge the individual scheme PRs. Ideally, I'd like to merge them all in one go so they can all stack into the same deploy so there's no lag time where specific sidebar elements will be unstyled. The new variables (see below) for the hover state of currently selected submenu items would be the most impactful one if there was a delay on a given scheme.
New variables:
--color-sidebar-submenu-selected-hover-text
: On some schemes, the currently selected submenu item (e.g. Posts > All Posts) does not change its color when hovered. On other schemes, the hover state matches that of unselected submenu items and the color does change. This variable allows us to make that determination on a per-scheme basis.--color-navredesign-sidebar-submenu-selected-hover-text
: This variable accomplishes the same thing as the previous one, but for the Nav Redesign variant of the sidebar, which appears when a site haswp-admin
set in interface setting and the My Home/Hosting page is being viewed (this is the only Calypso page that gets rendered when awp-admin
preference is set.--color-collapse-menu-text
: Different themes handle the color of this menu differently. Sometimes it matches the base sidebar text color, other times the submenu hover color, or maybe just a separate color all together. The hover state seems to be consistent in that it matches the submenu hover color across all schemes, so we thankfully don't need additional specificity there.Testing Instructions
This PR alone won't fully address most schemes, so I'd recommend visual code review to confirm the new variables and changes to existing styles all make sense. When reviewing the schemes themselves the styles will all come together, making a review of the UI more practical.
The individual scheme PRs are all branched off of this one, and can be rebased if we make any changes here to keep them current.