java项目指南_设计指南分类项目

java项目指南

重点 (Top highlight)

Labels, Tags, or Badges are all types of classification component that help to categorize, organize, and label elements. In this article, we will explore how best to use these UI components, with guiding examples from different design systems — from Shopify’s Polaris, to Google’s Material Design.

标签,标签或徽章是有助于分类,组织和标记元素的所有类型的分类组件 。 在本文中,我们将通过Shopify的Polaris到Google的Material Design等不同设计系统的指导示例,探索如何最好地使用这些UI组件。

组件术语 (Component Terminology)

Classification components go by many names, depending on who you talk to.

分类组件有许多名称,具体取决于您与谁交谈。

标签 (Label)

I’d say the most generic term for a classification component would be ‘Label’, which Semantic defines as any classification content.

我会说,分类组件的最通用术语是“ 标签”语义将其定义为任何分类内容。

徽章 (Badges)

As seen in Shopify’s Design System, although Badges can be more specifically defined as components holding a numeric attribute, such as Apple’s app notification count:

Shopify的设计系统中可以看出,虽然可以将徽章更具体地定义为具有数字属性的组件 ,例如Apple的应用程序通知计数:

Image for post

标签 (Tags)

Another term is a Tag, which is notably known as something users can uniquely add to items for SEO purposes. However, the United States Web Design System uses Tags to call attention to new or updated content.

另一个术语是标签 ,众所周知, 标签是用户可以出于SEO目的而唯一地添加到项目中的东西。 但是, 美国Web设计系统使用标签来引起对新内容或更新内容的注意。

Image for post
Medium leverages Tags in originally-intended format.
中级会采用最初打算使用的格式的标签。

薯条 (Chips)

Chips were made famous by Material Design, although their Chips can also be used for selecting, filtering and inputting.

芯片被唱红材质设计 ,虽然他们的芯片也可用于选择,过滤和输入。

Image for post
Material Design is awesome 🤗
材质设计很棒we

荣誉奖 (Honorable mentions)

Pills, Lozenges, and Tokens. These are more defined by their shape, rather than their functionality.

药丸锭剂令牌 。 这些由它们的形状而不是功能来定义。

定义 (Definition)

For the sake of this article, I will use the term Label and will define it as:

为了本文的方便,我将使用标签一词,并将其定义为:

A component that further classifies an item / element, e.g. the status of an item.

进一步对项目/元素进行分类的组件,例如项目的状态。

Image for post
The status of your article is shown next to the Medium logo. This Label is static.
您的文章状态显示在“中”徽标旁边。 此标签是静态的。

解剖学 (Anatomy)

Image for post
Not much here, but always worth defining the sub components.
这里没有多少,但始终值得定义子组件。

设计规则 (Design Rules)

1.不要让标签看起来像按钮 (1. Do not make Labels look like buttons)

This is especially true if the Labels are not dynamic. If they can’t be clicked then they should not look like other components that can be clicked. The United States Web Design System seemed to have the same concern. 😏

如果标签不是动态的,则尤其如此。 如果无法单击它们,则它们看起来不应像其他可以单击的组件。 美国网页设计系统似乎也有同样的问题。 😏

Image for post

Labels should be smaller than buttons, have different casing, corner radius, color and padding.

标签应小于按钮,并具有不同的大小写,边角半径,颜色和填充。

Image for post
I personally like tags with very little (or no) corner radius, if your buttons have a corner radius.
如果您的按钮具有圆角半径,我个人喜欢很少或没有圆角半径的标签。

Zendesk follows this rule:

Zendesk遵循以下规则:

Image for post

So does Github, besides the corner radius.

除了转角半径外,Github也是如此。

Image for post

2。 将标签尽可能靠近物品放置 (2. Place Labels as close to the item as possible)

To optimize a Label’s effectiveness (discoverability), it should really sit right next to the item.

为了优化标签的有效性(可发现性), 标签应确实位于商品旁边。

Image for post
The Label should be buddies with the item 👬
标签应为好友项目item

The Label can even be ON the item:

标签甚至可以位于以下项目上:

Image for post
The NHL app has the WATCHED label right on the video.
NHL应用程序在视频上具有WATCHED标签。

3.如果标签是动态的,请确保易于单击 (3. If the Label is dynamic make sure it is easy to click)

If the only action that can be taken on a Label is removing it, then clicking anywhere on the Label should remove it. Below is a Tag, but shows how a user has to annoyingly click the small little exit icon to remove it. This is not a very accessible button…

如果唯一可以对标签执行的操作是将其删除,则单击标签上的任何位置都应将其删除。 以下是一个Tag ,但显示了用户如何烦人地单击小小的出口图标将其删除。 这不是一个非常易于使用的按钮…

Image for post
The hand cursor makes it seem like clicking the whole Label will do something…
手形光标看起来好像单击整个Label会执行某些操作…

This is better:

这个更好:

Image for post
Hover over state makes it very clear to the user they will be removing the Label.
悬停状态使用户非常清楚他们将要删除标签。

Gmail is an exception, as clicking on different sections of the Label will result in a different action:

Gmail是一个例外,因为单击“ 标签”的不同部分将导致不同的操作:

Image for post
Still asking the user to click on a very small area, but the affordances are at least clear.
仍然要求用户单击很小的区域,但是费用至少是清楚的。

That’s it!

而已!

Let me know if you think there are other design rules to follow for Labels, or whatever you call them. 🙃

让我知道您是否认为Labels或其他您可以遵循的其他设计规则。 🙃

其他标签示例 (Additional tag examples)

Image for post
NEW tag is from We Work Remotely. 标签来自“我们远程工作”。
Image for post
SCHEDULED tag is found when googling Delta flights. SCHEDULED标签。
Image for post
NON-ALCOHOLIC tag is from True Laurel’s drink menu (San Francisco) 非酒精类标签来自True Laurel的饮品菜单(旧金山)

翻译自: https://blog.prototypr.io/design-guide-classifying-items-db5b121985d

java项目指南

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值