-
-
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
UI fixes for admin locale select #2684
UI fixes for admin locale select #2684
Conversation
If the admin locale select is displayed alone (ie. on the login screen) it has no bottom margin. By keeping the bottom margin and convert the admin user menu from paddings to margins we take advantage of collapsing margins. Both displayed alone have their full margin and when displayed together the margin collapses.
The store available locales select is a multi select. This is where select2 is still beneficial.
@@ -1,7 +1,7 @@ | |||
<% available_locales = Spree.i18n_available_locales %> | |||
<% available_locales = current_store.available_locales %> |
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.
I think the current_store.available_locales
should apply to the frontend only
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.
Ideally we would have two configurations, but this seems overkill to me. We could keep it as is, if we encourage the users of solidus_i18n
to copy over only the files they need in their app (what I recommend anyway).
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.
Reverted
We have lots of fields on the store administration form. Let's use the plenty space we have to disaply them nicely. Also converts the meta description field into textarea and use a custom Bootstrap select for the default currency.
To be very clear about what this actually does we add a field hint to the store admin form.
f1003a0
to
d512e53
Compare
Now that we have a admin local select and store owners can configure available locales for their stores we should improve the UI/UX a little bit.
Admins should only be able to choose from configured available locales instead of all locales in the systemThe store administration form uses two columns to display all the fields.
The locale select uses select2, because it is a multi select and this is where select2 still shines.
When the local select is displayed alone, as on the login screen, it has correct margins.
Screenshot