1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-08 04:12:26 +04:00
Files
tabler/core/scss/tests/_transition.test.scss
T

44 lines
1.0 KiB
SCSS

// Output tests for the `transition` mixin in scss/mixins/bootstrap/_transition.scss.
// With `$enable-transitions` and `$enable-reduced-motion` both true (the
// defaults), a real transition also emits a `prefers-reduced-motion` reset —
// except when the value itself is `none`.
@use '../mixins/bootstrap/transition' as *;
@include describe('transition') {
@include it('emits the transition plus a reduced-motion reset') {
@include assert() {
@include output() {
.t {
@include transition(color 0.3s);
}
}
@include expect() {
.t {
transition: color 0.3s;
}
@media (prefers-reduced-motion: reduce) {
.t {
transition: none;
}
}
}
}
}
@include it('skips the reduced-motion reset when the value is none') {
@include assert() {
@include output() {
.t {
@include transition(none);
}
}
@include expect() {
.t {
transition: none;
}
}
}
}
}