Problem/Motivation

I have aging eyes. Therefore I (and many of my aging peers) set the default font size in our browser to 16px or higher. A default font size of 1em or 100% or higher honors this preference. The Bartik theme has font-size:87.5% for the body. Other CSS styles adjust this slightly, but the end result for most content is a font size that is smaller than my browser's default (15px for the main content, 12.8px in the sidebar, 12px in the footer). I can't read this content without using my browser's zoom features.

Proposed resolution

  • Never hide content from low vision users by using a font size that's less than 1em.
  • Change element font sizes as necessary to maintain content differentiation
  • Try to keep large element font size the same as current implementation.

I believe in stylistic choice and won't recommend this for all themes, but since Seven is the default install and admin theme, I feel strongly that everyone should be able to see its content without having to know the browser zoom keystrokes (some users aren't aware of these).

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because it's not technically a bug or a new feature.
Issue priority Normal because it is a non-breaking issue.
Unfrozen changes Unfrozen because it only changes CSS.
Prioritized changes The main goal of this issue is usability/accessibility.
CommentFileSizeAuthor
#105 help-extend.png28.08 KBnjbarrett
#105 panel-title-patch-#104.png28.19 KBnjbarrett
#105 panel-title-patch-#103.png28.6 KBnjbarrett
#105 improve_visibility_of-2045473-104.patch3.11 KBnjbarrett
#103 improve_visibility_of-2045473-103.patch3.09 KBnjbarrett
#100 views-ui-table.png52.11 KBnjbarrett
#100 filter-summary.png26.72 KBnjbarrett
#7 drupal-bartik_font_size_is_too_small-2045473-7.patch759 bytesinternetdevels
#12 Screen Shot 2014-01-25 at 8.55.20 AM.png95.67 KBmgifford
#13 biggerfont.jpg104.64 KBdcrocks
#14 Screen Shot 2014-01-25 at 10.47.43 AM.png328.16 KBmgifford
#19 ascrn1.jpg102.39 KBdcrocks
#19 ascrn3.jpg148.4 KBdcrocks
#19 ascrn6.jpg283.88 KBdcrocks
#19 ascrn8.jpg159.1 KBdcrocks
#19 ascrn9.jpg199.34 KBdcrocks
#23 2045473_23_Bartik_and_Seven_font_size_too_small.patch761 bytesdcrocks
#31 Screen Shot 2014-01-29 at 08.33.43.jpg118.02 KBlewisnyman
#32 2045473_32_Bartik_and_Seven_font_size_too_small.patch759 bytesdcrocks
#2 bartik-font-size-change-2045473-2.patch331 byteslauriii
#3 Screen Shot 2014-01-22 at 10.12.40 AM.png174.04 KBmgifford
#33 no-squint-bartik.png166.48 KBmgifford
#33 no-squint-seven.png303.65 KBmgifford
#35 Screenshot 2014-04-21 15.05.59.jpg132.61 KBlewisnyman
#35 Screenshot 2014-04-21 15.07.33.jpg202.06 KBlewisnyman
#47 140523 small font size.png135.53 KBcharles belov
#52 drupal-seven_font_size-2045473-52.patch2.23 KBchippper
#55 drupal-seven_font_size-2045473-55.patch2.33 KBchippper
#55 People___Drupal_8_and_People___Drupal_8.png91.18 KBchippper
#55 Create_Article___Drupal_8_and_Create_Article___Drupal_8_and___Sites_vdd_dev_data_drupal8_core_themes_seven_style_css_—_seven.png218.98 KBchippper
#55 Content__Content____Drupal_8_and_Content__Content____Drupal_8.png248.02 KBchippper
#55 Create_Article___Drupal_8_and_Create_Article___Drupal_8.png201.2 KBchippper
#55 Configuration___Drupal_8_and_Configuration___Drupal_8.png202.86 KBchippper
#56 Edit_Article_content_type___Drupal_8_and_Edit_Article_content_type___Drupal_8.png144.5 KBchippper
#72 drupal-seven_font_size-2045473-72.patch3.15 KBjjcarrion
#89 2045473-seven-font-size-89.patch3.14 KBnjbarrett
#94 breadcrumb.png14.77 KBnjbarrett
#94 form-descriptions.png20.23 KBnjbarrett
#94 help.png7.23 KBnjbarrett
#94 table.png5.16 KBnjbarrett
#94 vertical-tabs.png10.9 KBnjbarrett
#94 views-ui.png18.5 KBnjbarrett
#94 improve_visibility_of-2045473-94.patch3.15 KBnjbarrett

Comments

star-szr’s picture

Issue summary: View changes
Issue tags: +Novice

I think creating a patch for this could be a good task for a new contributor.

lauriii’s picture

Status: Needs work » Needs review
StatusFileSize
new331 bytes

Changed the body font-size to 1em

mgifford’s picture

StatusFileSize
new174.04 KB

This applies nicely. The new one is the one on the left.

dcrocks’s picture

What is the scope here? There are many other places in Bartik's style.css where the font size is specified at less than 1em. Seven's base.css also has assigned a font-size to 'Body' that is 81.3%. Most of these are probably appropriate(tables, etc.). Is this issue just looking at 'first page', or is it intended to establish best practice?

dcrocks’s picture

Actually, since I also have old eyes, I'd recommend including a similar change to the 'body' attribute in Seven's seven.base.css. Since a frequent activity with any theme is to look at the administrative menus.

lauriii’s picture

Assigned: Unassigned » lauriii
internetdevels’s picture

Assigned: lauriii » Unassigned
StatusFileSize
new759 bytes

According to comment above I've added needed styles to seven.base.css.

Anonymous’s picture

mathes’s picture

i testet the patch and it works for me. in seven and bartik font-size is now 1em.

Anonymous’s picture

Assigned: Unassigned »
Anonymous’s picture

Assigned: » Unassigned

Everything fine on me now for bartik.

mgifford’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new95.67 KB

Why would 87.5% be a good idea anyways?

I'm attaching a screenshot.

dcrocks’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new104.64 KB

I wasn't sure if simplytest.me didn't do some css overrides so I tested current clone with and without the patch, as shown in the attached image(with patch on right). Note my browser default font size is set to 18px. Since seven is the default theme for install, it also has a large affect there, which some may not like. I think that should be looked at before this goes in as is.

mgifford’s picture

Title: Bartik font size is too small » Bartik & Seven font size is too small
StatusFileSize
new328.16 KB

Yup. This is true.

It might make more sense split this up so that it can get noticed in Seven's issue queue too.

dcrocks’s picture

Status: Needs review » Reviewed & tested by the community

I tried again with my browser set to 16px, which is the normal default. I didn't find any pages during install that scrolled now but didn't before. So I think it should be set back to RTBC. I would like to find out why Bartik and Seven assume assume that ~13px is the most desirable base font size for their themes. I found references stating this but no justification, as if it were an industry standard.

Is there a tag we could add to this to get a css designer to look at it?

dcrocks’s picture

I would like to add a reference to an article I found while researching this that I found pertinent for today's Bartik. How we learned to leave default font-size alone and embrace the em . Following this, we should delete the font-size specification, rather than modifying it.

star-szr’s picture

Status: Reviewed & tested by the community » Needs review

For Bartik we probably want to just remove the font-size declaration, I don't think adding font-size: 1em is doing anything :). As for Seven, it might make more sense to leave it out of this issue as has been discussed. Seven has its own style guide and looking at this I'm thinking a vertical rhythm has been established that as far as I know would be broken if this patch were committed as is.

+++ b/core/themes/seven/seven.base.css
@@ -4,7 +4,7 @@
-  font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", sans-serif;
+  font: normal 1em/1.538em "Lucida Grande", "Lucida Sans Unicode", sans-serif;
star-szr’s picture

Issue tags: +CSS
dcrocks’s picture

StatusFileSize
new102.39 KB
new148.4 KB
new283.88 KB
new159.1 KB
new199.34 KB

The problem for the Seven theme is that font-size is determined relative to the parent font size while line height is determined by the current font size. I modified the line height value for Seven and I think improved things, but vertical spacing just can't be consistent with the old settings, if for no other reason than line overflows occurring differently. In the attached images, unmodified images are on the left.

droplet’s picture

dcrocks’s picture

Tried the use of 100% instead of 1em but didn't see much difference, but probably should use percent any way as the original code used percent. To me, the accessibility improvement to Bartik and Seven is worth dealing with slightly taller pages. But the design elements of Seven seem to be a sticking point right now and somebody else should comment. Guess I should look at the Seven design guide to see if this is a flagrant abuse.

dcrocks’s picture

Actually the current implementation violates the Seven Style Guide . From the Typography section:

"Body text is 16px/24px Regular. All text is 90% black (#1a1a1a) unless otherwise noted. A baseline grid of 24px is used throughout, relatively strictly for running text and for spacing between elements, less strictly within some UI components where other requirements come into play."

The current implementation gives 13px/20px. The body attribute should be '100%/1.538em'

dcrocks’s picture

Though this is such a small patch, this is one more iteration.

Status: Needs review » Needs work

The last submitted patch, 23: 2045473_23_Bartik_and_Seven_font_size_too_small.patch, failed testing.

dcrocks’s picture

Status: Needs work » Needs review
sqndr’s picture

+++ b/core/themes/bartik/css/style.css
@@ -2,7 +2,7 @@
   line-height: 1.5;

+++ b/core/themes/seven/seven.base.css
@@ -4,7 +4,7 @@
-  font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", sans-serif;

The line height is now (slightly) different in both themes, right? For Seven, the line height is 1.538em and for Bartik it's 1.5. Should 't they both use the same line height to be somewhat more consistent?

dcrocks’s picture

Probably, since they are now applied to the same value. 81.3% of 16 gave 13.008 times 1.538 resulted in 20.006 for line height. 16 times 1.538 gives 24.608 for line height. Forget what browsers do with extra decimal points. Will fix, but still waiting for some comment about overall affect of this change from someone with good vision.

lewisnyman’s picture

Woah, hold up a second. Isn't the whole reason we set the percentage on font size is so users can increase/decrease it at their preference. 16px is way too big for a complex UI. Note that the Seven style guide's typography guidelines are made with Source Sans in mind. For Lucida Grande it's way too big.

dcrocks’s picture

Users can still increase/decrease at their preference. And Bartik is not a complex UI. The discussion I've read, at least recent commentary, recommends 16px base and modification according to content. More text in a given area is not more stylish than readable text. This is an accessibility and design issue. If the font choice makes for problems then maybe Bartik needs some re-design, because I thought Drupal has made accessibility a priority.

sqndr’s picture

There's an interesting article from smashingmagazine about body copy font size. You can read the article here.

"The problem here is a basic usability and accessibility issue: a good design should look good without requiring the user to enlarge or reduce the text size.”
- From W3, more here

lewisnyman’s picture

Category: Task » Feature request
StatusFileSize
new118.02 KB

We can't please everyone. Everyone has a their own preferences for font size. Some may prefer more than 16. I don't believe that there is a blanket rule: “All websites must now just 16px base font sizes”.

The typeface makes a big difference, here's a comparison of Source Sans and Lucida Grande both set at 16px.

Having said that, feel free to play around. If Bartik looks great at 16px then it's win win. It's a 100% design decision though. We shouldn't force this through.

dcrocks’s picture

A nitpicking update. This only affects Bartik and Seven. The net affect is greater accessibility at the cost of slightly taller pages for Bartik, install, and admin pages. True, 16px for body element font size is not a standard but the only survey I located showed that it is the most frequent, if not near a majority. However, I think 100% is recommended by the W3C, at least implicitly. And, if we can't please everyone, we can at least adopt a choice with a positive rationale, rather than the ambiguity of 'style'. I agree this is a design decision, which, of course, includes accessibility as a parameter.

mgifford’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new166.48 KB
new303.65 KB

This looks good to me. I like the "adopt a choice with a positive rational" approach @dcrocks!

Seven comparison 100%:
font size comparison seven

Bartik Comparison 100%::
font size comparison bartik

joelpittet’s picture

RTBC++ good decision 100% on 100%.

lewisnyman’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new132.61 KB
new202.06 KB

We need more extensive testing than that. We use ems all over the place, so changing the body value changes everything relying on it, that a lot of potential broken pages. The headers are now different sizes and the installation steps look way too big. It's also broken the password indicator, which is set in ems.

Bojhan’s picture

Wow, its quite distressing this has been put to RTBC without thorough testing nor review from maintainers responsible on this front. @mgifford please notify maintainers, when such a big change is put forth.

I do not think the suggested font-sizes matches what we want to do with Seven. I know that the suggested size by W3C is larger, but it really screws up all of our pages - our design can't accommodate such a large font. Also keep in mind that Seven is an application interface, not a article interface - it is optimized for scanning. This also blatantly disregards all the thinking we have done around typography in Seven as shown in the style guide. As far as I am concerned, we cannot enlarge it to this extend in Seven.

mgifford’s picture

@Bojhan - Sorry. No distress was intended. I had somehow thought you'd already seen this. I will be more careful in the future. As always your views are very important with this and other design issues.

So if not 100%, how much larger do you think we could take Bartik so that it was consistent with how large we could allow Seven? I can't make a call about how close we can get to 100% from the existing 87.5%. Maybe it's only 90% at this stage in D8 and we strive for 100% in D9.

@LewisNyman - Thanks for the additional screenshots with problematic areas. Thanks for setting this back to Needs Work.

droplet’s picture

Should be always compared on both Windows & Mac platforms. Ideally, it should checked on Macbook & regular laptops. I think if you're working on macbook retina all days, you seldom notice small font issues.

Bojhan’s picture

@mgifford No problem, I think its good for "major" changes to always get some visual design review.

I think its mostly about optimization for Bartik. I think 95% is as far as we can stretch it without having to change line height, etc. Though I already see some proportional issues with the links in the menu (body text too large in contrast to links in the menu). I am not sure if we still have a Bartik maintainer?

I would have to investigate Seven, we kinda tuned a lot of it already over the past year. As Lewis mentioned already its an application UI, to which other principles apply. We can obviously try to make it larger, but as Lewis clearly pointed out there are a lot of different interfaces to keep in mind (e.g. views, field ui, etc.)

dcrocks’s picture

Even on the many high res displays becoming available, 13px and lower is still a problem for some of us. It is clear that there is some serious font size compounding going on in Seven, possibly less in Bartik. It won't be easy to fix that but I would hope that both would try to improve their accessibility to a broader range of viewers.

Bojhan’s picture

@dcrocks I would consider separating this issue for Seven and Bartik. Seven is I think harder, and possibly we should try to bump text more selectively.

dcrocks’s picture

I think that would be better too, but I think the problem title is a little too simplistic now. Possibly rationalize/optimize font size choices for bartik/seven?

ps. I checked and there at least 14 different css files that affect the display of the install pages.

lewisnyman’s picture

I think it might be easier to split Bartik and Seven into separate issues? The rationale and considerations are different for each.

dcrocks’s picture

Title: Bartik & Seven font size is too small » Seven font size is too small
Related issues: +#2247319: Improve visibility of smallest font elements

I created a new issue for Bartik.

dcrocks’s picture

Component: Bartik theme » Seven theme
lewisnyman’s picture

Title: Seven font size is too small » Increase Seven 's font size
Priority: Major » Normal

Updating the title to sound like a feature request and knocking down from major, feature requests can't be major :-)

charles belov’s picture

StatusFileSize
new135.53 KB

I'm finding the detail text too small even at 175% zoom.
Excerpt from status report at 175% zoom

dcrocks’s picture

Simply setting the body font size larger doesn't work because it distorts the display too much. What I have focused on is leaving large elements the same size and trying to make sure there are no elements smaller than 1em. It seems the tweaking can become interminable. And, of course, there are other distractions.

lewisnyman’s picture

@dcrocks That sounds achievable, do we need to change the title and issue summary?

dcrocks’s picture

Title: Increase Seven 's font size » Improve visibility of Seven's smallest font elements
Issue summary: View changes

Changed summary.

lewisnyman’s picture

Issue tags: +frontend
chippper’s picture

Status: Needs work » Needs review
StatusFileSize
new2.23 KB

Just trying to tackle some low hanging fruit. I updated style.css and vertical-tabs.css to up every font-size under 1em to be 1em. There were no other font-size declarations in Seven that I could find. In my testing there doesn't seem to be any regression in layout or design.

There was also one instance of a font-size being set to 12px (line 1256 - .views-ui-display-tab-bucket h3), but upping that to 1em also didn't result in any regression.

sarahjean’s picture

Status: Needs review » Reviewed & tested by the community

I tested this locally, checking the admin pages and it seems like setting these font sizes up to 1em does make things a lot more readable. I agree with dcrocks that the tweaking could become interminable if we try another approach. I checked through the css files in seven and with this patch there are no font sizes below 1em now.

lewisnyman’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +needs screenshots

Hey, can we please get a before/after screenshot? Just so it's clear what has changed in the UI? There are a lot of changes here.

+++ b/core/themes/seven/style.css
@@ -1254,7 +1254,7 @@ details.fieldset-no-legend {
 .views-ui-display-tab-bucket h3 {
-  font-size: 12px;
+  font-size: 1em;
   text-transform: uppercase;
 }

I think we should not touch the Views UI. It's fragile and I think that any design change needs to be considered with the rest of the UI

One more point, if we are just setting everything to 1em, do we need a font size property? Isn't the default 1em?

chippper’s picture

Agreed on removing the font size declaration altogether if it's just 1em. I've done just that, and removed whole rules that were nothing but said font size declaration. Also: Screenshots!

chippper’s picture

Just double checked vertical tabs, as well - see the screenshot:

Content Type UI changes based on font-size

This is the one place I've observed any particular ramifications of changing the font size declarations (see the pink arrows).

The summary text on vertical tabs, which once fit nicely on one line, sometimes runs to two lines.

That being said, I see this as an acceptable change. There will be lots of vertical tabs, with lengthy summary text strings, that will inevitably run to two lines. It just so happens the the default summaries on the default content types happened to fit on one line, but now no longer do. I also think it's a price worth paying in the interest of readability.

chippper’s picture

Status: Needs work » Needs review

Updating status.

lewisnyman’s picture

Issue tags: +Usability
dcrocks’s picture

I would like to make one other suggestion: Change the body font size from 81.3%(13px) to 87.5%(14px), which is the same as Bartik. That slight tweak is still positive without distorting anything in the current patch output. I tried the patch as is and with that change and found the output slightly better for my eyes without adding any additional distortions.

lewisnyman’s picture

I tried the patch as is and with that change and found the output slightly better for my eyes without adding any additional distortions.

Which pages did you test? This change requires us to test every page. We can try this but only it's done properly.

Bojhan’s picture

Adjusting the body font-size is not within scope of this issue, thats exactly the things we wanted to avoid.

I am really not so sure about these changes, the text in the configuration screen looks ridiculously big. The form labels vs. descriptions balance is now so off, that its not a small size tweak anymore - there is a big difference between the two.

I don't know, all of this text is highly optimized - now it just feels like we are making it all out of balance. I am still really unsure about this issue in general, we don't have incredibly small fonts like other platforms and our interface zooms very well. The small tweaks we do, won't be enough for those with less sharp vision.

dcrocks’s picture

Tweaking a completed design is difficult. But using browser zoom introduces even more distortions and this patch thus far does minimize them. I would hardly consider the text changes on the configuration page going from 12px to 13px, as 'ridiculous'. I admit I am more concerned about readability than aesthetics, and though I don't think this patch goes far enough I am concerned that if nothing is done now, there will never be any improvement. If the core themes are redesigned for D9 I don't think there will be any more effort to improve readability for the many(if not the majority) of people with less than 100% visual acuity than there was going from D7 to D8 if some stand is not taken now.

lewisnyman’s picture

Improvements are fine but we are not in a position where we can introduce design regressions. Why don't we optimise how we handle user zooming instead of trying to remove the need to zoom?

dcrocks’s picture

No idea as how to go about that. But still consider #55 an improvement, of both accessibility and usability, and not a regression.

chippper’s picture

I guess I'm not clear as to whether or not the change as I pointed out in #56 is considered a regression. I don't think it is, for the reasons I outlined in that comment.

As far as I could tell, the text defaulting to a calculated 13px didn't really affect anything else.

charles belov’s picture

#63: Again, the issue with zooming is that it makes everything larger, not just the things that are too small. This can result in other things becoming too large to read easily.

For example, the largest text might become sufficiently large that it gets pushed outside the viewport.

The idea is to reduce the ratio between the smallest text and the largest text by making the smallest text sufficiently large without disturbing the larger text, which is already large enough without being excessively large. Zoom does not accomplish that.

Status: Needs review » Needs work

The last submitted patch, 55: drupal-seven_font_size-2045473-55.patch, failed testing.

dcrocks’s picture

With all that's be done to seven in the last 2 months, this needs reroll.

mgifford’s picture

Issue tags: +Needs reroll
jjcarrion’s picture

Assigned: Unassigned » jjcarrion

I'm going to take a look here.

jjcarrion’s picture

Assigned: jjcarrion » Unassigned
Status: Needs work » Needs review
StatusFileSize
new3.15 KB

I have made the manual reroll.

dcrocks’s picture

star-szr’s picture

Issue tags: -Needs reroll
lomo’s picture

Assigned: Unassigned » lomo

Not sure I'm qualified to mark this RTBC or not, after all (not a themer).

lomo’s picture

Assigned: lomo » Unassigned
joelpittet’s picture

An automated CSS regression test would be nice here. Anybody know of some tools we can throw at this?

chx’s picture

Issue tags: -Novice, -needs screenshots

This is not novice. And #56 has screenshots.

mgifford’s picture

Is this going to have to get bumped to 8.1.x.?

Bojhan’s picture

Category: Feature request » Task

No, and this is no feature request - its an a11y related change.

lewisnyman’s picture

Category: Task » Feature request

It is a feature request. There's an easy feature for accessibility that is built into all browsers, increasing the font size.

Bojhan’s picture

Ok, makes sense. Though we need better distinction - because OS's also have loads of features around a11y (e.g. high contrast mode) and yet we don't depend on them. Saying we do depend on this one in browsers, and therefor mark it a feature request - seems like a one off.

lewisnyman’s picture

Yes that is true, maybe the distinction is where we support these OS features instead of eliminating the need for them.

We have it built into our CSS best practices to support browser font resizing, we use ems instead of pixels. to achieve this. Another example is the Drupal.announnce JS library which is built to allow core/contrib to easily take advantage of an OS feature.

Sometimes it feels like we are throwing the baby out with the bathwater, when we push a change through under the 'a11y' banner.

dcrocks’s picture

It isn't as if this is a recent issue. Before this issue was created I know I made comments about this in D7 Seven and Bartik issues. It would be sad to keep pushing this back. And I'm not optimistic that any Seven successor nor Bartik would address it either unless it was addressed here.
Besides the 'ally' banner, I just think from a usability viewpoint small font content tends to be ignored content, sometimes with unwanted consequences.

lewisnyman’s picture

Besides the 'ally' banner, I just think from a usability viewpoint small font content tends to be ignored content, sometimes with unwanted consequences.

That's an intentional design decision, hierarchy. Not every piece of text on the page has equal value, so we emphasise more important text using font size.

The latest patch removes hierarchy, so it's a design regression:
Content Type UI changes based on font-size

I would rather we ensure that the theme supports text resizing rather than introduce design regressions. If we can increase font sizes without regressions then let's do that instead.

dcrocks’s picture

We are talking about a browser. Drupal isn't the only page I visit. I already have the base font size set in my browser to larger than the default. There isn't any 1 or 2 or 3 things I can do to make my browser work with all the sites I visit. I don't expect I have any choice about this.
The problem with Seven and Bartik is that they both reduce the base font size significantly, making 1 em 14px and 13 px respectively, setting the base or 'normal' font size of the hierarchy to a small size. But changing those values won't work because the hierarchy doesn't expand well via multiplication.
This patch addresses this by flattening the hierarchy, including more elements into the 'normal' font size without disturbing the larger elements. I'm involved in this issue because I want to improve Drupal, so I consider this issue to be about a problem, or a bug fix, and not a feature request. I consider this a fix and not a regression.

charles belov’s picture

The problem with using zoom to deal with this is that zoom makes everything larger, not just the thing that is too small, making the largest text cartoonishly big.

One question would be whether the themes respect a browser setting of minimum font size, as opposed to zoom, without causing obscuring or overprinting of text. This setting is available in Firefox's advanced font settings. I remember it being in Safari, but don't have a Mac handy to confirm whether it is still a feature.

idebr’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch no longer applies:

error: patch failed: core/themes/seven/css/components/breadcrumb.css:2
error: core/themes/seven/css/components/breadcrumb.css: patch does not apply
error: patch failed: core/themes/seven/css/components/help.css:1
error: core/themes/seven/css/components/help.css: patch does not apply

njbarrett’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new3.14 KB

Rerolled on 8.0.x

mgifford’s picture

@njbarrett - So no changes from #72 other than the reroll?

There are some elements which need work based on @LewisNyman mentioned in #85.

njbarrett’s picture

@mgifford - No I just rerolled it so the patch applies. Still new to contributing :)

mgifford’s picture

No problem. Do you have time to try to address some of the other issues that were mentioned?

Your re-roll seems fine. Bot likes it. Let's see if we can get you a patch in Core.

dcrocks’s picture

re: #85. All this patch does is flatten the bottom of the text hierarchy, so important text remains important and unimportant stays unimportant, with the reward of improved usability. So I wouldn't consider this a regression, but rather an improvement to accessibility.

njbarrett’s picture

StatusFileSize
new3.15 KB
new18.5 KB
new10.9 KB
new5.16 KB
new7.23 KB
new20.23 KB
new14.77 KB

I've rolled a new patch that improves the font size for many elements, and addresses the concern in #85 with regard to vertical tab descriptions. If we increase the size of the vertical tab title, then we would have to increase the size of all labels to maintain the design proportions. I propose setting the descriptions to 0.95em - only a minor decrease in size but still noticeably smaller than the title of the tab. Screenshots attached.

njbarrett’s picture

Hiding older files

joelpittet’s picture

Assigned: Unassigned » lewisnyman

Maybe Lewis can have another look at this. I'm actually still a big fan of #32 :P

Thanks for the screenshots @njbarrett. If you use dreditor, there is some handy embed buttons to easily embed the images in the comment.

dcrocks’s picture

#32 is probably too simple. There isn't any problem with the larger text items, just the small ones. I've given up on any significant redesign of the text items in Seven or Bartik. I can only hope that if a new core theme is developed someone actually thinks about this. But this last patch offers improved accessibility at little cost to the theme's UI. I'm hoping this can go in before 8 is shipped and the same solution can be applied to Bartik, which needs it more.

lewisnyman’s picture

Assigned: lewisnyman » Unassigned

#32 is too simple, it seems like we are making good progress to ensure we don't introduce design regressions, thanks for the work.

Look

+++ b/core/themes/seven/css/components/form.css
@@ -85,15 +85,12 @@ label[for] {
 /* Filter */
-.filter-wrapper {
-  font-size: 0.923em;
-}

Looks like we need a screenshot of this element, which appears alongside the body field input

Also can we get a screenshot of tables with content in? There are a few that this patch could affect, such as field ui, block placement, and views listings.

joelpittet’s picture

Status: Needs review » Needs work
Issue tags: +Needs screenshots

Thanks @dcrocks and @LewisNyman. I'll likely be playing with something like this: http://typejs.org/ with min-max font-sizes for fun.

@njbarrett mind doing up the screenshots mentioned in #98?

njbarrett’s picture

Issue summary: View changes
StatusFileSize
new26.72 KB
new52.11 KB

Here's some screenshots of the filter wrapper and the views table.

njbarrett’s picture

Status: Needs work » Needs review
Issue tags: -Needs screenshots
lewisnyman’s picture

Status: Needs review » Needs work

I am happy with the changed here.

+++ b/core/themes/seven/css/components/panel.css
@@ -10,7 +10,6 @@
 }
 .panel__title {
-  font-size: 0.923em;
   text-transform: uppercase;

Sorry! I was going to RTBC but I realised that we don't have a screenshot for the panel title in Seven (/admin/config)

Also, I noticed that form-descriptions.png is a screenshot of the form descriptions, and help.png is a screenshot of the appearance page?

njbarrett’s picture

StatusFileSize
new3.09 KB

Rerolled patch file on 8.0.x

dcrocks’s picture

Status: Needs work » Needs review
njbarrett’s picture

@LewisNyman

I've attached a screenshot of the panel titles - I actually think these might be too big now, as they are reverting to the h3 style in elements.css (see panel-title-patch-#103). Adding a font size: 1em makes it slightly bigger than the previous 0.923em. I uploaded a screenshot of this suggestion as panel-title-patch#104

Regarding help screnshots, this is the region that appears under messages on some pages. I attached another screenshot showing the difference on the /admin/modules page.

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

Ah yeah, for some reasons I thought .help was only for the help page.

In each situation I think the font size change has been minor enough to not ruin the visual heirachy of the component, in most cases the heirachy is communicated in other means, such as color.

Thanks for the hard work here.

sqndr’s picture

Nice! :)

alexpott’s picture

Category: Feature request » Task
Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs issue summary update

This is a task not a feature request - it looks like a usability and accessibility improvement. This issue is a normal task so we need to outline how it fits within the allowable Drupal 8 beta criteria. Can someone add Drupal 8 beta phase evaluation template to the issue summary.

njbarrett’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update

Added the beta evaluation phase table

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC, thanks @njbarrett for filling out the beta eval.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 0c7e1e9 and pushed to 8.0.x. Thanks!

Thanks for adding the beta evaluation to the issue summary.

  • alexpott committed 0c7e1e9 on 8.0.x
    Issue #2045473 by njbarrett, dcrocks, chippper, jjcarrion, lauriii,...

Status: Fixed » Closed (fixed)

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

mgifford’s picture

Issue tags: +font-size