-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve the CSS of the admin locale selection and login nav #5113
Conversation
19873db
to
8c6c07d
Compare
Codecov Report
@@ Coverage Diff @@
## main #5113 +/- ##
=======================================
Coverage 88.64% 88.64%
=======================================
Files 563 563
Lines 13883 13883
=======================================
Hits 12306 12306
Misses 1577 1577 π£ Weβre building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Thanks Eli, left a question before approving.
@@ -1,6 +1,7 @@ | |||
<% available_locales = Spree.i18n_available_locales %> | |||
<% if available_locales.size > 1 %> | |||
<div class="admin-locale-selection"> |
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.
Is there a way to keep the old element along with the new (thinking about making the old wrapped into the new) so that Deface changes targeting this element will keep working?
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.
@kennyadsl we can keep the old class name around, I don't think it's worth keeping the same tag name and using weird workarounds to get the same label-click effect. Would that be enough for you?
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.
Let's try to find the best compromise; the class name already covers some usage of deface, if there are other changes to do on the host application side, I think it's acceptable, considering that it's on the Admin side and this is not the most used feature in the day to day of an operator.
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.
Done!
Thanks @elia β€οΈ π― |
- Make it reusable and move the icon from the CSS to the HTML - Add an icon to the expanded menu version - Use label to make the icon clickable - Add a title to the icon for improved usability - Align login icons and text - Keep the legacy class name to support existing customizations
8c6c07d
to
3da9d65
Compare
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.
π
Summary
Extracted from the Dark mode PR as these are overdue fixes that can be treated independently.
Before
After
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: