site-kit-wp: Search URL hover background color Inconsistent to other Menu Dropdowns
Bug Description
Minor UI issue. When entering a term into the search URL field, the results appear.
When you hover over the results, the background colour is darker than the other menu options.
See screencast below.

Steps to reproduce
- Go to ‘Site Kit dashboard’
- Click on ‘Search URL’ icon in the header
- Type in a search term
- Results appear see issue when you hover over items.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The hover background color for tertiary buttons, dropdown items and any other selectable/interactive elements on white background that has grey background on hover, should be consistently using
interactive/tertiary-hovercolor token - The background color on hover, should be updated for following elements:
- The dropdown items in: the search results menu items, date range dropdown, help dropdown and Google Account menu item dropdown
- Multi-select chips, the roles in Dashboard Sharing dialog
- Sub-header navigation chip items
- Table rows in
Top search queries for your siteandTop content over the last 28 dayswidgets - Dropdown select in module settings
Implementation Brief
Note: at the time of writing, we are covering tertiary buttons hover with correct color token, we just need to ensure all items listed listed in the AC are aligned, and we have needed toke in the variable already: $c-interactive-tertiary-hover
- Apply the
$c-interactive-tertiary-hovercolor for on hover, on following elements:assets/sass/components/global/_googlesitekit-entity-search.scssfor.mdc-buttonunder hover stateassets/sass/components/global/_googlesitekit-autocomplete.scssfor.autocomplete__option:hoverassets/sass/components/global/_googlesitekit-sharing-settings.scssfor.googlesitekit-sharing-settings__buttonon it’s hover stateassets/sass/vendor/_mdc-button.scssfor.mdc-button--dropdownon hover stateassets/sass/components/global/_googlesitekit-dropdown-menu.scssadd style for.mdc-list-item, on hover state, pseudobeforeshould use the referenced background color and reset/unset defaultopacity, as$c-interactive-tertiary-hoveris havingrgbavalue with transparency already included. This should cover all dropdown items - in particular the ones in user menu and help menuassets/sass/components/global/_googlesitekit-sharing-settings.scssfor.googlesitekit-user-role-select, add hover state style forbeforepseudo element , also unset defaultopacityassets/sass/components/global/_googlesitekit-dashboard-navigation.scssfor.mdc-chipadd for hover state targetbeforepseudo element, and also unset the opacityassets/sass/components/global/_googlesitekit-table.scssfor.googlesitekit-table__body-rowupdate the existinghoverbackgroundassets/sass/components/global/_googlesitekit-entity-header.scssfor.mdc-buttonunder.googlesitekit-entity-header__back, add background on hover forbeforepseudo element, and also unset the opacity
Test Coverage
- No new tests are needed, update any failing VRT
QA Brief
Changelog entry
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 18
@wpdarren @aaemnnosttv Hover state token should be N-50. I just reviewed the whole UI and the only place where is different is in the search component. Let me know if you find another issue and i’ll take a look.
@wpdarren @aaemnnosttv The hover state that is being used on the date picker is the right one.