-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Selectbox theme additions Fixes #25965, #35246 #36193
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
Conversation
@cleidigh this is pretty cool because it fixes also #25700 I think we should probably not use this on macOS though where the dropdown looks very native and good imho: Can we have a flag on which OS to enable this? Some general feedack:
|
@bpasero @isidorn - Sounds good, I will flush this out per comments...
Regarding the hover issue I mentioned: If you opened three or four terminals and hover over the drop-down list, Do you see this? I will start working on the punch list, take advantage of ContextView |
Scratch Question 1 I'm working on the rest and converting the native select to a simple list. I am having some trouble with applying styles through the CSS file, not sure If |
@cleidigh good point, using our The styling of context view is a bit special because as far as I remember it is rooted as direct child of the body element and not within the workbench bounds. Maybe take a look at how we style the feedback widget that is using the context view. |
Before I go too much further I want to make sure we are on the same page
I now have a working drop-down utilizing ContextView, CSS file based styling, anchored Thanks/Cheers |
@cleidigh yes being able to flip between native and custom solution seems desirable to me. We can still think about using this solution on all OS, but the macOS behaviour imho is not so bad but rather what you would get with a native application too. I do not think this should be a user facing setting though, rather something we decide per platform. For the custom dropdown I would go with the context-view + list widget approach. I am not sure how to best deal with disabled list options though. One challenge for the list widget is how to model disabled options. The notion of disabled items is not provided from the widget. The styling could obviously be done, but the keyboard navigation is probably something that would have to be done on top (so that e.g. when you arrow up or down you jump over the disabled element). I do not think we should use the tree widget because we are trying to model a list. I think the list widget has all the ARIA support we need. |
@bpasero |
Re-factoring for contextview and the list widget required more learning and experiments. Hopefully it will make the next contribution faster ! I've already done a lot of cleanup, but I still have a bit of potential renaming and simplification to do. It is in pretty good shape for review. Besides addressing prior comments I also Linking to a new branch, will merge or post new PR depending on your preference when done. I wanted to keep selectbox-2/add separate and alone until done. Issues/Status: NativeSelectSwitch: Vertical overflow/Margin: List container width: Contextview tracking problem: I am going to continue to test/experiment. Cheers/Thanks |
@cleidigh keep in mind that we have adopted the composite bar in master - which basically takes care of overflow behavior for top level panel actions. Due to this the whole overflow behavior in the panel will change. You can check it out in latest insiders |
@isidorn |
@bpasero I have not seen a similar issue with the debug drop-down, but this does not have the same title adjustments that the panel does. So far this is the only 'identified' problem I have found no answer to. |
I think I fixed the tracking issue. There is a situation when the panel dropdown gets partially hidden. Tweaking some lipstick ;-) |
@bpasero I have fixed all the issues I have found as well as addressing a lot of aesthetic issues.
Let me know if I should try to merge, or update or issue new clean/squashed PR |
@cleidigh thanks, I will try to reserve time in November to test and review in this PR. |
@cleidigh it looks like you are not using the Also, did you find out if it is possible to use the context view widget? |
@bpasero Latest/List/Contextv : I wanted your choice whether I did a new PR or attempted to back Merge the current. I know if I update I probably cannot squash commits on old. |
@cleidigh oh yeah I misunderstood you, sorry. Feel free to create a new PR with your work so we have them separate, thanks! |
@bpasero |
Closing, replaced by PR #37533 |
Fixes #25965, #35246, #25700
@bpasero
I got very delayed by a variety of things including Update/Fixes of my VMs for multiplatform testing.
"Much pain was had!", to quote Yoda ;-( Sorry for the delay...
I did tackle all the to do items left from last time.
Added high contrast mode
Remove scrollbar
Added new color registrations
selectOptionsBorder?: Color;
selectOptionCheckedBackground?: Color;
selectOptionHoverBackground?: Color;
selectOptionCheckedOutline?: Color;
selectOptionHoverOutline?: Color;
Added new colors to themes (other than those that defaults work)
Generally mapped selectOptionChecked ==> color of list focus
Generally mapped selectOptionHover ==> color of list hover
Some exceptions to above for contrast, final colors TBD
Other colors can be set as necessary.
OS X matches other OS'
I did possibly see a hover quirk, but it might be a VM issue
I think the high contrast and theme colors are a nice add to select.
If you think this all makes sense I may suggest converting
to "simple list" which would eliminate any possible OS or
odd select issues.
This would not be a big deal based on what I have already.
Just convert the options to 'li'... etc.
Thanks for checking this out!