-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
[BUU] Dropdown UI tweaks (tom-select) #11932
[BUU] Dropdown UI tweaks (tom-select) #11932
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
ef35776
to
8f7db84
Compare
We should be able to use @extend .icon-chevron-down, but I couldn't get it to work. I'd like to have a better method for this, but we should upgrade our ancient FontAwesome before worrying about that.
The query input can grow to fill the space.
Hmm, but this isn't useful until we get Tom-Select to work the way we want.. To do that, I think we'd ned to hook into TS to clear the current selection when focused, then set it back upon blur (if no selection was made). Hmm, but we still want it to show slected in the dropdown list. Can we do it with css maybe?
8f7db84
to
01f4db3
Compare
It's more compact, and we don't need to see the currently selected value because it's highlighted in the list already.
This is unrelated to the rest of the PR, I just noticed this issue so decided to fix it. I can't find any explanation, or think of any good reason for this rule, so I'm burning it.
This comment was marked as resolved.
This comment was marked as resolved.
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.
Great!
We found that this only seems to affect Mario's browser (Brave), so won't try and fix it at this stage. |
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.
Nice one 👏 I just have a couple of comments
01f4db3
to
37a1776
Compare
this was bugging me too much ;D I think it can be fixed by changing vertical padding from 0.5rem to 0.6 rem here .plugin-dropdown_input .dropdown-input { |
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.
Nice 1
I'm not sure why this requires extra padding here, but it looks good 🤷 Co-authored-by: Mario Carabotta <6696729+mariocarabotta@users.noreply.github.com>
8add6fa
to
443b313
Compare
Thanks Mario, that looks good to me. I've updated it, and started deploying to au_staging |
As this is quite a different component now, and it affects multiple screens, I'm going to request some testing. |
@dacook just to be sure, when speaking about "old style" you include placeholder, size and "All" option? |
Hey @RachL are you choosing the rebase option when updating the branch? |
@sigmundpetersen yes I thought I did, but does not look like it :/ |
Merging and including it in the release, as per this discussion. |
What? Why?
What should we test?
With
admin_style_v3
feature toggle,Check that dropdowns behave as expected, eg in:
/admin/products
/admin/orders
/admin/enterprises/*/edit#/address_panel
Note that some dropdowns still have the older style, they can be changed over in future PRs
Single select with search:
Single select with no search: