-
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
1719 support more styles to toggle buttons #1834
1719 support more styles to toggle buttons #1834
Conversation
|
||
button_color: str or None | ||
The color of each button. This should be a valid CSS color unit, | ||
e.g. 'yellow', '#FFFF00', '255,255,0'. |
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.
The rgb color should be of the form rgb(255,255,0)
, right? https://developer.mozilla.org/en-US/docs/Web/CSS/color
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.
Yes, you are totally right. Thanks for the catch! I will make updates accordingly.
Thanks! |
For future reference, this is fixing #1719. |
Testing the examples given reveals that the color trait won't take something like |
Thanks again! |
Is this supposed to be merged in >>> display(widgets.Button().style.keys)
'_model_module',
'_model_module_version',
'_model_name',
'_view_count',
'_view_module',
'_view_module_version',
'_view_name',
'button_color',
'font_weight']
>>> display(widgets.ToggleButton().style.keys)
['_model_module',
'_model_module_version',
'_model_name',
'_view_count',
'_view_module',
'_view_module_version',
'_view_name',
'description_width'] |
This is answered in #3268 (comment) |
No description provided.