site-kit-wp
site-kit-wp copied to clipboard
Search queries in the "Top search queries" widget are overflowing on the shared dashboard at narrow viewports
Bug Description
When viewing the "Top search queries" widget on the shared dashboard at narrow viewports, long search queries can currently overflow the clicks and impressions metrics.
Steps to reproduce
- Login to Site Kit as an admin and share Search Console.
- Login as a second user with shared access to Search Console and scroll down to the "Top search queries" widget.
- Ensure the viewport is set to a relatively narrow width.
- See that long search queries overflow the clicks and impressions metrics.
- Note that this is of course dependent on having some long search queries appear in the list for the connected Analytics property. I discovered this using the
oi.ieproperty. Alternatively, it can be verified using Storybook by making the search results a bit longer for the view-only story.
Screenshots
Search queries overflow in the "Top search queries" widget:
They should show ellipses similarly to the "Top performing keywords" Key Metrics widget:
Additional Context
- PHP Version: any
- OS: any
- Browser: any with a narrow enough viewport
- Plugin Version: noticed on 1.122.0
- Device: any
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- When viewing the "Top search queries" widget on the shared dashboard at narrow viewports, long search queries should not overflow the clicks and impressions metrics, and should instead be truncated with ellipses (similarly to the "Top performing keywords" Key Metrics widget).
Implementation Brief
- [ ] In
assets/sass/components/global/_googlesitekit-table.scss:-
[ ] Add styling for
.googlesitekit-table .googlesitekit-table__body-item-content spanfor a max viewport width of$bp-tabletto the following:display: block; overflow: hidden; text-overflow: ellipsis;- [ ] This is similar to what is set for
.googlesitekit-table .googlesitekit-table__body-item-content .googlesitekit-cta-link.
- [ ] This is similar to what is set for
-
Test Coverage
- No tests need to be added/updated.
- Update any failing VRT references if required.
QA Brief
Changelog entry
IB ✔️
QA Update ✅
- Tested on dev environment.
- Verified when viewing the "Top search queries" widget on the shared dashboard at narrow viewports, long search queries not overflow the clicks and impressions metrics, and instead be truncated with ellipses (similarly to the "Top performing keywords" Key Metrics widget).
Latest:
Develop :