summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/forms/flipping-label.test.tsx
blob: 9a7aa228561fe8558d3d9d4c8bdb902b3c18315e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { render, screen } from '@test-utils';
import FlippingLabel from './flipping-label';

describe('FlippingLabel', () => {
  it('renders a label', () => {
    const ariaLabel = 'vero quo inventore';
    render(
      <FlippingLabel aria-label={ariaLabel} isActive={false}>
        <>Test</>
      </FlippingLabel>
    );
    expect(screen.getByLabelText(ariaLabel)).toBeInTheDocument();
  });
});
0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
@use "@styles/abstracts/mixins" as mix;

.list {
  display: flex;
  flex-flow: column wrap;
  gap: var(--spacing-2xs);
  margin: 0;

  &__item {
    display: flex;
    flex-flow: column wrap;
    gap: var(--spacing-2xs);

    @include mix.media("screen") {
      @include mix.dimensions("sm") {
        flex-flow: row wrap;
      }
    }
  }

  &__term {
    flex: 0 0 max-content;
    color: var(--color-fg-light);
    font-weight: 600;
  }

  &__description {
    flex: 0 0 auto;
    margin: 0;

    @include mix.media("screen") {
      @include mix.dimensions("sm") {
        &:not(:first-of-type) {
          &::before {
            content: "/";
            margin: 0 var(--spacing-2xs);
          }
        }
      }
    }
  }
}