-
Notifications
You must be signed in to change notification settings - Fork 947
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
Make ToggleButtons respect passed style
kwarg
#1714
Make ToggleButtons respect passed style
kwarg
#1714
Conversation
Ah, you'll also need to modify the styleProperties like the int slider:
|
To explain more: the error is here in the Travis log (which you can find by clicking on the "Details" link above, or on the red X:
The last line indicates that the styleProperties does not properly include a description_width value, which leads to the above suggestion to augment the styleProperties with the DescriptionStyleModel styleProperties. Isn't typescript great? In normal javascript, we wouldn't have found out about this omission until we hit a probably hard-to-debug bug where the style properties wouldn't actually update. In this case, the typings force us to fix the bug before things even compile. |
@hinnefe2 - thanks again for this PR. I should make a release tonight (i.e., in the next 10 hours or so) - please let me know if you have time to look at the above comment, or alternatively I can look into making the change. |
Also, one more thing: the name/address on the commit is: (a) Tell git your name:
I'm happy to help with either of these. |
(I could also make the release tomorrow morning, i.e., within 24 hours, if the extra time helps...) |
Hi @jasongrout - I think this is good to go. On my local machine the description widths for toggle buttons respect the Thanks for helping me through this - java/typescript is a bit outside my wheelhouse but you made it easy to contribute. I'll definitely be back next time I find something that could use fixing. |
Awesome, thanks! |
This looks great to me too. I checked it and it works as well. Thanks again! |
style
kwargstyle
kwarg
This PR is a (work in progress) attempt to solve #1691.
Things that
I've tried so far (which haven't worked)this includes:ToggleButtonStyle
inherit fromDescriptionStyle
in both the.py
and.ts
definitions.styleProperties
in the.ts
definition.