32
41
Fork
You've already forked website
54

Improvement of contrast in main page to conform to WCAG level AAA. #39

Closed
fsologureng wants to merge 1 commit from fsologureng:improve-contrast into main
pull from: fsologureng:improve-contrast
merge into: forgejo:main
forgejo:main
forgejo:monthly-2026-05
forgejo:mahlzahn-eslint-js
forgejo:preview-link-status
forgejo:nightfire
forgejo:2022年12月14日-main
First-time contributor
Copy link

Improved contrast in the main parts of the homepage.

Hero widget is still only dark; I understand it is in progress but I remarked the colours for dark mode.

  • In general, the contrast needed for dark mode is 1000 minus the value of light mode as the backgrounds of one and the other are almost black and white, respectively.
  • I'm a total newbie to Astro+Willwind CSS so I can't figure out how to set the colour of the <p> in the Get Involved section without a cherry pick. I understand that inherits a global style. The contrast is too low for that size in dark mode. It should lighten up to text-steel-200 or something like that.
  • I hope you haven't lost the fiery look of the phrase "We forge"; I've changed the direction of the gradient to improve the contrast at the top of the fonts to keep some more of the orange. The contrast was too low in dark mode.
Improved contrast in the main parts of the homepage. Hero widget is still only dark; I understand it is in progress but I remarked the colours for dark mode. * In general, the contrast needed for dark mode is 1000 minus the value of light mode as the backgrounds of one and the other are almost black and white, respectively. * I'm a total newbie to Astro+Willwind CSS so I can't figure out how to set the colour of the `<p>` in the Get Involved section without a cherry pick. I understand that inherits a global style. The contrast is too low for that size in dark mode. It should lighten up to text-steel-200 or something like that. * I hope you haven't lost the fiery look of the phrase "We forge"; I've changed the direction of the gradient to improve the contrast at the top of the fonts to keep some more of the orange. The contrast was too low in dark mode.
Member
Copy link

How are you testing for this? The Accessibility pane of the Firefox web dev tools doesn't show any contrast issues on the current homepage (apart from a one-character separator in the footer that is too dark).

I'd love to be able to test this whilst making changes myself, so if you could let me know what tool you're using that would be great.

As for the actual changes, I'm happy with lightening most of the text – though to me it does make it harder to read having such harsh contrast with light on dark text.

But the changes in colour of the gradient text look pretty ugly to me and the "hot metal" look is completely lost – I'd rather find another solution if possible. Does the difference have to be that pronounced? Again, if I had a tool that showed the issues you want to fix it would help me to play with different options.

How are you testing for this? The Accessibility pane of the Firefox web dev tools doesn't show any contrast issues on the current homepage (apart from a one-character separator in the footer that is too dark). I'd love to be able to test this whilst making changes myself, so if you could let me know what tool you're using that would be great. As for the actual changes, I'm happy with lightening most of the text – though to me it does make it harder to read having such harsh contrast with light on dark text. But the changes in colour of the gradient text look pretty ugly to me and the "hot metal" look is completely lost – I'd rather find another solution if possible. Does the difference have to be that pronounced? Again, if I had a tool that showed the issues you want to fix it would help me to play with different options.
First-time contributor
Copy link

Lighthouse PageSpeed Insights gives a good list of suggestions to improve the accesibility and the performance of the site.

Example report: https://pagespeed.web.dev/report?url=https%3A%2F%2Fforgejo.org%2F.

This reports can also be generated locally using chromium.

Lighthouse PageSpeed Insights gives a good list of suggestions to improve the accesibility and the performance of the site. Example report: https://pagespeed.web.dev/report?url=https%3A%2F%2Fforgejo.org%2F. This reports can also be generated locally using chromium.
Member
Copy link

I tried that @rohandebsarkar, but it doesn't show any problem with the contrast on any of the things @fsologureng is suggesting should be changed.

In dark mode Lighthouse gives a 100% score for accessibility. In light mode there's one button with insufficient contrast; I'll adjust that.

That said, I assume it's checking against WGAC level AA.

Even the W3C says:

It is not recommended that Level AAA conformance be required as a general policy for entire sites because it is not possible to satisfy all Level AAA Success Criteria for some content.

... and all the (free) tools I've fond only test level AA.

I tried that @rohandebsarkar, but it doesn't show any problem with the contrast on any of the things @fsologureng is suggesting should be changed. In dark mode Lighthouse gives a 100% score for accessibility. In light mode there's one button with insufficient contrast; I'll adjust that. That said, I assume it's checking against WGAC level AA. Even the W3C [says](https://www.w3.org/WAI/WCAG21/Understanding/conformance#levels): > It is not recommended that Level AAA conformance be required as a general policy for entire sites because it is not possible to satisfy all Level AAA Success Criteria for some content. ... and all the (free) tools I've fond only test level AA.
Author
First-time contributor
Copy link

Sorry for the delay in replying, yesterday I wanted to request a pull early enough to interact with you before sleep but I did it in the wrong place >.<. And today I've been busy with personal commitments.

How are you testing for this? The Accessibility pane of the Firefox web dev tools doesn't show any contrast issues on the current homepage (apart from a one-character separator in the footer that is too dark).

I'd love to be able to test this whilst making changes myself, so if you could let me know what tool you're using that would be great.

I have used the Firefox Accessibility pane, Free Accessibility Browser Extension from project axe-core of Deque and WCAG Contrast Checker extension (because have a Privacy policy)

As for the actual changes, I'm happy with lightening most of the text – though to me it does make it harder to read having such harsh contrast with light on dark text.

You can adjust your monitor to improve your own experience, but contrast ratio is an objectiv measure.

Today I just see:

  • the contrast issue of the download button in light mode
  • the contrast issue of the tagline, and
  • the contrast issue of the phrase "Forge great software with Forgejo"

Apparently I tried to fix an obsolete version.

But the changes in colour of the gradient text look pretty ugly to me and the "hot metal" look is completely lost – I'd rather find another solution if possible. Does the difference have to be that pronounced? Again, if I had a tool that showed the issues you want to fix it would help me to play with different options.

This is a recurrent issue when we measure the experience from our sighted point of view. If we want to embrace accessibility we forgoing certain aspects of appearance in favour of content. I am very sure that the solution could be much better than mine, but the two items with problems are essential parts of the message, so I think a solution is needed.

Sorry for the delay in replying, yesterday I wanted to request a pull early enough to interact with you before sleep but I did it in the wrong place >.<. And today I've been busy with personal commitments. > How are you testing for this? The Accessibility pane of the Firefox web dev tools doesn't show any contrast issues on the current homepage (apart from a one-character separator in the footer that is too dark). > > I'd love to be able to test this whilst making changes myself, so if you could let me know what tool you're using that would be great. > I have used the Firefox Accessibility pane, [Free Accessibility Browser Extension](https://www.deque.com/axe/browser-extensions/) from project [axe-core of Deque](https://github.com/dequelabs/axe-core) and [WCAG Contrast Checker extension](https://rumoroso.bitbucket.io/) (because have a Privacy policy) > As for the actual changes, I'm happy with lightening most of the text – though to me it does make it harder to read having such harsh contrast with light on dark text. You can adjust your monitor to improve your own experience, but contrast ratio is an objectiv measure. Today I just see: * the contrast issue of the download button in light mode * the contrast issue of the tagline, and * the contrast issue of the phrase "Forge great software with Forgejo" Apparently I tried to fix an obsolete version. > > But the changes in colour of the gradient text look pretty ugly to me and the "hot metal" look is completely lost – I'd rather find another solution if possible. Does the difference have to be that pronounced? Again, if I had a tool that showed the issues you want to fix it would help me to play with different options. This is a recurrent issue when we measure the experience from our sighted point of view. If we want to embrace accessibility we forgoing certain aspects of appearance in favour of content. I am very sure that the solution could be much better than mine, but the two items with problems are essential parts of the message, so I think a solution is needed.
Author
First-time contributor
Copy link

That said, I assume it's checking against WGAC level AA.

Even the W3C says:

It is not recommended that Level AAA conformance be required as a general policy for entire sites because it is not possible to satisfy all Level AAA Success Criteria for some content.

I think this sentence is taken out of context; if this site had many videos or large image galleries, it is obvious that we cannot provide a strict level of compliance or a good alternative experience for visually impaired people, but a source code forge is like a meta software where non-sighted people could collaborate to develop software for non-sighted people, multiplying the effect of accessibility. The intention of compliance must be followed by the best effort and the well-intentioned goal of achievement, because we, as sighted people, can make the effort to provide accessibility. Otherwise sighted people will not have a good experience, nor will they be able to remedy it, because they cannot emulate the experience of a sighted person.

Ultimately, this is a matter of privilege, and I trust and hope that Forgejo will be a key player in changing the approach. As I have written elsewhere, this is not an issue of choices or characteristics, this is an issue of human rights.

> That said, I assume it's checking against WGAC level AA. > > Even the W3C [says](https://www.w3.org/WAI/WCAG21/Understanding/conformance#levels): > > > It is not recommended that Level AAA conformance be required as a general policy for entire sites because it is not possible to satisfy all Level AAA Success Criteria for some content. > I think this sentence is taken out of context; if this site had many videos or large image galleries, it is obvious that we cannot provide a strict level of compliance or a good alternative experience for visually impaired people, but a source code forge is like a meta software where non-sighted people could collaborate to develop software for non-sighted people, multiplying the effect of accessibility. The intention of compliance must be followed by the best effort and the well-intentioned goal of achievement, because we, as sighted people, can make the effort to provide accessibility. Otherwise sighted people will not have a good experience, nor will they be able to remedy it, because they cannot emulate the experience of a sighted person. Ultimately, this is a matter of privilege, and I trust and hope that Forgejo will be a key player in changing the approach. As I have written elsewhere, this is not an issue of choices or characteristics, this is an issue of human rights.
Member
Copy link

Thanks @fsologureng, I'll take another look at this a bit later (I'm in mobile at the moment).

Thanks @fsologureng, I'll take another look at this a bit later (I'm in mobile at the moment).
Author
First-time contributor
Copy link

@caesar I have been thinking about left the dark mode as it is already and provide a good contrast view in the light mode. What do you think? (with an alert somewhere to indicate that option, obviously).

Contrast is in the limit even for AA between the logo and its background in dark mode :'(, the same happen with the svg's that point each feature, and the mascot as already pointed out @gapodo is in very low contrast yet.

I mean, you can provide logo, svg's and mascot in a (not so cool) way for the light mode to provide a good and accessible view of the site, without sacrifice the coolness of the dark view.

Maybe the mascot at natural as David provided it it is cool too ;)

PD: For evidence: in this contrast checker you can test the relation between the orange of the logo and the features svg's (#FF5000) and the white background. Or orange against the bg-steel-700 (#242E38) of the dark mode.
Dark mode is much better than the white with the orange, but insufficient to fully appreciate the logo for some people.

@caesar I have been thinking about left the dark mode as it is already and provide a good contrast view in the light mode. What do you think? (with an alert somewhere to indicate that option, obviously). Contrast is in the limit even for AA between the logo and its background in dark mode :'(, the same happen with the svg's that point each feature, and the mascot as [already pointed out @gapodo](https://codeberg.org/forgejo/meta/issues/2#issuecomment-725917) is in very low contrast yet. I mean, you can provide logo, svg's and mascot in a (not so cool) way for the light mode to provide a good and accessible view of the site, without sacrifice the coolness of the dark view. Maybe the mascot at natural as David provided it it is cool too ;) PD: For evidence: in [this contrast checker](https://webaim.org/resources/contrastchecker/) you can test the relation between the orange of the logo and the features svg's (#FF5000) and the white background. Or orange against the bg-steel-700 (#242E38) of the dark mode. Dark mode is much better than the white with the orange, but insufficient to fully appreciate the logo for some people.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
404
Broken links or missing content
Accessibility
Accessibility
Blog post
Documentation
Forgejo Documentation
Internationalisation
i18n and l10n
User research - Accessibility
Requires input about accessibility features, likely involves user testing.
User research - Blocked
Do not pick as-is! We are happy if you can help, but please coordinate with ongoing redesign in this area.
User research - Community
Community features, such as discovering other people's work or otherwise feeling welcome on a Forgejo instance.
User research - Config (instance)
Instance-wide configuration, authentication and other admin-only needs.
User research - Errors
How to deal with errors in the application and write helpful error messages.
User research - Filters
How filter and search is being worked with.
User research - Future backlog
The issue might be inspiring for future design work.
User research - Git workflow
AGit, fork-based and new Git workflow, PR creation etc
User research - Labels
Active research about Labels
User research - Moderation
Moderation Featuers for Admins are undergoing active User Research
User research - Needs input
Use this label to let the User Research team know their input is requested.
User research - Notifications/Dashboard
Research on how users should know what to do next.
User research - Rendering
Text rendering, markup languages etc
User research - Repo creation
Active research about the New Repo dialog.
User research - Repo units
The repo sections, disabling them and the "Add more" button.
User research - Security
User research - Settings (in-app)
How to structure in-app settings in the future?
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/website!39
Reference in a new issue
forgejo/website
No description provided.
Delete branch "fsologureng:improve-contrast"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?