igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Navbar title color became black

Open gdayori opened this issue 8 years ago • 3 comments

Description

Navbar title color became black. It was white when on the version 6.2.0

  • igniteui-angular version: 7.0.2
  • browser: Chrome

Steps to reproduce

  1. Just use the igx-navbar in your component without modifying any theme.
<igx-navbar
    [title]="'title'"
    actionButtonIcon="menu"
    (onAction)="onClickMenu()">
</igx-navbar>

Result

Fore color gets black, which is not contrasty.

Expected result

White fore color.

Attachments

Please see the attached navbar-title-color image.

gdayori avatar Dec 03 '18 09:12 gdayori

@gdayori Hi this is the correct contrast color according to the accessibility standards. So this is by design

SlavUI avatar Dec 03 '18 09:12 SlavUI

@SlavUI Please post the contrast coefficients for white and black for reference.

kdinev avatar Dec 03 '18 10:12 kdinev

@gdayori there was a bug in the navbar theme resulting in the navbar text color always being white. We have fixed the bug, hence why the resulting text color is now black.

In this case black, according to the accessibility standards, has a contrast ratio of 7:1 against the blue background color (#09f). White, on the other hand, has a contrast ratio of 3:1, which doesn't even satisfy the AA accessibility standard.

You can verify the above here.

simeonoff avatar Dec 03 '18 12:12 simeonoff