Skip to content
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

Remove styling to allow switching answers-search-ui icon divs to spans #1169

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Feb 20, 2024

This PR removes styling that targets arbitrary spans in Answers-resultsHeader. This styling was being automatically applied to icons using the answers-search-ui partial (or other icons) when the divs were changed to spans for accessibility reasons, which caused visual regressions. This was only an issue on vertical full page map templates which include the search bar and nav tabs in Answers-resultsHeader, instead of just the results count and applied filters.

Based on the PR that initially added this styling, this was needed to ensure results count elements had the correct ordering on both ltr and rtl experiences. I checked a vertical template and vertical full page map template for en and ar locales in the test site and the results count elements seem to still be flipped, as expected. The only other spans that I saw within Answers-resultsHeader seemed to be the nav More icon and applied filters, both of which seemed fine after removing this styling.

J=TECHOPS-11042
TEST=manual

Since we no longer have a paid Percy subscription, our snapshots are not being generated. So I've included some screenshots of pages after the changes in this PR, pointing to v1.16.6 of answers-search-ui which contains the icon div to span change:

en:
Screenshot 2024-02-20 at 9 08 26 AM
Screenshot 2024-02-20 at 9 08 01 AM
Screenshot 2024-02-20 at 9 07 39 AM

ar:
Screenshot 2024-02-20 at 9 09 00 AM
Screenshot 2024-02-20 at 9 09 16 AM
Screenshot 2024-02-20 at 9 09 37 AM

@coveralls
Copy link

Coverage Status

coverage: 9.35%. remained the same
when pulling c6608ef on dev/div-to-span
into 40f138f on hotfix/v1.33.5.

@nmanu1 nmanu1 merged commit 1d2d07d into hotfix/v1.33.5 Feb 20, 2024
15 of 16 checks passed
@nmanu1 nmanu1 deleted the dev/div-to-span branch February 20, 2024 14:45
@nmanu1 nmanu1 mentioned this pull request Feb 20, 2024
nmanu1 added a commit that referenced this pull request Feb 20, 2024
### Fixes
- Resolve vulnerabilities (#1167)
- Remove `span` styling and bump answers-search-ui version to 1.17 so icon `div`s are changed to `span`s without affecting their styling (#1169, #1170)
  - Note, any custom styling that is applied by targeting `div`s or `span`s directly may be impacted by this change. This could result in previously applied styles no longer being applied to these icons, or other styles inadvertently being applied to the icons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants