product/components/button-groups

ID:
product/components/button-groups
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

<span class="s-btn--number">197</span>

Target

.js-btn-group-item[type="button"]:nth-child(1) > .s-btn--badge > .s-btn--number

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 56.46Lc (foreground color: #ffffff, background color: #9da0a2, font size: 9.0pt (12px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="s-btn--number">37</span>

Target

.s-btn__dropdown.js-btn-group-item[type="button"] > .s-btn--badge > .s-btn--number

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 56.46Lc (foreground color: #ffffff, background color: #9da0a2, font size: 9.0pt (12px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="s-btn--number">234</span>

Target

.js-btn-group-item.is-selected[aria-current="true"] > .s-btn--badge > .s-btn--number

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 55.18Lc (foreground color: #f1f3f4, background color: #8f9397, font size: 9.0pt (12px), 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="s-btn--number">197</span>

Target

.js-btn-group-item[type="button"]:nth-child(1) > .s-btn--badge > .s-btn--number

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 35.95Lc (foreground color: #252627, background color: #848688, font size: 9.0pt (12px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="s-btn--number">37</span>

Target

.s-btn__dropdown.js-btn-group-item[type="button"] > .s-btn--badge > .s-btn--number

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 35.95Lc (foreground color: #252627, background color: #848688, font size: 9.0pt (12px), font weight: 400). Expected minimum APCA lightness contrast of 60Lc

HTML

<span class="s-btn--number">234</span>

Target

.js-btn-group-item.is-selected[aria-current="true"] > .s-btn--badge > .s-btn--number

Summary

Fix all of the following:

  • Element has insufficient APCA custom level contrast of 39.38Lc (foreground color: #343638, background color: #939698, font size: 9.0pt (12px), 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

<span class="s-btn--number">197</span>

Target

.js-btn-group-item[type="button"]:nth-child(1) > .s-btn--badge > .s-btn--number

Summary

Fix any of the following:

  • Element has insufficient color contrast of 5.78 (foreground color: #ffffff, background color: #62666a, font size: 9.0pt (12px), font weight: normal). Expected contrast ratio of 7:1

HTML

<span class="s-btn--number">37</span>

Target

.s-btn__dropdown.js-btn-group-item[type="button"] > .s-btn--badge > .s-btn--number

Summary

Fix any of the following:

  • Element has insufficient color contrast of 5.78 (foreground color: #ffffff, background color: #62666a, font size: 9.0pt (12px), font weight: normal). Expected contrast ratio of 7:1