Fegalegaleaiga
Vasega aoga e suia ai le auala e fegalegaleai ai tagata faʻaoga ma mea o loʻo i totonu o se upega tafaʻilagi.
Filifiliga o tusitusiga
Suia le auala e filifilia ai le anotusi pe a fegalegaleai le tagata faʻaoga.
O lenei parakalafa o le a filifilia atoa pe a kiliki e le tagata faʻaoga.
O lenei parakalafa o lo'o i ai le amio filifilia e le masani ai.
O lenei parakalafa e le mafai ona filifilia pe a kiliki e le tagata faʻaoga.
<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
<p class="user-select-auto">This paragraph has default select behavior.</p>
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
Fa'ailoga mea tutupu
Bootstrap saunia .pe-none
ma .pe-auto
vasega e puipuia pe faʻaopoopo elemene fegalegaleaiga.
E le mafai ona kiliki lenei sootaga .
E mafai ona kiliki lenei so'oga (o le amio fa'aletonu lea).
E le mafai ona kiliki lenei so'oga ona o le pointer-events
meatotino o le tofi mai lona matua. Ae ui i lea, o lenei sootaga e iai se pe-auto
vasega ma e mafai ona kiliki.
<p><a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.</p>
<p><a href="#" class="pe-auto">This link</a> can be clicked (this is default behavior).</p>
<p class="pe-none"><a href="#" tabindex="-1" aria-disabled="true">This link</a> can not be clicked because the <code>pointer-events</code> property is inherited from its parent. However, <a href="#" class="pe-auto">this link</a> has a <code>pe-auto</code> class and can be clicked.</p>
.pe-none
vasega (ma le
pointer-events
CSS meatotino na te setiina) naʻo le taofia o fegalegaleaiga ma se faʻailoga ( isumu, stylus, paʻi). So'oga ma fa'atonuga fa'atasi
.pe-none
, e le mafai, e mafai lava ona taula'i ma fa'atino mo tagata fa'aoga keyboard. Ina ia mautinoa o loʻo faʻamalo atoatoa e oʻo lava i tagata faʻaoga keyboard, atonu e te manaʻomia le faʻaopopoina o isi uiga e pei o le
tabindex="-1"
(e taofia ai i latou mai le mauaina o le keyboard focus) ma
aria-disabled="true"
(ia faʻaalia le mea moni latou te le atoatoa i tekinolosi fesoasoani), ma atonu e faʻaaoga le JavaScript e puipuia atoatoa i latou mai le fa'atinoina. Mo fa'atonuga, mafaufau e fa'aoga le
disabled
uiga HTML nai lo.
Sass
Utilities API
O feso'ota'iga feso'ota'iga o lo'o fa'aalia i totonu oa tatou mea aoga API i scss/_utilities.scss
. A'oa'o pe fa'afefea ona fa'aoga mea aoga API.
"user-select": (
property: user-select,
values: all auto none
),
"pointer-events": (
property: pointer-events,
class: pe,
values: none auto,
),