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

  • Test this issue using the VDC sandbox:
    git clone --recursive --branch vdc http://git.drupal.org/sandbox/tim.plunkett/1799554.git vdc
    
  • Run a contrast test such as Contrast-A to check and repair color combinations. (More about color and contrast)
  • Test each screen of the Views UI, including: the administrative view listing, the view creation wizard, the advanced administrative interface, and modal dialogs.
  • Report any problems in this issue.

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:

CommentFileSizeAuthor
#79 views-landing-page.png161.16 KBdead_arm
#70 vdc-1806022-70.patch2.08 KBdead_arm
#67 views-color-contrast-1806022-67.patch4.2 KBdcmouyard
#62 vdc-1806022-61.patch2.17 KBdead_arm
#62 seven-views-list-before.png115.61 KBdead_arm
#62 seven-views-list-after.png107.41 KBdead_arm
#62 seven-views-edit-before.png62.38 KBdead_arm
#62 seven-views-edit-after.png62.35 KBdead_arm
#62 bartik-views-list-before.png93.08 KBdead_arm
#62 bartik-views-list-after.png92.62 KBdead_arm
#62 bartik-views-edit-before.png53.81 KBdead_arm
#62 bartik-views-edit-after.png53.58 KBdead_arm
#54 views-table-seven.png185.88 KBdcmouyard
#54 views-table-seven-a11y.png185.19 KBdcmouyard
#54 views-table-bartik.png168.38 KBdcmouyard
#54 views-table-bartik-a11y.png155.38 KBdcmouyard
#54 views-edit-seven.png105.34 KBdcmouyard
#54 views-edit-seven-a11y.png105.42 KBdcmouyard
#54 views-edit-bartik.png91.16 KBdcmouyard
#54 views-edit-bartik-a11y.png91.4 KBdcmouyard
#54 views-dialog-seven.png195.57 KBdcmouyard
#54 views-dialog-seven-a11y.png194.86 KBdcmouyard
#54 views-dialog-bartik.png150.98 KBdcmouyard
#54 views-dialog-bartik-a11y.png150.06 KBdcmouyard
#52 views-color-contrast-1806022-52.patch3.49 KBdcmouyard
#43 Views-Color-1806022-43.patch3.91 KBmgifford
#43 Seven-Views-Color.png182.79 KBmgifford
#43 Seven-Views-Color-Archive.png193.26 KBmgifford
#43 Seven-Views-Color-Overlay.png194.94 KBmgifford
#43 Bartik-Views-Color.png201.88 KBmgifford
#43 Bartik-Views-Color-Archive.png186.75 KBmgifford
#43 Bartik-Views-Color-Overlay.png201.01 KBmgifford
#34 vdc-1806022-34.patch559 bytesdead_arm
#34 views-admin-after.png112.03 KBdead_arm
#34 views-admin-before.png115.4 KBdead_arm
#30 Views-Color-1806022-30.patch2.34 KBmgifford
#17 views-list-page.png80.92 KBramkumarr
#17 views-edit-page.jpg84.01 KBramkumarr
#17 modal-popup.png59.7 KBramkumarr
#10 table-contrast.jpg36.49 KBBojhan

Comments

xjm’s picture

Issue tags: +Needs manual testing
xjm’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

Issue tags: +Novice
xjm’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

Project: Drupal core » VDC
Version: 8.x-dev »
Component: other » Code
Bojhan’s picture

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

xjm’s picture

Issue tags: -Novice, -VDC

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

xjm’s picture

Issue tags: +Novice, +VDC

Weird untagging?

Everett Zufelt’s picture

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 :)

Bojhan’s picture

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

mgifford’s picture

Some other good tools to make this easier:

Bojhan’s picture

Priority: Normal » Critical
StatusFileSize
new36.49 KB

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

tim.plunkett’s picture

Priority: Critical » Normal

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

Everett Zufelt’s picture

Priority: Normal » Critical

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

Anonymous’s picture

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.

xjm’s picture

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

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

xjm’s picture

Project: VDC » Drupal core
Version: » 8.x-dev
Component: Code » views.module
xjm’s picture

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

ramkumarr’s picture

StatusFileSize
new59.7 KB
new84.01 KB
new80.92 KB

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.
Bojhan’s picture

Issue tags: -Novice, -Needs manual testing, -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?

Bojhan’s picture

Issue tags: +Novice, +Needs manual testing, +VDC
tim.plunkett’s picture

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

iflista’s picture

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

webchick’s picture

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)?

webchick’s picture

Priority: Critical » Major

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

Bojhan’s picture

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.

mgifford’s picture

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.

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett

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

catch’s picture

Priority: Major » Critical

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

dead_arm’s picture

Assigned: 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.

yoroy’s picture

Status: Postponed » Active
mgifford’s picture

Status: Active » Needs review
StatusFileSize
new2.34 KB

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.

dawehner’s picture

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

tim.plunkett’s picture

Issue tags: +Needs screenshots

Can we see that in action? Before/after

tim.plunkett’s picture

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.

dead_arm’s picture

Status: Needs work » Needs review
StatusFileSize
new115.4 KB
new112.03 KB
new559 bytes

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

dcmouyard’s picture

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.

aspilicious’s picture

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

mgifford’s picture

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.

aspilicious’s picture

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.

xjm’s picture

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.

yoroy’s picture

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.

tim.plunkett’s picture

@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.

yoroy’s picture

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

mgifford’s picture

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.

tim.plunkett’s picture

+++ 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.

dcmouyard’s picture

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/

mgifford’s picture

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.

tim.plunkett’s picture

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

dcmouyard’s picture

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.

tim.plunkett’s picture

#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.

dcmouyard’s picture

#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?

tim.plunkett’s picture

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.

dcmouyard’s picture

Status: Needs work » Needs review
StatusFileSize
new3.49 KB

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.

dead_arm’s picture

dcmouyard’s picture

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

xjm’s picture

xjm’s picture

Issue summary: View changes

Updated issue summary.

mgifford’s picture

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?

tim.plunkett’s picture

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.

dcmouyard’s picture

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.

dcmouyard’s picture

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.

tim.plunkett’s picture

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

yoroy’s picture

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

dead_arm’s picture

Assigned: dead_arm » Unassigned
Status: Needs work » Needs review
StatusFileSize
new53.58 KB
new53.81 KB
new92.62 KB
new93.08 KB
new62.35 KB
new62.38 KB
new107.41 KB
new115.61 KB
new2.17 KB

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.

xjm’s picture

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).

aspilicious’s picture

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

Bojhan’s picture

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.

dcmouyard’s picture

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.

dcmouyard’s picture

Status: Needs work » Needs review
StatusFileSize
new4.2 KB

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.

tim.plunkett’s picture

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.

dcmouyard’s picture

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.

dead_arm’s picture

StatusFileSize
new2.08 KB

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.

tim.plunkett’s picture

@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.

webchick’s picture

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!

xjm’s picture

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

ryan.ryan’s picture

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

ryan.ryan’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

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

Status: Fixed » Closed (fixed)

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

xjm’s picture

Category: bug » task
Priority: Critical » Normal
Status: Closed (fixed) » Active

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

mgifford’s picture

@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 */
dead_arm’s picture

StatusFileSize
new161.16 KB

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:

xjm’s picture

Category: task » bug
Priority: Normal » Critical
Status: Active » Fixed

Thanks @dead_arm!

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

Anonymous’s picture

Issue summary: View changes

Updated issue summary. Adding resolution and updating related issues.