product/components/inputs

ID:
product/components/inputs
Automated score:
97.5
View JSON file

3 violations: Light: 1 Dark: 1 HC Light: 1

Ensures the contrast between foreground and background colors meets APCA custom level conformance minimums thresholds. Elements must meet APCA conformance minimums thresholds. Help URL

HTML

<input class="s-input" id="example-item3" type="text" placeholder="Enter your input here" readonly="" value="Prefilled readonly input">

Target

#example-item3

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 27.03Lc (foreground color: #babfc5, background color: #f1f2f3, font size: 9.8pt (13px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

Ensures the contrast between foreground and background colors meets APCA custom level conformance minimums thresholds. Elements must meet APCA conformance minimums thresholds. Help URL

HTML

<div class="stacks-badge-dotnet--text d-flex flex__center brr-sm px8 py4">Razor</div>

Target

.stacks-badge-dotnet--text

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 45.6Lc (foreground color: #252627, background color: #9e92c7, font size: 9.8pt (13px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="hljs-comment">&lt;!-- Base --&gt;</span>

Target

.hljs-comment:nth-child(1)

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 45.68Lc (foreground color: #999999, background color: #1d1b1b, font size: 9.8pt (13px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="hljs-comment">&lt;!-- Disabled --&gt;</span>

Target

.hljs-comment:nth-child(16)

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 45.68Lc (foreground color: #999999, background color: #1d1b1b, font size: 9.8pt (13px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="hljs-comment">&lt;!-- Readonly --&gt;</span>

Target

.hljs-comment:nth-child(33)

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 45.68Lc (foreground color: #999999, background color: #1d1b1b, font size: 9.8pt (13px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<input class="s-input" id="example-item3" type="text" placeholder="Enter your input here" readonly="" value="Prefilled readonly input">

Target

#example-item3

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 24.15Lc (foreground color: #73787d, background color: #333638, font size: 9.8pt (13px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

Ensure the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds. Elements must meet enhanced color contrast ratio thresholds. Help URL

HTML

<input class="s-input" id="example-item3" type="text" placeholder="Enter your input here" readonly="" value="Prefilled readonly input">

Target

#example-item3

Summary

Fix any of the following:

  • Element has insufficient color contrast of 6.33 (foreground color: #525960, background color: #f1f2f3, font size: 9.8pt (13px), font weight: normal). Expected contrast ratio of 7:1