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

Tapuni faamau

O se fa'amau tapuni lautele mo le fa'ate'aina o mea e pei o fa'ata'ita'iga ma fa'aaliga.

I luga o lenei itulau

Faataitaiga

Tuuina atu se filifiliga e faʻateʻa pe tapuni se vaega i le .btn-close. E fa'atapula'a le sitaili masani, ae sili ona fa'avasegaina. Suia le suiga Sass e sui ai le faaletonu background-image. Ia mautinoa e aofia ai tusitusiga mo le au faitau lautusi , e pei ona matou faia i le aria-label.

html
<button type="button" class="btn-close" aria-label="Close"></button>

Tulaga le atoatoa

O fa'amau tapuni fa'aletonu e sui a latou opacity. Ua matou talosaga fo'i pointer-events: nonema user-select: nonepuipuia le fa'ao'o ma fa'agaoioiga setete mai le fa'aosoina.

html
<button type="button" class="btn-close" disabled aria-label="Close"></button>

Pa'epa'e fesuiaiga

Suia le mea e le masani .btn-closeai ina ia paepae i le .btn-close-whitevasega. E fa'aogaina e lenei vasega le filtermeatotino e fa'aliliu ai le background-image.

html
<button type="button" class="btn-close btn-close-white" aria-label="Close"></button>
<button type="button" class="btn-close btn-close-white" disabled aria-label="Close"></button>

Sass

Fuafuaga

$btn-close-width:            1em;
$btn-close-height:           $btn-close-width;
$btn-close-padding-x:        .25em;
$btn-close-padding-y:        $btn-close-padding-x;
$btn-close-color:            $black;
$btn-close-bg:               url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$btn-close-color}'><path d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/></svg>");
$btn-close-focus-shadow:     $input-btn-focus-box-shadow;
$btn-close-opacity:          .5;
$btn-close-hover-opacity:    .75;
$btn-close-focus-opacity:    1;
$btn-close-disabled-opacity: .25;
$btn-close-white-filter:     invert(1) grayscale(100%) brightness(200%);