Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2016-08-24 19:34:48

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

mrdale wrote #300764:

Here’s another question/observation.

I see we’re using a svg sprite for all the little icons. Why use that instead of a typeface?

I decided that I didn’t like the interface being so chatty with text. ie you shouldn’t have to see “expand all” next to an icon when the icon with a tooltip would suffice as it does in so many other places.

So with a sprite with margin offset mapping, making the icons larger, or changing color becomes quite a massive chore, whereas with a typeface it would be trivial.

Thoughts?

Yes, there is a reason we use SVG, this article sums it up fairly well. Basically icon fonts are really bad for accessibility. We also hide some extra nice accessibility helpers in some of the icons via some off-screen text that screen readers can announce.

Regarding the colour change, that will be a doodle once CSS mask is more widely supported by browsers (damn you IE11 and Edge), I already have these commented-out rules waiting in the dev stylesheet for when that joyful day happens:

//mask: url("../img/ui-icon-sprite.svg");
//mask-repeat: no-repeat;
//mask-size: 256px 272px;

Then all you have to do is change icon background-color to whatever you desire. Explanation here.

Offline

#74 2016-08-24 20:32:31

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

Offline

#75 2016-08-24 20:46:50

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

philwareham wrote #300765:

this article sums it up fairly well.

All good reasons (including ones I would never have thought of) and I respect your decision. That said, I’m with MrDale – I still absolutely love the ease of using icon fonts. fontello and co have made it so much easier to create small icon subsets including custom own icons.


TXP Builders – finely-crafted code, design and txp

Offline

#76 2016-08-24 21:22:38

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

Erm, so the counter argument is because they want to support old versions of Android? And how do you propose we serve those accessibility helper texts that I enclose in the icon spans if we use a font and glyph and undefined Unicode numbers that may well get defined at any time?

Offline

#77 2016-08-24 22:20:06

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

Actually I find the whole argument specious as it relates to the admin panel of a CMS.

In that article his points are:

  1. Screen readers may pronounce the icons (very rarely if PUA is used)
  2. They Encroach on Emoji Turf (seriously? in this context? how?)
  3. They Fail Poorly and Often (when and where have you seen failures? I’ve only seen them when a site I build is misconfigured.)
  4. They Never Looked Right (mine and most people’s seem to, what is he seeing, imperfect antialiasing?)
  5. You’re Probably Doing It Wrong (So don’t.)

So let’s get down to it. You’ve got a wacking big sprite that you have to know grid positions for in order to adapt and it does not scale easily.

My point is simply do the benefits of providing accessibility to massively edge-cases really justify to inflexibility to all, or is that whole argument just silly?

And if you say “no it’s not silly and sprites are definitely more graceful”, I’ll drop any objection and merrily make a hacked admin like I usually do anyway. But my vote is to provide an admin UI that people can adapt without playing battleship.

Offline

#78 2016-08-25 06:42:46

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

Ok we’ll have to agree to disagree. Personally I feel SVG is the correct and cleaner solution. Maybe you’re right that accessibility is edge-case where Textpattern is concerned but it is an area I’m interested in and I strive to do it correctly.

I’ll think about ways to help you swap out the logo sprite more easily though.

Offline

#79 2016-08-25 13:47:45

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

philwareham wrote #300771:

Erm, so the counter argument is because they want to support old versions of Android?

I assume the problem isn’t actually “old versions of Android” but rather that Chrome isn’t available on them and the old Android Browser didn’t support this. I get what he meant but that was kind of an odd explanation.

Offline

#80 2016-08-25 14:49:06

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

Hi Devs,

Got a chance to give 4.6 a spin on the demo site.

I like the backend changes, really clean, no tagbuilder, etc.

My only concern, being a long time user, is the size of the distribution.

4.5.7 = zip (604kb), disk (2.2mb)
4.6.0 = zip (1.42mb), disk (4.8mb)

The distribution has doubled in size, mostly it’s the vendors and admin-themes folders.

Lean and mean, it’s how I like my PHP apps, which is why I like FluxBB over phpBB, DokuWiki over MediaWiki, etc. It’s one of the main reasons I chose Textpattern as my CMS back in the day. Such a small distribution, made it so easy to keep multiple sites updated, and of course, less code equals less bugs, less security issues.

As always, it’s just my humble opinion, otherwise, 4.6 is looking good.

Offline

#81 2016-08-25 14:59:53

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

Yes, theme assets, PSR-style coding and other new libraries which enhance Textpattern (such as jQuery UI and PrismJS) mean a larger download I’m afraid. The price of progress – not much we can do about that.

I will be able to slim down the packaging a bit when CSS Mask becomes more supported (we can ditch the multiple colour variants of the admin theme image sprite).

Tag builder returns in beta3 very soon anyway (although the code has always been in the betas, just not hooked up, so that doesn’t add anything to the download size).

Offline

#82 2016-08-25 15:02:30

towndock
Member
From: Oriental, NC USA
Registered: 2007-04-06
Posts: 329
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

hcgtv wrote #300801:

The distribution has doubled in size…

It has, but you know how it compares to other CMS options. 2x tiny – is still tiny.

And while 4.6 has grown – in my tests it is even faster than previous versions.

Offline

#83 2016-08-25 15:28:01

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

philwareham wrote #300803:

Tag builder returns in beta3 very soon anyway (although the code has always been in the betas, just not hooked up, so that doesn’t add anything to the download size).

Will it be on the right side menu, or is it coming back to the left, where it takes away space from the Pages and Forms?

towndock wrote #300804:

And while 4.6 has grown – in my tests it is even faster than previous versions.

I think the new parser from Ruud and Oleg has kept TXP fast while adding new features.

Mind you, I’m all for moving forward, just nostalgic about tiny code bases.

Offline

#84 2016-08-25 15:32:11

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Feedback to: Textpattern CMS 4.6.0 beta 2 released

hcgtv wrote #300805:

Will it be on the right side menu, or is it coming back to the left, where it takes away space from the Pages and Forms?

Neither of those – see here

Offline

Board footer

Powered by FluxBB