Add CSS Classes to Control Templates
Posted: June 10th, 2022, 8:47 am
Given an input like below, there is a lot of default CSS being applied directly to the tags instead of a CSS class of some kind.
This makes both detaching and overwriting a control from the default styling more difficult when CSS conflicts occur. Some styling is even applied to manually created HTML elements even though they are not an EASYProcess control.
An example of styling that's difficult to revert without messing up the styling of other elements:
Suggestion
Wrap all controls in a span with a default class based on the type of control and map all default styling to use that class and only elements found inside the element with that class.
This makes both detaching and overwriting a control from the default styling more difficult when CSS conflicts occur. Some styling is even applied to manually created HTML elements even though they are not an EASYProcess control.
An example of styling that's difficult to revert without messing up the styling of other elements:
Suggestion
Wrap all controls in a span with a default class based on the type of control and map all default styling to use that class and only elements found inside the element with that class.