Problem/Motivation

Drupal core themes make use of uppercase text in some parts of the design. Seven uses uppercase for table headers, details/summary headers, view UI configuration sections, and a few other places like the status report.

Uppercase can be more difficult to read than lowercase text. Users with dyslexia may be especially impacted by this, but it affects everyone to a degree. (Just think of what the message list looks like in your email spam folder....)

Proposed resolution

Stop using uppercase text in our core themes. The places were it is used typically have some other visual affordance to stress them, e.g.

  • Config section headings in Views UI are large and bold, so they would still be prominent without uppercase.
  • Table headers are identified by position, borders, and a slightly darker background
  • Collapsible details/summary have borders, and a disclosure triangle icon.
  • The summary tiles at the start of the status report page have big text, and icons.
  • The long list on the status report page is divided into left-right regions; headers are on the left, details on the right. At small screen sizes, these are collapsible details.

Remaining tasks

Assess extent of all-caps text in UI.
Remove text-transform: uppercase from various stylesheets.
Patch

User interface changes

Minor design changes, intended to make some UI text easier to understand, especially for users with dyslexia.

API changes

None.

Data model changes

None.

Commit credits needed

This issue started as a discussion in the #accessibility Slack channel. Participants' Slack names:
ttamniwdoog, jhodgdon, donnabungard, cehfisher, mgifford, rachelolivero

CommentFileSizeAuthor
#89 2958239--after--patch--pic.png109.18 KBvikashsoni
#89 2958239--before--patch--pic.png130.36 KBvikashsoni
#81 Chrome - Node form - Screen Shot 2021-03-10 at 11.31.08 AM.png389.43 KBcainaru
#81 Chrome - Config - Screen Shot 2021-03-10 at 11.17.05 AM.png478.93 KBcainaru
#81 Chrome - Views config - Screen Shot 2021-03-10 at 11.15.38 AM.png520.34 KBcainaru
#81 Chrome - Views list - Screen Shot 2021-03-10 at 11.15.17 AM.png542.39 KBcainaru
#81 Chrome - Status Report 2 - Screen Shot 2021-03-10 at 11.14.11 AM.png501.24 KBcainaru
#81 Chrome - Status Report 1 - Screen Shot 2021-03-10 at 11.13.52 AM.png541.94 KBcainaru
#81 Chrome - Performance - Screen Shot 2021-03-10 at 11.12.04 AM.png368.56 KBcainaru
#81 Chrome - Content - Screen Shot 2021-03-10 at 11.09.36 AM.png308.48 KBcainaru
#81 Chrome - Appearance 2 - Screen Shot 2021-03-10 at 11.09.15 AM.png395.86 KBcainaru
#81 Chrome - Appearance 1 - Screen Shot 2021-03-10 at 11.07.00 AM.png535.91 KBcainaru
#79 before-applay-patch.png160.3 KBMadhu kumar
#79 after-applied-patch.png182.98 KBMadhu kumar
#76 Screen Shot 2021-02-17 at 3.04.49 PM.png62.52 KBdjsagar
#74 Screenshot 2021-02-15 at 4.58.15 PM.png80.73 KBbhumikavarshney
#73 2958239-applied_patch.png110.39 KBabhijith s
#72 interdiff_70-71.txt902 bytesdjsagar
#72 2958239-71.patch10.13 KBdjsagar
#70 interdiff_64-70.txt944 bytesdjsagar
#70 2958239.patch10.29 KBdjsagar
#69 issue-afterpatch.png250.57 KBdjsagar
#69 before-patch.png43.29 KBdjsagar
#69 After-patch.png100.8 KBdjsagar
#65 interdiff_60-64.txt6.09 KBsantosh_verma
#64 2958239-64.patch10.33 KBsantosh_verma
#60 claro-node-form.png25.23 KBsahal_va
#60 claro-conf.png91.1 KBsahal_va
#60 claro-block-settings.png22.01 KBsahal_va
#60 seven-node-form.png24.96 KBsahal_va
#60 seven-conf.png74.6 KBsahal_va
#60 seven-blocks.png35.44 KBsahal_va
#60 bartik-config.png82.13 KBsahal_va
#60 bartik-block-settings.png64.32 KBsahal_va
#60 bartic-table.png66.7 KBsahal_va
#59 Screenshot (2).png30.53 KBkomalk
#59 Screenshot (1).png32.43 KBkomalk
#59 interdiff_30-59.txt787 byteskomalk
#59 core-themes-readability-problem-uppercase-removed-2958239-59.patch5.49 KBkomalk
#57 2958239-57.patch5.42 KBsahal_va
#52 Screen Shot 2019-10-15 at 18.50.25.png35.91 KBlauriii
#52 Screen Shot 2019-10-15 at 18.49.47.png36.39 KBlauriii
#44 PeoplePage.png66.31 KBtruptidiwani
#44 ConfigurationPage.png236.44 KBtruptidiwani
#44 BlockLayout .png109.35 KBtruptidiwani
#44 Basicpage.png66.78 KBtruptidiwani
#42 People Page.png66.31 KBtruptidiwani
#42 Configuration Page.png236.44 KBtruptidiwani
#42 Block Layout .png109.35 KBtruptidiwani
#42 Basic page.png66.78 KBtruptidiwani
#37 views.png158.73 KBcindytwilliams
#37 statusreport2.png139.84 KBcindytwilliams
#37 statusreport.png156.94 KBcindytwilliams
#37 performance.png94.68 KBcindytwilliams
#37 content.png70.01 KBcindytwilliams
#37 appearance2.png88.89 KBcindytwilliams
#37 appearance.png140.95 KBcindytwilliams
#31 screenshot-2958239-30.png12.77 KBcindytwilliams
#30 core-themes-readability-problem-uppercase-removed-2958239-30.patch5.47 KBthejimbirch
#23 3 text transform.png66.15 KBNeetika K
#23 1- Text transform.png48.89 KBNeetika K
#23 2 text transform.png50.43 KBNeetika K
#22 text-tranform-stable-2958239-22.patch497 bytesrevathi.b
#21 text-tranform-bartik-2958239-21.patch1.37 KBpunamshelke
#20 text-tranform-seven-2958239-20.patch3.55 KBmiteshmap
#5 2958239-views-ui-lowercase.png32.93 KBandrewmacpherson
#5 2958239-status-report-tiles-lowercase.png43.24 KBandrewmacpherson
#5 2958239-status-report-details-lowercase.png45.17 KBandrewmacpherson
#5 2958239-lowercase-table-headers.png12.17 KBandrewmacpherson
#5 2958239-details-summary-lowercase.png20.93 KBandrewmacpherson

Comments

andrewmacpherson created an issue. See original summary.

andrewmacpherson’s picture

Issue summary: View changes

There was a long discussion about this in the #accessibility Slack channel. Participants were ttamniwdoog, jhodgdon, donnabungard, cehfisher, mgifford, rachelolivero, and myself. They deserve commit credits if we proceed with this.

For accessibility, dyslexic users are likely the main group who will benefit from using lowercase. Users with other cognitive, learning, and visual impairments may benefit too, e.g. astigmatism. (The umbrella term "print disability" is sometimes used.)

It was noted that all-caps can be a problem for screen reader users, where some words are mis-identified as abbreviations (e.g. "CONTACT US" is sometimes read as "CONTACT U.S."). This seems to be of less concern than dyslexia though, because screen reader users get accustomed to it as a minor annoyance. It's also probably beyond our control.

andrewmacpherson’s picture

A quick survey of CSS files with text-transform: uppercase...

$ ack --type=css -l "text-transform: uppercase" core

core/themes/bartik/color/preview.css
core/themes/bartik/css/components/site-footer.css
core/themes/bartik/css/base/elements.css
core/themes/seven/css/components/form.css
core/themes/seven/css/components/panel.css
core/themes/seven/css/components/views-ui.css
core/themes/seven/css/components/system-status-report-general-info.css
core/themes/seven/css/components/jquery.ui/theme.css
core/themes/seven/css/components/tables.css
core/themes/seven/css/components/system-status-counter.css
core/themes/seven/css/base/elements.css
core/themes/stable/css/views_ui/views_ui.admin.theme.css
core/modules/views_ui/css/views_ui.admin.theme.css
core/profiles/demo_umami/themes/umami/css/components/navigation/more-link/more-link.css

Affects most core themes, and views UI module code. We might break this out into issues for each theme.

andrewmacpherson’s picture

Title: Readabiloty problem with all-caps text in core themes » Readability problem with all-caps text in core themes
andrewmacpherson’s picture

Some mockups of how things would look when text-transform: uppercase is turned off. No patch yet, I got these by fiddling in the browser dev tools.

Seven's table headers:
Table headers with lowercase text

Seven's details/summary elements:
Details elements from node edit page, with lowercase summary buttons

Main tiles at start of Seven's status report page:
Error and warning counts from start of status report with lowercase headings.

Main list of from Seven's status report page.
Status report listing with lowercase summary elements.

Views UI:
Configuration section sin views UI with lowercase titles.

jhodgdon’s picture

Just a note regarding

Collapsible details/summary have borders, and a disclosure triangle icon.

The triangle icon currently doesn't work in Firefox, due to long-standing and still unresolved issue, which I'm adding here as Related. But I would not think that making the summary ALL CAPS lends any usability to it. It could just be bolded.

andrewmacpherson’s picture

@jhodgdon - I already knew about the firefox issue, Thanks for moving that one along.

andrewmacpherson’s picture

Some more reading around...

Use uppercase text judiciously. His main issue if with uppercased menus. He notes the screen reader problem too.

WebAIM: Evaluating Cognitive Web Accessibility and WebAIM: Fonts. Advice says to limit use of capitals, but not much guidance for how much is too much. "Overuse can result in the loss of differentiation" is an interesting way to explain the problem.

Plain English Campaign: Should you use text-transform: uppercase; in your style sheet?. This one actually cites research: "Experimental data has shown that lowercase text is read faster than uppercase text, by about 5-10%. Whilst there have been different explanations for why this should be, the effect was first reported by Woodworth[1] in 1938." Also bonus points for mentioning Drupal in the article - they take issue with CMS themes which force uppercase menus.

Web Style Guide 3rd Edition. Quite a lengthy description here, focusing on the word-shape aspect, with accompanying diagrams. This is the only article I found that is flat-out against it, without suggesting that it might be OK to use in any situation. "Capitalized text is one of the most common and least effective methods for adding typographical emphasis. [...] We recommend down-style typing (capitalize only the first word and any proper nouns) for your headlines, subheads, and text."

Many articles recommend using uppercase sparingly, but they don't say where they think it IS okay to use it.

A repeating complaint is about uppercase navigation menus. We don't have those, but I think our table headers, and sets of collapsed detail/summary groups, are similar scenarios.

jhodgdon’s picture

Regarding #5, I have to say that I vastly prefer the non-caps versions to the all-caps versions. I don't have any known reading/sight limitations, but I find the non-caps versions to be less OF A SHOUT IN MY FACE and more soothing/welcoming to look at. Things are bold anyway. We really don't need them in all caps for them to stand out.

But, I'm also not a designer. :)

andrewmacpherson’s picture

For the status report page:

I think the 3 tiles at the top would be an example of all-caps that could stay. They are short single words, from everyday English, and have a big icon next to them to aid understanding.

The details further down the page should not use all-caps in my view. They have a lot of techy words, and things like "DRUPAL CORE UPDATE STATUS" are getting on for sentence length.

Also for things like "GD LIBRARY PNG SUPPORT" - this would really benefit from lowercase because two of those terms are abbreviations which would normally be in uppercase, and they don't stand out like they could if it was "GD library PNG support"

samsone’s picture

I was under the impression that screen readers utilize the text in the document when dictating, not in the display - If this is correct, the only time letters should be interpreted as caps is if they are typed as such in the content. I know this doesn't solve the case for dyslexia, and I don't use a screen reader to verify this, I am going off of memory from attending CSUN 4 years ago.

jhodgdon’s picture

RE #11, that is apparently not true. Some screen readers would, but some wouldn't. There was a discussion in the Accessibility slack channel a few days ago about this subject... some screen readers were tested, and they varied.

samsone’s picture

RE #12, I would see if those that don’t support use of the uppercase styling comprise a significant portion of screen readers in use before any major changes are made.

ckrina’s picture

And what about using font-variant: small-caps;? https://www.w3schools.com/cssref/pr_font_font-variant.asp

Because reading this I understand the concern and we should totally avoid that, but it limits the design options and it is actually a really good resource for establishing&communicating hierarchy or importance. Maybe it doesn't applies on this specific case, but it is a useful resource in other situations.

jhodgdon’s picture

Here are some edited excerpts from the Slack conversation, which happened in #accessibility on April 3rd:

ttamniwdoog [7:18 AM]
I have some designs where the top level nav links are spelled out using all CAPS. By default will most screen readers spell out a menu item like "F-A-Q" or will it try to pronounce "FAQ"?

[It was clarified that this meant these headings were to be using CSS text-transform: uppercase;]

[donnabungard said that a word that looked like DONNA would be read D-O-N-N-A in mac VoiceOver w Chrome]

[some links were added, but they are already in this issue in comment #8]

ttamniwdoog [9:16 AM]
@donnabungard This piece is exactly what I was worried about from your link above:
For example, a screen reader may read the uppercase text CONTACT US as "Contact U. S." because it interprets the uppercase "US" as being an acronym for "United States".

donnabungard [9:16 AM]
Exactly!
And I've been testing more and more w screen readers and have found it to be true in some cases

andrewmacpherson [9:38 AM]
I'd heard that some screen readers announce caps differently, but can't find much information on it.
Like, I've found lots of articles that mention this, without giving any details.
The clearest I've found is this, from the Chromium bug tracker: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-accessib...

rachelolivero [9:39 AM]
Depends on user settings. Often by default there is an upward pitch shift. NVDA can be set to announce cap or play a beep when encountering a capital letter

andrewmacpherson [9:40 AM]
Yes, I've heard the upward pitch shift somewhere, (possibly ChromeVox?).
I found a juicy bit in that Chromium bug report:
Checked acc tree of Firefox and IE on windows. Firefox expresses as 'ADD', IE as 'add'
Which means the *browsers* are sending different info to the screen reader, based on the `text-transform: uppercase;`

andrewmacpherson [10:03 AM]
For the issue of a screen reader saying "Contact U.S." instead of "Contact Us" without an abbr tag, that's probably beyond our control I think.

rachelolivero [10:05 AM]
Which definitely happens. I agree though there is only so much you can do.

[at this point, Andrew filed this issue]

jhodgdon [10:14 AM]
But having a design that doesn't fool the screenreader into thinking that "Contact us" could be "CONTACT US" would be beneficial?
That is not difficult to accomplish: just don't use text-transform: uppercase

rachelolivero [10:22 AM]
Honestly, I think it's a minor annoyance when it does that. It is probably a bigger issue for new screen reader users, but in terms of where to spend time fixing accessibility issues, I wouldn't worry too much about this.

andrewmacpherson [10:33 AM]
sighted users with dyslexia would be the main group to benefit from avoiding uppercase.

jhodgdon’s picture

So, to summarize that Slack conversation:

- Various browsers send different information to screen readers when encountering CSS all-caps text.

- The screen readers may also react differently to this information.

- The upshot is that some people using screen readers will get confusing readouts from all-caps text, and especially things like "CONTACT US" may be read like "Contact U.S." (i.e., common abbreviations viewed in all-caps may be assumed to be abbreviations, even when the underlying text is lower-case and the upper-case is just coming from the CSS).

- People who regularly use screen readers are pretty much used to problems like this.

- But there is also a problem for people with dyslexia in reading text that is in all caps. It's not just the screen readers that are the problem.

andrewmacpherson’s picture

Thanks for grabbing the Slack chat @jhodgdon.

Here's some more context on what the screen readers are doing. The experience can be a bit variable, depending on the combination of browser, screen reader, and how the caps are implemented.

Firstly, screen readers read whatever they are given by the browser, via the OS-level accessibility APIs. In this Chromium bug report, Steve Faulkner mentions that in some cases browsers have taken lowercase HTML, applied CSS text-transform: uppercase, and passed the capitalized version to the screen reader. The screen reader has no idea that it was lowercase in the HTML source:

Checked acc tree of Firefox and IE on windows
Firefox expresses as 'ADD', IE as 'add'

I thought that in Firefox IA2 object attributes would list text-transform: uppercase, but this is not the case

.

Source: Chromium Accessibility: Honouring text-transform styles in the a11y tree?

Secondly, the screen reader's job is to read what's on the screen. If the browser passes capitals to the screen reader, because the stylesheet said to show capitals on screen, then I don't whether that should be called a bug. In the Chromium bug report quoted, Steve Faulkner goes on to advocate for browsers to pass an indication that the text has had an uppercase transform applied.

Thirdly, once they have the text, screen readers are using different speech engines, localizations, etc. Lots quirks happen here, for example "CONTACT US" is well known for being pronounced like "CONTACT U.S.". This is beyond our control, and I gather screen reader users grow accustomed to it - I certainly am, and I only use them for 20 minutes a day.

andrewmacpherson’s picture

I think the capitalized H3 sections in Views UI might be OK to keep. They're generally one word, a few have two words. Some longer phrases, like the "Edit view name/description" button are already lowercase.

andrewmacpherson’s picture

@ckrina, #14 - I don't think I saw any discussion of small-caps when researching this. I suppose they have the same effect on word shape as all-caps - the ascenders and descenders are lost. The difference is that capitals at the start of sentences, names, and abbreviations will still get big-caps, right? So small-caps could be nicer for a phrase like "GD library PNG support".

In the articles I read, it's hard to find clear guidance. Most of them just advise that all-caps should be used sparingly, but don't say how to decide. When is it just-enough, or too-much?

WCAG doesn't say much about it. The only thing I found was an "additional, advisory" technique at level-AAA, in "Understanding SC 1.4.8 Visual Presentation", which says: "Using upper and lower case according to the spelling conventions of the text language (future link)".

But the success criteria in WCAG are supposed to be testable, so that's probably why WCAG doesn't cover this yet.

It's hard for us to make a strong argument about avoiding captitals, when there aren't any pass-or-fail rules. The styleguides and articles all agree that uppercase should not be over-used, so I hope we can use that to inform our designs.

There's a plan somewhere for some more rounds of usability testing. I wonder if we recruit some users with dyslexia to try the Seven theme for us.

miteshmap’s picture

Status: Active » Needs review
Issue tags: +#DCM2018
StatusFileSize
new3.55 KB

Created patch for Drupal core seven theme.

punamshelke’s picture

StatusFileSize
new1.37 KB

Created patch for core theme bartik

revathi.b’s picture

StatusFileSize
new497 bytes

Created patch for core theme stable

Neetika K’s picture

StatusFileSize
new50.43 KB
new48.89 KB
new66.15 KB

@Revathi.B :
I am able to see so 17 text transform : Uppercase when I open it with sublime.Please confirm is it fine.

revathi.b’s picture

@Neetika K
Yes it is fine. Already patch has been applied for seven and bartik themes. For reference check comment #20 and #21.

Thanks,
Revathi

imshivani’s picture

@PunamShelke your patch is working fine for me for bartic theme.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

andrewmacpherson’s picture

A similar discussion in the issue queue for a pattern library used by Human Made (a major Wordpress dev agency) - Are all-caps headings bad for accessibility?

andrewmacpherson’s picture

In all the discussion so far, we've used English examples, and localization hasn't been mentioned. We might say that short words or single word phrases are low risk, but translated to other languages these may become much longer. Another consideration may be how accents are treated - these are largely absent in English. I'm presuming that accents affect word shape and are a factor in dyslexia, but I have no detailed knowledge of that.

There's a very brief mention of localization in WCAG, which I already said in #19: "Using upper and lower case according to the spelling conventions of the text language". Setting it in a theme would be more brute-force, not taking the page language into account.

So a safe upshot might be that all-caps present a further readability risk where localization is concerned, and is may be safer to avoid transforming them in themes?

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

thejimbirch’s picture

Attached is a patch that expands on the great work by @miteshmap, @Revathi.B and @PunamShelke in #20, #21 and #22 to include all core themes, and re-rolls for Drupal 8.8

To validate:
Apply the patch
Find or grep on /core/themes for the word uppercase
Get 0 results

cindytwilliams’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new12.77 KB

Patch #30 applied cleanly. Using grep to search for the word uppercase in /core/themes returned 0 results (screenshot is attached). Marking RTBC.

Status: Reviewed & tested by the community » Needs work
thejimbirch’s picture

Status: Needs work » Reviewed & tested by the community

Unrelated test failure. Setting back to RTBC.

catch’s picture

This could use screenshots for easier review of the visual changes.

andrewmacpherson’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs screenshots
volkswagenchick’s picture

Issue tags: +dcasheville19

Tagging for dcasheville19 DrupalCamp Asheville. This would be a good novice task for the mentored contrib WS

cindytwilliams’s picture

Status: Needs work » Needs review
Issue tags: -Needs screenshots, -dcasheville19
StatusFileSize
new140.95 KB
new88.89 KB
new70.01 KB
new94.68 KB
new156.94 KB
new139.84 KB
new158.73 KB

Attached are some screenshots after applying patch #30 to show that the config section headings, table headers, and summary titles are now displayed in lowercase.

cindytwilliams’s picture

Status: Needs review » Reviewed & tested by the community

Screenshots provided above. Marking RTBC, but others can weigh in.

lauriii’s picture

Status: Reviewed & tested by the community » Needs review

I think one of the biggest problems on using text-transform: uppercase is the fact that many scripts don't distinguish between upper and lowercase characters. Sometimes styling text in all-caps is used to communicate something and that gets lost on those languages that don't have letter cases.

Example: I've seen a restaurant menu where the design used uppercase characters to highlight headings. This was later translated to a language that doesn't have upper- and lowercase characters. As a result, the translated menu was hard to read because the headings were using the same text size and weight as the list items.

I think these localization problems create a strong enough reason to reduce the usage of text-transform but I'm not sure if this is enough to justify removing all instances of text-transform.

As a next step, we should research what is the reason text-transform: uppercase has been used in these instances when they were initially designed. Are we not communicating something through the design that was communicated before if we remove the text-transform?

avpaderno’s picture

Issue tags: -#DCM2018
truptidiwani’s picture

Assigned: Unassigned » truptidiwani
truptidiwani’s picture

StatusFileSize
new66.78 KB
new109.35 KB
new236.44 KB
new66.31 KB

I have reviewed the patch and it works well and the screenshots are attached below.

truptidiwani’s picture

truptidiwani’s picture

StatusFileSize
new66.78 KB
new109.35 KB
new236.44 KB
new66.31 KB

I have reviewed the patch and it is working well and the screenshots are attached below.
Basic Page-
Basic Page
Block Layout Page
Block Layout Page
People Page
People Page
Configuration Page
Configuration Page

truptidiwani’s picture

Status: Needs review » Reviewed & tested by the community
truptidiwani’s picture

Assigned: truptidiwani » Unassigned
thejimbirch’s picture

Based on the screenshots, I feel like the instances where all caps were used are not missing anything without the all caps to address @lauriii's concerns. Each instance has bold, or a background, or both and a down arrow to communicate structure correctly.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

andrewmacpherson’s picture

#39:

Sometimes styling text in all-caps is used to communicate something and that gets lost on those languages that don't have letter cases.

Wow! That's a really good point. I dimly recall hearing this a few years ago, but I'd forgotten it in the time since. Thanks for the menu translation example; that should help me to remember it.

avpaderno’s picture

With writing systems that don't have letter cases, it's not even possible to write all-capitals phrases. That is the wrong example, if you want to make the point that writing a phrase all in capital letters is necessary.

andrewmacpherson’s picture

#50 - no, I wasn't making that point; quite the opposite. It's an additional argument to support a reduction in our use of text-transform: uppercase.

Since some scripts don't have the concept, then it can't be relied upon as the sole means to signify anything important. It's similar to the way we can't rely on colour alone.

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new36.39 KB
new35.91 KB

This is the scenario that I'm concerned about is this:

Before this patch, the heading is clearly larger than the link:

After this patch, the heading is smaller than the link:

Since we are removing weight from these elements removing the uppercase rule, we should compensate that by increasing the font-size or weight.

avpaderno’s picture

@andrewmacpherson I apologize: I totally misunderstood your previous comment.

Yes, using all capital letters to make a phrase more evident is a bad idea, considering there are languages written with a script without capital letters. Even in English, capitalizing a full phrase should be considered bad style, as doing so is probably considered equivalent of shouting.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

sahal_va’s picture

Status: Needs review » Reviewed & tested by the community

This issue has been fixed in core 9.1.x-dev version

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

@sahal_va the admin/config page in the Seven theme is still using all caps for the panel titles - so it's not fixed. And this is not rtbc either because #52 has not been addressed. The patch still applies but I wonder how some of the new is-the-css-in-sync tests fare. Plus what about Claro.

sahal_va’s picture

Status: Needs work » Needs review
StatusFileSize
new5.42 KB

@alexpott Increasing the font-size for panel-title would solve the issue in #52.
It is already sentence case in Claro.
Providing the patch considering the issue pointed in #52

Status: Needs review » Needs work

The last submitted patch, 57: 2958239-57.patch, failed testing. View results

komalk’s picture

Status: Needs work » Needs review
StatusFileSize
new5.49 KB
new787 bytes
new32.43 KB
new30.53 KB

Increase the font-size for compensating heading and the link mentioned in #52.
Review the patch.

sahal_va’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new66.7 KB
new64.32 KB
new82.13 KB
new35.44 KB
new74.6 KB
new24.96 KB
new22.01 KB
new91.1 KB
new25.23 KB

This is fixed by patch #59 and looks good.
Attaching the screenshots herewith.

quietone’s picture

Status: Reviewed & tested by the community » Needs work

There are many coding standard errors, https://www.drupal.org/pift-ci-job/1793482. Setting to NW for that.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

santosh_verma’s picture

Hi #quietone

This ticket was created for an uppercase issue,
I think coding standard errors are out of ticket scope so can I create a child ticket for that?

santosh_verma’s picture

StatusFileSize
new10.33 KB

I have fixed the maximum coding standard error few left like
1. Heading (h2, h3) should not be qualified ( on h2 there is not any class so for this we have to add a class over the tags)
2. Heading (h2, h3) has already been defined (for the same reason mention above)
3. background image was used multiple time ( in the CSS variable not qualified for linting)
4. Don't use IDs in selectors (some of the tag there is not any class so for this we have to add a class over the tags)
5. Expected ( | none) but found 'alpha(Opacity=35)' (we use filter alpha for IE older version as they did not support the opacity)
6.Use of !important (some of the place we have to use this )

santosh_verma’s picture

StatusFileSize
new6.09 KB
avpaderno’s picture

Status: Needs work » Needs review
paulocs’s picture

In my opinion we should not fix the code standard in this issue as it makes the patch much bigger and we need to do changes in places that the code were not edited in patch #59.

What do you think @quietone?

NitinLama’s picture

Agreed with @paulocs we should keep coding standard in check but not in this issue as this issue is more about fixing css and out of the scope of coding standard. Also, patch #64 works fine.

djsagar’s picture

Status: Needs review » Needs work
StatusFileSize
new100.8 KB
new43.29 KB
new250.57 KB

Hello all,

I applied patch no #64 and it's resolved all-caps but i found i new issue, when i go appearance and hover on Administration theme
for theme changes there is image repetition issue for the issue. and also there any why not to use !important in css.

Please check the attachment blow.

Thanks!

djsagar’s picture

Status: Needs work » Needs review
StatusFileSize
new10.29 KB
new944 bytes

I created patch for issue #69 please review.

Thanks!

djsagar’s picture

Status: Needs review » Needs work
djsagar’s picture

Status: Needs work » Needs review
StatusFileSize
new10.13 KB
new902 bytes

Rolling up patch with interdiff.

abhijith s’s picture

StatusFileSize
new110.39 KB

Patch applied cleanly in 9.2.x.
after

bhumikavarshney’s picture

StatusFileSize
new80.73 KB

Still not able to apply #72 patch

bhumikavarshney’s picture

Status: Needs review » Needs work
djsagar’s picture

Status: Needs work » Needs review
StatusFileSize
new62.52 KB

@BhumikaVarshney it's seem your doing something wrong.

i also applied same patch check the attachment blow.

avpaderno’s picture

The only way to check if a patch applies to a Drupal version is re-running tests on that Drupal version. One of the first steps tests run is checking the patch applies.
There isn't any need to provide screenshots to show whether the patch applies or not; the tests will return an error, in the case it doesn't apply.

djsagar’s picture

@kiamlaluno,

Thanks for your comment.

Madhu kumar’s picture

StatusFileSize
new182.98 KB
new160.3 KB

Patch #30 applied cleanly and it is working well.

Before applying the patch

before-patch

After applying the patch

after

Madhu kumar’s picture

Status: Needs review » Reviewed & tested by the community
cainaru’s picture

Tested the latest patch from #72 in Chrome 89.0.4389.82.

Looks good, but in some places of the Seven theme the font-size of table headers and details summary elements seem a bit tiny... but maybe that is just me?

My testing steps, in case anyone else wants to verify:

  1. Spin up a sandbox on simplytest.me on 9.2.x with the patch from #72
  2. Visit the following pages and make note of the appearance:
    1. /admin/appearance/settings/bartik
    2. /admin/content
    3. /admin/config/development/performance
    4. /admin/reports/status
    5. /admin/structure/views
    6. /admin/structure/views/view/content
    7. /admin/config
    8. /node/add/page

Screenshot 1:
The theme settings for the Bartik theme, first chunk of the page.

Screenshot 2:
The theme settings for Bartik, bottom chunk of the page.

Screenshot 3:
The content page.

Screenshot 4:
The performance page.

Screenshot 5:
The status report page, first chunk.

Screenshot 6:
The status report page, second chunk.

Screenshot 7:
The views list page.

Screenshot 8:
The configuration page for the Content view.

Screenshot 9:
The config page.

Screenshot 10:
The node creation form for a Basic page.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 72: 2958239-71.patch, failed testing. View results

spokje’s picture

Please do not ask the testbot to try again until #3207086: [HEAD BROKEN] Consistent failure in MonthDatePluginTest is fixed.

spokje’s picture

Status: Needs work » Reviewed & tested by the community

#3207086: [HEAD BROKEN] Consistent failure in MonthDatePluginTest was committed. Ordered retest and put this issue back to RTBC per #80

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 72: 2958239-71.patch, failed testing. View results

catch’s picture

Status: Needs work » Reviewed & tested by the community

Restoring status after HEAD was broken.

lauriii’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Usability, +Needs usability review

Tagging for UX review given how significant the impact of this change is

vikashsoni’s picture

StatusFileSize
new130.36 KB
new109.18 KB

#30 patch applied successfully and looks good for me in drupal-9.3.x-dev
Thanks for the patch for ref sharing screenshots ....

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

nod_’s picture

Status: Needs review » Postponed (maintainer needs more info)

Seven is out of core and the issue is not as present in Claro. Should we leave it as that or try to track down all the remaining 'uppercase' from core css?

There are still some uppercase in some of the core css, but given everything has been about seven it's probably better to open a new issue.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

mgifford’s picture

That makes sense to me @nod_ I could only find references to Bartik & Seven.

May well be outstanding issues with D10/11 themes, but we're going to have to pick them out again.

quietone’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)
Issue tags: +Bug Smash Initiative

@mgifford, thanks for replying.

Based on that I am closing this issue as outdated. If anyone finds issues with the use of all-caps texts they should open a new issue.

Thanks everyone for working on this!