Bugfix
(User-visible)
When switching to the color mixer tab in the color chooser, the following error occurred:java.lang.AssertionError: Attribute 'style', already given in current element. This happened because the icons were given an inline style during server-side rendering in the Java code, which led to conflicts.
In addition, another problem occurred when switching back from the color mixer tab, as the IDs of the color fields were set to zero after a detach. As a result, the page could not be displayed and an error fragment was displayed instead.
Solution
The problems were solved by the following changes:
- Removal of inline styling.
- Introduction of CSS classes for the icons.
- Ensuring that the color fields are guaranteed to receive an ID during drawing.
Testing
- Start the application and open the ColorChooser. Then switch to the color mixer tab.
- Check that the inline styling error no longer occurs.
- Ensure that the styling looks the same as before and that there are no errors.
- Switch back from the color mixer tab and check that the error with the IDs no longer occurs and that the page is drawn correctly.