Problem/Motivation

On a largish screen size, the initial font size for regular body text in a text area is 12px, which is smaller than all of the other text on the content creation page. When on a small viewport, the text size jumps up to 16px, which is a bit large. Especially the small font size looks like a disservice to our beloved content creators :)

Proposed resolution

Settle on a better default font size. 14 or 15px seem to look better.

Remaining tasks

Write a patch

User interface changes

A more consistent font-size for body text in CK

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Title: Too small/large font sizes for body text in CK editor » Too small/large font sizes for body text in CKEditor

Thanks, great point :)

rpayanm’s picture

Assigned: Unassigned » rpayanm

Trying...

rpayanm’s picture

Status: Active » Needs review
FileSize
413 bytes
82.19 KB

With 14px.
with 14px

rpayanm’s picture

With 15px.
with 15px

rpayanm’s picture

With 16px.
with 16px

The last submitted patch, 3: text-in-CKEditor-2350011-3.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 5: text-in-CKEditor-2350011-5.patch, failed testing.

The last submitted patch, 4: text-in-CKEditor-2350011-4.patch, failed testing.

xlin’s picture

Status: Needs work » Needs review
FileSize
676 bytes

I updated the font-size to 14px. Please review.

Status: Needs review » Needs work

The last submitted patch, 9: fix-2350011-9.patch, failed testing.

xlin’s picture

FileSize
413 bytes

Second try.

xlin’s picture

Status: Needs work » Needs review
FileSize
413 bytes

Re-upload with correct comment #.

Status: Needs review » Needs work

The last submitted patch, 12: fixed-2350011-12.patch, failed testing.

Palashvijay4O’s picture

Status: Needs work » Needs review
FileSize
598 bytes

Submitting a test patch .

Palashvijay4O’s picture

Assigned: rpayanm » Palashvijay4O
FileSize
54.61 KB
56.09 KB

Screenshots

xq1003 queued 12: fixed-2350011-12.patch for re-testing.

xq1003 queued 9: fix-2350011-9.patch for re-testing.

The last submitted patch, 9: fix-2350011-9.patch, failed testing.

Palashvijay4O’s picture

This seems little strange same patch passed on re-test .... Can anyone elaborate on this ?

rpayanm’s picture

Assigned: Palashvijay4O » rpayanm

@Palashvijay4: you can't assigned the issues from other users, only you can assigned when no one has.
@Palashvijay4,@xq1003: For work an any issue check first that this is unassigned, if no two people working on the same thing, being able to work in another issue.

Greetings.

BarisW’s picture

Status: Needs review » Needs work

There is a comment in the CSS stating "A font-size of 16px prevents iOS from zooming."

So just changing the font-size from 16px to 15px doesn't seem like a good idea without finding out what this comment is about. If there's a workaround, we need to apply that too and update the comment.

rpayanm’s picture

@BarisW I upload 3 patches without touch that line and for large screens I changed the font-size to 14px, 15px and 16px, in the comments #3, #4, #5 respectively, you try with those?

rpayanm’s picture

Assigned: rpayanm » Unassigned
Wim Leers’s picture

zealfire’s picture

Assigned: Unassigned » zealfire
Status: Needs work » Needs review
FileSize
3.74 KB
43.58 KB

@wim leers and @Baris W, i think the comment which is present in css file of ckeditor with respect to zooming in iOS is related to comfortable reading size which i found at his link :http://uxcellence.com/2014/01/15/quick-fix-increase-font-size-to-16px-to... ,so there is most probably no need of any change in this section.But i have made changes in body section by changing font size of 12px to 15px.Am i going in the right direction ?

Palashvijay4O’s picture

@zealfire you should reset your previous changes to the codebase and then create a patch for a new issue . Alternatively you can create different branches for different issue . Hope this helps . :)

zealfire’s picture

uploading new patch.@wim leers and @Baris W, i think the comment which is present in css file of ckeditor with respect to zooming in iOS is related to comfortable reading size which i found at his link :http://uxcellence.com/2014/01/15/quick-fix-increase-font-size-to-16px-to... ,so there is most probably no need of any change in this section.But i have made changes in body section by changing font size of 12px to 15px.Am i going in the right direction ?

katetak’s picture

I tested the patch in #31 and it does change the font size in the window. It's at 15px on standard screen, and increases to 16px on smaller screen.

arunkumark’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
36.8 KB
46.35 KB

Tested and Reviewed in Safari, Opera, IE 11, Chrome and Firefox on Windows.
Attached Screen shot for Safari:
font Size in Safari
Attached Screen shot for Chrome:
Font size in Chrome
Its works Fine.

LewisNyman’s picture

Nice work, I guess it should be pulling in the stylesheet from the active theme? Sounds like a different issue though.

yoroy’s picture

Thanks for reviewing and screenshots, rtbc indeed.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 02d58f6 and pushed to 8.0.x. Thanks!

  • alexpott committed 02d58f6 on 8.0.x
    Issue #2350011 by rpayanm, Palashvijay4O, xq1003, zealfire, yoroy,...

Status: Fixed » Closed (fixed)

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