/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

@use '@material/form-field' as formfield;
@use '@material/typography';
@use '@material/theme/theme';
@use '@material/rtl';

@include formfield.core-styles();

:host {
  display: inline-flex;
}

.mdc-form-field {
  width: 100%;
}

::slotted(*) {
  @include typography.typography(body2);
  @include theme.property(color, text-primary-on-background);
}

::slotted(mwc-switch) {
  margin-right: 10px;
  @include rtl.rtl {
    margin-left: 10px;
  }
}
