You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the button references the base name of the css class instead whereas the class is declared as the css class name suffixed with the htmlId.
This should be fixed with the new release. There was an issue in the function get_ref() in the module CssStyle.py. Normally I put a temporary workaround to solve this problem.
I found also that there was an extra htmlId argument passed in the css_class method
@Property
def css_class(self):
"""
The internal class used to put a custom Style to this object.
Only 1 CSS class can be added to an HTML object
:rtype: Classes.CatalogButton.CatalogButton
"""
if self._css_class is None:
self._css_class = Classes.CatalogButton.CatalogButton(self.htmlObj._report, self.classList['main'], html_id=self.htmlObj.htmlId).basic()
return self._css_class
removing it seems to fix the issue. but not sure whether it's supposed to stay
It looks like the button references the base name of the css class instead whereas the class is declared as the css class name suffixed with the htmlId.
For instance:
test_button
Whereas the styles are declared as such:
.cssbuttonbasic_button_2051657361000 {font-weight: bold ;padding: 1px 10px ;margin: 2px 0 2px 0 ;text-decoration: none ;border-radius: 5px ;white-space: nowrap ;display: inline-block ;-webkit-appearance: none ;-moz-appearance: none ;border: 1px solid #1b5e20 ;color: #000000 ;background-color: #FFFFFF ;}
.cssbuttonbasic_button_2051657361000:hover {text-decoration: none ;cursor: pointer ;background-color: #1b5e20 ;color: #e8f5e9 ;}
.cssbuttonbasic_button_2051657361000:focus {outline: 0 ;}
.cssbuttonbasic_button_2051657361000:disabled {cursor: none ;background-color: #1b5e20 ;color: #43a047 ;font-style: italic ;}
The text was updated successfully, but these errors were encountered: