Skip to content

CLI: text color situation on terminal while logging the output #1205

@padmavemulapati

Description

@padmavemulapati

When running axe-core/cli commands in Terminal, if terminal has setting of Black backgorund,
Why is the non-bold black text changing to white, but the bold black text isn't(Still in black color text so that unable to find the text what it is)? That feels like we're missing something in the logging that is forcing the color. When we need to inherit the terminal defined colors.
Unless, it is doing that and your dark color scheme was incorrectly configured

To Reproduce
Steps to reproduce the behavior:

  1. Installed axe-core/cli dev build - npm i @axe-core/cli@next (4.10.2 installed)
  2. Run the command axe www.deque.com --browser chrome/firefox
    Issue:
    When Terminal Background is Black color:
Image

Here actual log is:

dq_padmavathi@MacBookPro CLI % axe www.deque.com --browser ch     
Running axe-core 4.10.3 in chrome

Testing http://www.deque.com/ ... please wait, this may take a minute.

  Violation of "landmark-unique" with 1 occurrences!
    Ensure landmarks are unique. Correct invalid elements at:
     - #main-navigation
    For details, see: https://dequeuniversity.com/rules/axe/4.10/landmark-unique

1 Accessibility issues detected.
Testing complete of 1 pages

Please note that only 20% to 50% of all accessibility issues can automatically be detected. 
Manual testing is always required. For more information see:
https://dequeuniversity.com/class/testing

Here from the screenshot, we were unable to the text "Running axe-core 4.10.3 in chrome" because of the bold text is not appearing

  1. See error

Expected behavior
when we changed the background settings to white/light colored background
everything is appearing

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions