Skip to content

Background and foreground colours do not have a sufficient contrast ratioΒ #2484

Closed

Description

@gedenata

πŸ› Bug Report

Contrast β€” These are opportunities to improve the legibility of your content. Low-contrast text is difficult or impossible for many users to read.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  • <section className="copyright"></section>. In the development, already changes the css color by !important in /website/static/css/custom.css to force the color: rgba(255, 255, 255, 0.4); and it's good but when deploy it to the production still no effect.
.nav-footer .copyright {
    color: #ffffff !important;
}

Screen Shot 2020-03-30 at 16 23 12

Expected behavior

  • In development should same as production

Your Environment

  • Docusaurus version used: "docusaurus": "^1.14.4"
  • Google Chrome Version 80.0.3987.149 (Official Build) (64-bit)
  • macOS Mojave V.10.14.6

Activity

  1. added
    bug
    status: needs triage
    on Mar 30, 2020
  2. added
    v1
    on Mar 30, 2020
  3. removed
    status: needs triage
    on Jun 5, 2020
  4. yangshun commented on Jun 5, 2020

    @yangshun
    Contributor

    PRs welcome!

  5. added
    difficulty: starter
    on Jun 5, 2020
  6. psjishnu commented on Jun 9, 2020

    @psjishnu

    @yangshun So is the issue the text color of footer ?
    screen

  7. itsaaryan commented on Jun 10, 2020

    @itsaaryan

    Can i work on this issue.

  8. slorber commented on Jun 10, 2020

    @slorber
    Collaborator

    Yes @AARYAN-MAHENDRA thanks

  9. added
    status: claimed
    on Jun 10, 2020
  10. itsaaryan commented on Jun 10, 2020

    @itsaaryan

    Thanks.

  11. slorber commented on Jun 11, 2020

    @slorber
    Collaborator

    @AARYAN-MAHENDRA I'm not totally sure to understand what you want to do.

    The copyright and links of v1 footer are not very readable?

    I'm not against using alpha 0.6 for copyright, and up to 0.8 for non-hovered links.

    For example, in main.css:

    from

    .nav-footer .copyright {
      color: rgba(255, 255, 255, 0.4);
      text-align: center;
    }
    

    to

    .nav-footer .copyright {
      color: rgba(255, 255, 255, 0.6);
      text-align: center;
    }
    
  12. slorber commented on Jun 11, 2020

    @slorber
    Collaborator

    @gedenata also not sure what you mean by "in development same as production" and about using !important. to me updating main.css in docusaurus v1 seems to work fine.

  13. alexkrolick commented on Jan 5, 2021

    @alexkrolick
    Contributor

    I am not sure if this was meant to be a catch-all for contrast issues, but there are a few other areas that need more contrast:

    • Link/Primary color: #25c2a0 fails at every size
    • Sidebar/Secondary color: #606770 marginal at smaller sizes

    Screen Shot 2021-01-05 at 12 25 26 PM


    Screen Shot 2021-01-05 at 12 25 31 PM

  14. slorber commented on Jun 10, 2021

    @slorber
    Collaborator

    The Docusaurus team is actively working on Docusaurus v2.

    After a very long alpha, Docusaurus v2 is now in beta.
    We believe that the v2 beta is already better than v1, and v2 is ready for maintstream adoption.

    Apart from critical issues and security fixes, we don't plan to invest much time on Docusaurus v1 anymore.

    We are all closing v1 issues.
    Maybe the current issue is already fixed in Docusaurus v2.
    Please try to upgrade, and if the issue is still there on Docusaurus v2, open a new issue.

  15. alexkrolick commented on Jun 10, 2021

    @alexkrolick
    Contributor

    @slorber the contrast ratios are still inaccessible in v2

  16. slorber commented on Jun 10, 2021

    @slorber
    Collaborator

    @alexkrolick I suggest opening a dedicated issue with screenshots of what elements are inaccessible

    It's likely that we'll always have at least some minor accessibility issues. I don't feel that we should have one big accessibility GitHub issue to report all problems in a messy way and that we'll keep open forever. But rather have 1 distinct issue per concrete problem that will be closed every time such problem is fixed.

    Note that as a workaround it's still possible to customize the colors of your site if the classic theme is not doing a perfect job by default (but I agree we should aim to do a perfect job by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdifficulty: starterstatus: claimedv1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions