Some people may have apprehensions to these conventions, such as:
或許有些人對於這些建議有一點疑慮,例如:
-
)You're free to omit them and just use regular words, but keep the rest of the ideas in place (components, elements, variants).
你可以隨意地忽略 dash (-
),然後繼續使用常用的字詞,但還是要保持著原本的想法,元件(component)、元素(element)及變化(variant)。
Some components will only need one word to express their purpose, such as alert
. In these cases, consider that using some suffixes will make it clearer that it's a block-level element:
有些元件只用一個字即可解釋其中的意思,例如 alert
。舉例來說,可以加上一些後綴詞讓它可以很清楚地知道這是一個區塊等級的元素:
.alert-box
.alert-card
.alert-block
Or for inlines:
或是對行內的元素:
.link-button
.link-span