-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
8829/fix/redesign sort UI #9489
8829/fix/redesign sort UI #9489
Conversation
@merwhite11 I left some feedback for @aarasawa on the review -- maybe you two can collaborate to try this out using the |
3ce6633
to
a1fd84d
Compare
for more information, see https://pre-commit.ci
I thought I would push the updates that I had with implementing using details tag as @mekarpeles recommended. It also got rid of the use of manual spacing. Need help with CSS. The CSS that the span element in the HTML uses is in legacy.less. I have some styling that I attempted to try to use however they never rendered, even when I tried moving styling for details into its own CSS .less file. Here is the example CSS I wanted to try: link |
…wa/openlibrary into 8829/fix/redesign-sort-ui
…wa/openlibrary into 8829/fix/redesign-sort-ui
@mekarpeles @aarasawa |
Current problems with overriding styling on anchor tags within the drop down menu. I am pushing what we have so that hopefully @rebecca-shoptaw can help when they can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gave it a look over, see the feedback below re: how to switch out the colors and get the tests passing -- and the style override should be no problem at all:
I believe it could be as simple as changing a
to a:link
in the css, this is what the overriding CSS uses and may be how it is one-upping your code as is. This way your code ideally would take precedence and you wouldn't need the !important
Co-authored-by: rebecca shoptaw <[email protected]>
…wa/openlibrary into 8829/fix/redesign-sort-ui
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9489 +/- ##
==========================================
+ Coverage 16.06% 17.05% +0.99%
==========================================
Files 90 89 -1
Lines 4769 4725 -44
Branches 832 829 -3
==========================================
+ Hits 766 806 +40
+ Misses 3480 3409 -71
+ Partials 523 510 -13 ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
@aarasawa this is looking fantastic on |
Oo, I'll take a look at that, thank you for pointing it out @mekarpeles |
Heads up taking this off testing.openlibrary.org to test another PR 👍 |
Something odd that happens is that the template seems to render incorrectly as pointed out in the authors page. #9489 (comment) However, when I go up in the chain and add an empty div in type>author>view.html it fixes the problem. |
* Redesigned UI of sort options into dropdown menu in /search * Reimplemented dropdown menu closer to cta-btn and added CSS component * Create sort-dropper.less * Added i18n internationalization support for dropdown text and CSS changes * Added CSS style revisions to better understand sort option selection * Swapped dropdown menu caret icons to stay consistent with Want to Read dropdown --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: rebecca shoptaw <[email protected]> Co-authored-by: Mek <[email protected]>
Closes #8829
Refactor UI for the sorting option selectors in the search bar. Changed from radio/individual buttons into a dropdown menu.
Technical
Still need to work on the styling of the dropdown menu.
Testing
Screenshot
Stakeholders