Fa'ase'e ile anotusi autu Fa'ase'e ile su'ega fa'amatalaga
Check
in English

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.

html
<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-nonema .pe-autovasega 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-eventsmeatotino o le tofi mai lona matua. Ae ui i lea, o lenei sootaga e iai se pe-autovasega ma e mafai ona kiliki.

html
<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>

O le .pe-nonevasega (ma le pointer-eventsCSS 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.

Afai e mafai, o le fofo faigofie o le:

  • Mo fa'atonuga, fa'aopoopo le disableduiga HTML.
  • Mo so'oga, aveese le hrefuiga, ma avea ma taula e le feso'ota'i po'o so'oga fa'apipi'i.

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,
    ),