仍需要为响应式设计实现字体大小切换器吗? [英] Is it still necessary to implement a Font Size Switcher for responsive design?

查看:90
本文介绍了仍需要为响应式设计实现字体大小切换器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在响应式设计之前的旧时代,人们习惯放置字体大小切换器(如所附的图像)以允许更改网站的字体大小。





问题:




  • 是否有任何好的网站可以解释为什么我们应该或不应该再做呢?

  • 如果未提供字体大小切换器,是否将其视为未在网站上实现可访问性(例如,由于澳大利亚可访问性标准而失败)?



根据响应式字体,字体大小应取决于阅读距离。



我真的很想不实施它,因为我个人看不清楚要点,但我不希望产品成为例如仅限出售给澳大利亚。



一般的响应式设计原则已经建议了字体大小的可访问性,我认为操作系统或浏览器有责任为特定用户全局设置字体大小。否则,当使用相同的浏览器访问不同的网站或在线系统时,这确实是不一致的。



如果有人可以对问题进行解释,我们将不胜感激。

解决方案

正式答案是您需要启用文本大小调整(最多200%,标准1.4.4 ),但可以与内置浏览器一起使用功能。



因此,对于可访问性,文本大小的小部件从不需要(对于大多数基于W3C指南的内容)。



可能是某个特定的组织要求他们,但他们更有可能使用文本大小的小部件来增加他们的感知



所有台式机浏览器都具有缩放功能,实际上默认情况下现在缩放为缩放(而不是文本大小调整),这对于响应式站点非常有用,因为缩放将导致媒体查询激活。即高缩放级别看起来像移动网站。总体这是一件好事



添加文本大小的小部件可能会使您的布局复杂化很多,因为很难同时处理缩放和文本大小调整,因此我会避免。

In the old times before responsive design, people used to put a font size switcher (like the image attached) to allow changing the font size of a web site.

Questions:

  • Is there any good website explain why we should or should not do it any more?
  • Would it be considered as not implementing accessibility (e.g. failed by the Australia Accessibility Standards) on a web site if not providing a font size switcher?

According to Responsive typography, the font size should depend on the reading distance.

I'm really tempted to not implement it because I personally don't see the point, but I don't want the product to be e.g. restricted to be sold to Australia.

General responsive design principles already suggests font size accessibility, and I think it should be a operating system or browser's responsibility to globally set the font size for a particular user. Otherwise it's really inconsistent when using the same browser to access different web sites or online systems.

Would really appreciate if someone could provide an explanation to the questions.

解决方案

The official answer is that you need to enable the resizing of text (up to 200%, criteria 1.4.4), but that can be with the built-in browser functionality.

Therefore text-size widgets have never been required for accessibility (for anything based on W3C guidelines, which is most things).

It could be that a specific organisation requires them, but it is more likely that they use text-size widgets to increase the perception that they are doing something for accessibility.

All the desktop browsers have zoom, and in fact default to zoom (rather than text-sizing) now, which is good for responsive sites as zooming will cause media-queries to activate. I.e. a high zoom level will look like the mobile-sized site. Overall this is a good thing.

Adding a text-size widget is likely to complicate your layout a great deal, as it is hard to deal with zoom and text-sizing at the same time, I would avoid it.

这篇关于仍需要为响应式设计实现字体大小切换器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆