Provide Enough Contrast

Guideline

There should be sufficient color contrast so that:

You can check the contrast ratios for colors at http://webaim.org/resources/contrastchecker/.

WCAG References

For more information, Refer to the following topics

ePortal Recommendations

In most cases, ClearPath ePortal automatically generates web applications that provide enough color contrast by default. However, possible exceptions occur when your data source project is MCP T27 or OS 2200 UTS. In this case, you can optionally retain the original colors from the terminal application; these colors may not meet the contrast requirements for accessibility.

Scaffolding MVC Applications to Ignore Terminal Colors

If you want to ignore the original colors used in the terminal application, do not select the option Preserve Screen Layouts and Styles when you scaffold the views for an MVC application. When you select this option, ePortal attempts to preserve the original terminal colors.

Refer to the following topics for more information:

Configuring Web Forms Applications to Ignore Terminal Colors

If you want to ignore the original colors used in the terminal application, set the MapTerminalHighlightCharactersToCSS presentation generation option to false.

Refer to the following topics for more information:

Styling Colors

Typically, you style your web application using the CSS color and background-color properties, or by using the web forms properties ForeColor and BackColor. If you change these proeprties from their default settings, use the tools at http://webaim.org/resources/contrastchecker/ to check contrast ratios.