Download & Extend

Views' text color does not have sufficient contrast

Project:Drupal core
Version:8.x-dev
Component:views.module
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)
Issue tags:accessibility, VDC

Issue Summary

Part of meta issues #1805996: [META] Views in Drupal Core and #1802678: [META] Views: accessibility review.

Test whether Views' text color has sufficient contrast.

Steps

Reference: core accessibility gate.

User interface changes

The patch from #70 makes the Views UI compliant with the color contrast standards of WCAG AA.

Related issues:

Comments

#1

Issue tags:+Needs manual testing

#2

Issue tags:+Novice

#3

Project:Drupal core» VDC
Version:8.x-dev» <none>
Component:other» Code

#4

This needs to specify which color contrast ratio we are validating against. The gate doesn't seem to specify.

#5

Issue tags:-Novice, -VDC

@Bojhan, see "More info about color and contrast," linked above, and right here: http://drupal.org/node/464500

#6

Issue tags:+Novice, +VDC

Weird untagging?

#7

As a rule of thumb Drupal targets WCAG 2.0 AA. Updating gate page.

Edit: Someone else can feel free to update the appropriate documentation, I don't have time this morning and the task will get lost :)

#8

@Everett Thanks, now people should be able to do a full review. I have adjusted all appropriate documentation.

#9

Some other good tools to make this easier:

#10

Priority:normal» critical

So this will be the first critical, to hit the core queue. I have not done a full review, but upon start, I did notice that the views main landing page does not have sufficient contrast and uses color as the only way to communicate meaning.

table-contrast.jpg

Foreground color: #999999
Background color: #f3f4ee
Contrast Ratio: 2.6:1

WCAG AA: Fail
WCAG AAA: Fail

AttachmentSizeStatusTest resultOperations
table-contrast.jpg36.49 KBIgnored: Check issue status.NoneNone

#11

Priority:critical» normal

#1802678: [META] Views: accessibility review is one critical to cover all of the sub issues. Otherwise thresholds will be completely destroyed :)

#12

Priority:normal» critical

Setting back to critical as per #1805996-41: [META] Views in Drupal Core.

#13

At present I don't have a a test environment in 8, but if anyone has a development box where I can login I'd be happy to check against 8 as well (as well as help with some of the other accessibility issues in the cue). I couldn't find information on which admin theme will be used in 8. Has a definite been set yet? So if someone can bring me up to speed I'd be grateful. Just to kick things off here is a test of 7 with the admin theme Seven (as benchmark) as well as address the issues in #10:

Main landing page

From what I can tell with testing with the Niquelao's Mozilla extension recommended in #9 the main view in views passes on the active divs, but fails on the disabled divs.

My recommendation would be to keep the same color scheme as is Seven for Drupal 7 in Drupal 8, but instead of greying out the colors have a Enabled and Disabled section with the same colors. This could also tie in with making navigating accessible, as well as address the issue in #10 with only being able to navigate through color.

Split the views landing page in enabled and disabled keeping the same color scheme for both

Enabled Views

View 1
View 2

Disabled Views

View 3
View 4

Further test results for the main landing page

Passes, except for:

  • The above mentioned
  • The linked headings at the top of the table (View Name, Tag, etc)
  • The breadcrumb links in Seven

Add new view

Passes, except for:

  • The little red asterisk
  • The breadcrumb links in Seven

Add view from template

Passes, except for:

  • The breadcrumb links in Seven

Import

Passes, except for:

  • The little red asterisk
  • The breadcrumb links in Seven

View itself

Passes, except for:

  • Non active views button at the top, and the add button
  • The h2 heading with the view title below that (the one with the arrow on the left side)

Please note that I don't know if there can variations in data or output that need to be tested? Maybe it's good to have some common use cases, we can test against.

Views Settings Basic

Passes, except for:

  • The breadcrumb links in Seven

Views Settings Advanced

Passes, except for:

  • The breadcrumb links in Seven

Please note though:

In general there is a pattern of small:options failing, usually there is only one of these per tested page, but I can't see in the tool where those are. Does anyone have an idea where I should be looking for those?
Because it would save me some time tracking those down in Firebug.

The other question I have is why not use the the same color scheme of the admin theme in 8, and make sure this is WCAG compliant, and that all modules take over the css? Wouldn't that save a lot of work?

It's advisable to check these results, as I don't know how good the Niquelao's Mozilla extension is, it is a first round, and I may have accidentally overlooked something. It could be handy to save the views section pages as html pages, so that we can run these through different tools, as well as check them manually (this goes for heading structure, etc, as well.) If we could post those, than people don't need to git 8. It could help testing.

#14

Title:Test whether Views' text color has sufficient contrast» Views' text color does not have sufficient contrast
Category:task» bug report

Thanks @Bojhan, @Everett Zufelt, and @DesignDolphin. I think we need to now reclassify this as a critical bug, unfortunately.

#15

Project:VDC» Drupal core
Version:<none>» 8.x-dev
Component:Code» views.module

#16

We have a couple core mentoring participants looking at this issue this week.

#17

I reviewed the views UI Screens(Admin Listing Page, Views Add/Edit Page, Edit Popups) in Seven 8.0-dev (admin theme), using the tool Contrast-A

Views Admin Listing Page

Views List Page

S. No. Title Details Tested Result Remarks
1 Enabled or Active Views Foreground color: #000000
Background color: #FFFFFF
Contrast Ratio: 21:1
WCAG AA: Pass
WCAG AAA: Pass
There is no need for any change here.
2 Disabled Views (Odd Rows) Foreground color: #999999
Background color: #FFFFFF
Contrast Ratio: 2.84:1
WCAG AA: Fail
WCAG AAA: Fail
The Colors need to be relooked at here.
3 Disabled Views (Even Rows) Foreground color: #999999
Background color: #F3F4EE
Contrast Ratio: 2.57:1
WCAG AA: Fail
WCAG AAA: Fail
The Colors need to be relooked at here.
4 Operation Links Foreground color: #999999
Background color: #F3F4EE
Contrast Ratio: 2.57:1
WCAG AA: Fail
WCAG AAA: Fail
The Colors need to be relooked at here.


Add/Edit page

Views Add/Edit Screen

S. No. Title Details Tested Result Remarks
1 Active Tabs Foreground color: #FFFFFF
Background color: #666666
Contrast Ratio: 5.74:1
WCAG AA: Pass
WCAG AAA: Fail
The Colors need to be relooked at here.
2 Normal Tabs Foreground color: #FFFFFF
Background color: #666666
Contrast Ratio: 3.34:1
WCAG AA: Fail
WCAG AAA: Fail
The Colors need to be relooked at here.
3 Titles Foreground color: #333333
Background color: #FFFFFF
Contrast Ratio: 12.6:1
WCAG AA: Pass
WCAG AAA: Pass
There is no need for any change here.
4 Labels Foreground color: #666666
Background color: #FFFFFF
Contrast Ratio: 5.74:1
WCAG AA: Pass
WCAG AAA: Fail
The Colors need to be relooked at here.
5 Links Foreground color: #0074BD
Background color: #FFFFFF
Contrast Ratio: 5.74:1
WCAG AA: Pass
WCAG AAA: Fail
The Colors need to be relooked at here.
6 Action Links Foreground color: #0074BD
Background color: #E7E7E7
Contrast Ratio: 4.01:1
WCAG AA: Fail
WCAG AAA: Fail
The Colors need to be relooked at here.


Edit Popup Screen

Modal Popups

S. No. Title Details Tested Result Remarks
1 Heading Foreground color: #000000
Background color: #F3F4EE
Contrast Ratio: 18.9:1
WCAG AA: Pass
WCAG AAA: Pass
There is no need for any change here.
2 Labels Foreground color: #000000
Background color: #FFFFFF
Contrast Ratio: 21:1
WCAG AA: Pass
WCAG AAA: Pass
There is no need for any change here.
3 Description Text Foreground color: #666666
Background color: #FFFFFF
Contrast Ratio: 5.74:1
WCAG AA: Pass
WCAG AAA: Fail
The Colors need to be relooked at here.
AttachmentSizeStatusTest resultOperations
views-list-page.png80.92 KBIgnored: Check issue status.NoneNone
views-edit-page.jpg84.01 KBIgnored: Check issue status.NoneNone
modal-popup.png59.7 KBIgnored: Check issue status.NoneNone

#18

Issue tags:-Needs manual testing, -Novice, -VDC

Really surprised to see the dropbutton background is not valid. What is the minimum gray background on our current blue link foreground, we can have that validates?

#19

Issue tags:+Needs manual testing, +Novice, +VDC

#20

The core gates say we only need to meet WCAG AA, so about four of those above are Pass, not Fail.

#21

I'd like to help with testing if still needed, but I'm not sure what I have to do.

#22

Looking at Priority levels of issues, can someone clarify whether this lack of contrast renders the system completely broken and not usable at all (critical) or merely makes it difficult to use (major/normal)?

#23

Priority:critical» major

For now, demoting to major until we get an answer to that question.

#24

It has a relatively two simple reasons;

1) It is a hard gate requirement, we resolved (as far I know) all WCAG contrast compliance's in D7 so this would be regression.
2) It satisfies the critical requirement, that it has such an impact on legibility that people with certain deficiencies will not be able to read the text. We cannot show this, because as far I know deficiencies beyond just color are hard to simulate thus no tool does it accurately.

From the WCAG guide, http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast... :

"A contrast ratio of 3:1 is the minimum level recommended by [ISO-9241-3] and [ANSI-HFES-100-1988] for standard text and vision. The 4.5:1 ratio is used in this provision to account for the loss in contrast that results from moderately low visual acuity, congenital or acquired color deficiencies, or the loss of contrast sensitivity that typically accompanies aging.

The rationale is based on a) adoption of the 3:1 contrast ratio for minimum acceptable contrast for normal observers, in the ANSI standard, and b) the empirical finding that in the population, visual acuity of 20/40 is associated with a contrast sensitivity loss of roughly 1.5 [ARDITI-FAYE]. A user with 20/40 would thus require a contrast ratio of 3 * 1.5 = 4.5 to 1. Following analogous empirical findings and the same logic, the user with 20/80 visual acuity would require contrast of about 7:1.

Hues are perceived differently by users with color vision deficiencies (both congenital and acquired) resulting in different colors and relative luminance contrasts than for normally sighted users. Because of this, effective contrast and readability are different for this population. However, color deficiencies are so diverse that prescribing effective general use color pairs (for contrast) based on quantitative data is not feasible. Requiring good luminance contrast accommodates this by requiring contrast that is independent of color perception. Fortunately, most of the luminance contribution is from the mid and long wave receptors which largely overlap in their spectral responses. The result is that effective luminance contrast can generally be computed without regard to specific color deficiency, except for the use of predominantly long wavelength colors against darker colors (generally appearing black) for those who have protanopia. (We provide an advisory technique on avoiding red on black for that reason). For more information see [ARDITI-KNOBLAUCH] [ARDITI-KNOBLAUCH-1996] [ARDITI].

The contrast ratio of 4.5:1 was chosen for level AA because it compensated for the loss in contrast sensitivity usually experienced by users with vision loss equivalent to approximately 20/40 vision. (20/40 calculates to approximately 4.5:1.) 20/40 is commonly reported as typical visual acuity of elders at roughly age 80. [GITTINGS-FOZARD]

The contrast ratio of 7:1 was chosen for level AAA because it compensated for the loss in contrast sensitivity usually experienced by users with vision loss equivalent to approximately 20/80 vision. People with more than this degree of vision loss usually use assistive technologies to access their content (and the assistive technologies usually have contrast enhancing, as well as magnification capability built into them). The 7:1 level therefore generally provides compensation for the loss in contrast sensitivity experienced by users with low vision who do not use assistive technology and provides contrast enhancement for color deficiency as well."

So it is not possible to use for a portion of our userbase. I don't really dare to change statuses anymore, so feel free to mark this whatever you guys want.

#25

Issue tags:+color contrast

I don't really want to get into a discussion about priorities here either. Ultimately i want to see Views (and all of Drupal 8) meet WCAG 2.0 AA.

I think there are about 5 places that the CSS would need to change. This should be a relatively trivial to do given that @ramkumarr has done such a great job identifying where the interface fails due to Contrast-A.

Ultimately if we're building D8 for mobile, then AA is really got to be the minimum. More than ever folks are going to be administering Drupal from their mobile devices & heck, maybe from the beach on a nice day. Ensuring there is sufficient contrast helps everyone.

#26

Assigned to:Anonymous» tim.plunkett

Either I or someone at the VDC sprint will work on getting us to WCAG AA.

#27

Priority:major» critical

Bojhan's summary of why this is critical looks reasonable to me.

#28

Assigned to:tim.plunkett» dead_arm
Status:active» postponed

Postponed on #1826574: Move Views theme-specific CSS to their respective themes, since some of Views color styling is overriding the themes', and once refactored may resolve this issue.

#29

Status:postponed» active

#1826574: Move Views theme-specific CSS to their respective themes is committed so back to active here

#30

Status:active» needs review

Great, how's this work for folks. Believe it addresses all of the WCAG 2.0AA points.

Edit: Some of the changes are with Dropbutton and are made in Bartik & Seven.

AttachmentSizeStatusTest resultOperations
Views-Color-1806022-30.patch2.34 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch Views-Color-1806022-30.patch. Unable to apply patch. See the log in the details link for more information.View details

#31

Thank you for working on that!
I guess someone should post a report again, so it's sure that the patch fixes it.

#32

Issue tags:+Needs screenshot

Can we see that in action? Before/after

#33

Status:needs review» needs work

That patch is not rolled against HEAD, it was blocked until #29 for a reason :) All of those files are gone now.

#34

Status:needs work» needs review

Grayed out styling of disabled views on /admin/structure/views. Views display tabs on the views /edit page are in progress.

Before

views-admin-before.png

After

views-admin-after.png

AttachmentSizeStatusTest resultOperations
views-admin-before.png115.4 KBIgnored: Check issue status.NoneNone
views-admin-after.png112.03 KBIgnored: Check issue status.NoneNone
vdc-1806022-34.patch559 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 46,836 pass(es).View details

#35

I would prefer if we shoot for AAA for color contrast. Not only does it help those with vision problems, but also mobile users who happen to be outside.

#36

Hmmm I'm not a fan of the proposed solution...

#37

I wanted to get a patch started so we could get this issue rolling. It really shouldn't be a hard fix. For the most part it's a matter of emulating what's already done in core.

Dropbutton has some bad colour contrast, so does Views. Core (prior to Views) may still have had some areas that weren't WCAG 2.0 AA. Can't recall off hand.

@dcmouyard tonnes of good reasons to shoot for AAA - let's see if we can make it happen. But let's make sure we get AA first.

@aspilicious - please give details or improved patches. The after patches don't look like what I saw locally, but then again, apparently "patch is not rolled against HEAD"... Gotta look into that.

#38

I mean just visually based on the screenshot. I know we want to improve the contrast but if it's possible we should keep it "prety" at the same time. No clue how to improve it I think it's a metter of trial and error untill you find the "best" combination.

#39

Well, #30 needs to be rerolled against HEAD (some of the CSS has been moved into the respective themes) and then combined with #34. For what it's worth, I think #34 looks great if it has an acceptable ratio.

#40

I think it would be better to seperate active and inactive views out into their own tables. Would gives the 'empty pattern' in the blank slate situation. The proposed solution puts visual attention to the disabled ones, it's visually very heavy. Splitting into two tables would allow us to *not* having to use color to indicate status.

#41

@yoroy, it's funny you should mention that approach. We spent at least a half an hour debating if the UX maintainers would think that it was a good idea, but it was the same one we came up with :)

However, that should be it's own issue, and is completely unrelated to color contrast. So, I've opened a follow-up issue: #1830822: Split the Views UI listing into two tables for enabled and disabled

This issue should focus on meeting the color contrast standards of WCAG AA.

#42

splitting is indeed another issue. It does help us here in removing the contrast bug without having to express state.

#43

This should work better. With this patch Views color contrast will be better than Bartik's. I'll open a follow-up post about Bartik. This was using the Mozzilla Plugin ColorChecker which gives a nice summary.

Edit: The main issue I ran into with Bartik was with the header and depending on where it is in the background gradient it does or does not meet WCAG 2.0 AA. At the bottom of the font it doesn't, but it does around the middle. The validator went by the base color.

AttachmentSizeStatusTest resultOperations
Views-Color-1806022-43.patch3.91 KBIdlePASSED: [[SimpleTest]]: [MySQL] 46,862 pass(es).View details
Seven-Views-Color.png182.79 KBIgnored: Check issue status.NoneNone
Seven-Views-Color-Archive.png193.26 KBIgnored: Check issue status.NoneNone
Seven-Views-Color-Overlay.png194.94 KBIgnored: Check issue status.NoneNone
Bartik-Views-Color.png201.88 KBIgnored: Check issue status.NoneNone
Bartik-Views-Color-Archive.png186.75 KBIgnored: Check issue status.NoneNone
Bartik-Views-Color-Overlay.png201.01 KBIgnored: Check issue status.NoneNone

#44

+++ b/core/modules/views/views_ui/css/views-admin.contextual.cssundefined
@@ -31,7 +31,7 @@ html.js #views-live-preview div.contextual {
+  border-radius: 0 4px 4px 4px;008BCB

This looks wrong :)

+++ b/core/modules/views/views_ui/css/views-admin.contextual.cssundefined
@@ -49,13 +49,13 @@ ul.contextual-links li span {
-  color: #666666 !important;
+  color: #666 !important;

+++ b/core/modules/views/views_ui/css/views-admin.theme.cssundefined
@@ -478,8 +478,8 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  background-color: #666666;
-  color: #ffffff;
+  background-color: #666;
+  color: #fff;

@@ -521,7 +521,7 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  background-color: #dddddd;
+  background-color: #ddd;

@@ -702,7 +702,7 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  color: #666666;
+  color: #666;

@@ -773,7 +773,7 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  border-color: #aaaaaa;
+  border-color: #aaa;

@@ -905,7 +905,7 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  border-color: #CCCCCC;
+  border-color: #CCC;

@@ -1014,7 +1014,7 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  border-color: #dddddd;
+  border-color: #ddd;
   border-spacing: 0;

@@ -1025,7 +1025,7 @@ ul#views-display-menu-tabs li.add ul.action-list li{
-  color: #666666;
+  color: #666;

This is unrelated to the issue and should be removed.

#45

Status:needs review» needs work

Found some invalid CSS in views-admin.contextual.css:

-  border-radius: 0 4px 4px 4px;
+  border-radius: 0 4px 4px 4px;008BCB

I'll continue checking the color contrast ratios.

By the way, my favorite color contrast tool is http://leaverou.github.com/contrast-ratio/

#46

Status:needs work» needs review

I'll change the border-radius issue for sure.

But isn't shortening (and for that matter making the upper/lower case formatting consistent) of the CSS a good thing. I didn't need to include it but it was bothering me and doesn't affect the design.

Can only help performance.

#47

Can only help performance

Nope. Just a coding style, which is not part of this issue. That's called scope creep, or patch context switching

#48

Status:needs review» needs work

Some the color contrast changes go beyond AAA contrast. I'll work on a patch that has the least color contrast that still passes AAA.

This is unrelated to the issue and should be removed.

Personally, I think cleaning up CSS to match Drupal Coding standards should happen whenever we touch a style sheet.

#49

#48, this issue is only about meeting WCAG AA.
Cleaning up any specific lines you touch is fine, but not any random part of the file.

Also, this issue is still assigned to @dead_arm, and I think she has a patch she was working on.

#50

#48, this issue is only about meeting WCAG AA.
Cleaning up any specific lines you touch is fine, but not any random part of the file.

Okay, then is there an issue for cleaning up Views UI CSS?

Also, there are some color contrast issues due to the Seven theme that aren't Views specific. Should those be fixed in this issue if they're visible within View UI? Or is there a separate issue for making Seven have sufficient color contrast?

#51

Okay, then is there an issue for cleaning up Views UI CSS?

No, you can open one for post-feature freeze if you'd like.

Should those be fixed in this issue if they're visible within View UI?

No, since that's a pre-existing problem, that shouldn't be grouped into this issue.

#52

Status:needs work» needs review

This patch fixes color contrast issues that are in Views only. It does not address other color contrast issues that are already in Seven or Bartik, even though they're visible on some Views UI pages.

I'll be posting screenshots later.

AttachmentSizeStatusTest resultOperations
views-color-contrast-1806022-52.patch3.49 KBIdlePASSED: [[SimpleTest]]: [MySQL] 46,900 pass(es).View details

#53

#54

Views Table

Seven Before & After

Views table before
Views table after

Bartik Before & After

Views table before
Views table after

Views Edit Page

Seven Before & After

Views edit before
Views edit after

Bartik Before & After

Views edit before
Views edit after

Views Dialog Popup

Seven Before & After

Views edialog before
Views dialog after

Bartik Before & After

Views dialog before
Views dialog after

AttachmentSizeStatusTest resultOperations
views-table-seven.png185.88 KBIgnored: Check issue status.NoneNone
views-table-seven-a11y.png185.19 KBIgnored: Check issue status.NoneNone
views-table-bartik.png168.38 KBIgnored: Check issue status.NoneNone
views-table-bartik-a11y.png155.38 KBIgnored: Check issue status.NoneNone
views-edit-seven.png105.34 KBIgnored: Check issue status.NoneNone
views-edit-seven-a11y.png105.42 KBIgnored: Check issue status.NoneNone
views-edit-bartik.png91.16 KBIgnored: Check issue status.NoneNone
views-edit-bartik-a11y.png91.4 KBIgnored: Check issue status.NoneNone
views-dialog-seven.png195.57 KBIgnored: Check issue status.NoneNone
views-dialog-seven-a11y.png194.86 KBIgnored: Check issue status.NoneNone
views-dialog-bartik.png150.98 KBIgnored: Check issue status.NoneNone
views-dialog-bartik-a11y.png150.06 KBIgnored: Check issue status.NoneNone

#55

#56

We've now got lots of good screenshots of the patch. We just need someone to mark this RTBC? Need a usability review? Looks like we're almost there.

In looking at the CSS I did wonder about:

+tr.views-ui-list-disabled.even,
+tr.views-ui-list-disabled.odd {
+  background-color: #dadada;
+  border-bottom: 1px solid #bebfb9;
+}

Is adding the bottom border going to have a UI change?

#57

Status:needs review» needs work

We should not be removing the zebra striping or changing the background colors at all on the views listing page. Just removing the greyed out text color is enough.

#58

Status:needs work» needs review

Is adding the bottom border going to have a UI change?

No, it just helps visually separate the disabled views.

#59

Status:needs review» needs work

We should not be removing the zebra striping or changing the background colors at all on the views listing page. Just removing the greyed out text color is enough.

I think having a different background helps differentiate between enabled & disabled views.

I wouldn't be opposed to reverting back to zebra striping on disabled views in #1830822: Split the Views UI listing into two tables for enabled and disabled.

#60

@dcmouyard This issue is about color contrast. That change is unrelated to color contrast. All it does is complicate that other issue.

#61

Agreed with Tim. This is a critical, lets be strict about the scope and *only* fix the issue at hand.

#62

Assigned to:dead_arm» Anonymous
Status:needs work» needs review

Attached patch removes the greyed out background I added in #34, and the original greyed out text because with #1830822: Split the Views UI listing into two tables for enabled and disabled a separate table with black text provides enough contrast.

Screenshots are attached with contrast changes that use Seven's colors on the views edit display tabs and header. I removed the change to the views-admin.contextual.css because the context in preview feature is currently not usable and contrast will be handled if necessary at that time.

AttachmentSizeStatusTest resultOperations
vdc-1806022-61.patch2.17 KBIdlePASSED: [[SimpleTest]]: [MySQL] 47,856 pass(es).View details
seven-views-list-before.png115.61 KBIgnored: Check issue status.NoneNone
seven-views-list-after.png107.41 KBIgnored: Check issue status.NoneNone
seven-views-edit-before.png62.38 KBIgnored: Check issue status.NoneNone
seven-views-edit-after.png62.35 KBIgnored: Check issue status.NoneNone
bartik-views-list-before.png93.08 KBIgnored: Check issue status.NoneNone
bartik-views-list-after.png92.62 KBIgnored: Check issue status.NoneNone
bartik-views-edit-before.png53.81 KBIgnored: Check issue status.NoneNone
bartik-views-edit-after.png53.58 KBIgnored: Check issue status.NoneNone

#63

Status:needs review» reviewed & tested by the community
Issue tags:-Needs manual testing

This seems like a good strategy to me, since we are adding a semantic, more usable and accessible way of differentiating disabled views in the other issue. I'd be in favor of committing #62 and opening followups for any remaining issues that are not views-specific. (See #13 and #17 for the followups).

#64

+1 for me. I disliked the grey background. I'm happy with this.

#65

I gave this a visual review, seems like its far more consistent with Seven now. That's great! There are a few places, where we could tweak the other colors, but frankly that's much better to do in tiny follow ups and not accessibility related.

Lets get this critical out of the way and commit it.

#66

Status:reviewed & tested by the community» needs work

The patch in #62 doesn't address color contrast issues in views-admin.contextual.css or Bartik. It also misses some issues in Seven, particularly link colors.

Several of the CSS changes don't match Drupal CSS coding standards.

Also, some of the color changes have nothing to do with color contrast, but they do make it more consistent with Seven.

#67

Status:needs work» needs review

This patch is based on #52. It removes the disabled views styling (color and gray background) and incorporates some of the design changes in patch #62.

AttachmentSizeStatusTest resultOperations
views-color-contrast-1806022-67.patch4.2 KBIdlePASSED: [[SimpleTest]]: [MySQL] 47,993 pass(es).View details

#68

Status:needs review» reviewed & tested by the community

Note to committers: The patch in #62 is RTBC.

@dcmouyard, please take a screenshot of how your changes to views-admin.contextual.css appear. Because they currently don't violate color contrast.

#69

Take a look at this CSS:

ul.contextual-links li a {
  color: #666666 !important;
  margin: 0.25em 0;
  padding-left: 1em;
}

ul.contextual-links li a:hover {
  background-color: #badbec;
}

That gives us a color contrast ratio of only 3.9 whenever you hover over that link, which doesn't pass WCAG AA.

Using #c9edff for the link color makes it pass.

#70

Re-rolled patch from #62 to follow Drupal coding standards for color hex values and removed extra lines added. Leaving RTBC as no other changes were made.

AttachmentSizeStatusTest resultOperations
vdc-1806022-70.patch2.08 KBIdlePASSED: [[SimpleTest]]: [MySQL] 48,005 pass(es).View details

#71

@dcmouyard you clearly did not test those changes, because it is physically impossible to do so: #1837982: Contextual links within the Views UI preview are broken

We have an RTBC and finished patch, we shouldn't be trying to fix color contrast for something that doesn't even show up on a screen.

#72

Status:reviewed & tested by the community» fixed

Ok, I'm quite confused by the last few comments, but it looks like there's at least some agreement on #62/#70, so...

Committed and pushed to 8.x. Thanks!

#73

Let's please file those followup issues and link them here?

#74

I'm not sure about the comments from #67 and #71, but here is #1840896: Views UI CSS Cleanup, a followup to #51.

#75

See #13 and #17 for a full list of the accessibility violations found during testing, many of which were not Views-related.

#76

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#77

Category:bug report» task
Priority:critical» normal
Status:closed (fixed)» active

The followups still didn't get filed. Leaving open as an active task until they are. :)

#78

@xjm for clarity the follow-ups are the color contrast issues in the Seven theme.

from issue #13:
https://drupal.org/node/1806022#comment-6628290

and issue number #17:
https://drupal.org/node/1806022#comment-6655620

Which came out in the patches above, but were removed here because they weren't directly tied to Views.

I think that's tied to this code, but wanted to clarify before opening the follow-ups.

diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css
index 3b5776a..2e92632 100644
--- a/core/themes/seven/style.css
+++ b/core/themes/seven/style.css
@@ -7,7 +7,7 @@ body {
   font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", sans-serif;
}
a {
-  color: #0074bd;
+  color: #00619d;
   text-decoration: none;
}
a:hover {

diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css
index 65abcc7..345974c 100644
--- a/core/themes/seven/style.css
+++ b/core/themes/seven/style.css
@@ -1219,7 +1219,7 @@ fieldset.fieldset-no-legend {
/* @group Attachment details */

#edit-display-settings-title {
-  color: #008BCB;
+  color: #00496e;
}

/* @end */
@@ -1239,7 +1239,7 @@ fieldset.fieldset-no-legend {

.views-displays .secondary a {
   background-color: #f1f1f1;
-  color: #008BCB;
+  color: #00496e;
}

.views-displays .secondary a:hover > .icon.add {
@@ -1254,7 +1254,7 @@ fieldset.fieldset-no-legend {

.views-displays .secondary .open > a:hover {
   background-color: #f1f1f1;
-  color: #008BCB;
+  color: #00496e;
}

.views-displays .secondary .action-list  li:first-child {
@@ -1270,7 +1270,7 @@ fieldset.fieldset-no-legend {
}

.views-displays .secondary .action-list input.form-submit {
-  color: #008bcb;
+  color: #00496e;
}

/* @end */

#79

Comprehensive list of follow-ups:

views-landing-page.png

On the Views landing page 1, 2, 3, and 4 pass. 5 has a follow-up in the Seven theme here #740756: Ensuring Proper Color Contrast for Seven and Dropbutton has a follow up here #1858206: Dropbutton background with gradient does not meet WCAG AA standard.

Follow-up for Views contextual color contrast from comments #44, #66 - #69, #71 here #1837982: Contextual links within the Views UI preview are broken.

Follow-up for Views UI meeting CSS coding standards from comments #46, #50, and #51 was created in #74 and is here #1840896: Views UI CSS Cleanup

Follow-up from comments #13 and #17 that were not addressed in the final patch for this issue:

AttachmentSizeStatusTest resultOperations
views-landing-page.png161.16 KBIgnored: Check issue status.NoneNone

#80

Category:task» bug report
Priority:normal» critical
Status:active» fixed

Thanks @dead_arm!

#81

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.