Skip to content
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

Slight change in how the css classes get added #70

Closed
epykachu opened this issue Mar 12, 2020 · 1 comment
Closed

Slight change in how the css classes get added #70

epykachu opened this issue Mar 12, 2020 · 1 comment
Assignees
Labels
question Further information is requested
Projects

Comments

@epykachu
Copy link
Collaborator

Hello, in the Html.py module I have changed the order of the pyClassNames so that the latest added classes get precedence in the css world:

elif pyClassNames is not None:
  pyClsNames = [cls.get_ref() if hasattr(cls, 'get_ref') else cls for cls in pyClassNames['main']][::-1]

this fixes an issue whereby all the classes that were defined previously would take precedence over the newly defined attributes.

Let me know if there's a cleaner to achieve this.

@epykachu epykachu added the question Further information is requested label Mar 12, 2020
@epykachu epykachu added this to To Do in Epyk UI via automation Mar 12, 2020
Epyk UI automation moved this from To Do to Done Mar 12, 2020
@epykachu
Copy link
Collaborator Author

Didn't fix it properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Epyk UI
  
Done
Development

No branches or pull requests

4 participants