<commit_before>@import "./fab-button.vars";

// Floating Action Buttons
// --------------------------------------------------

:host {
  /**
   * @prop --background: Background of the button
   * @prop --background-activated: Background of the button when pressed
   * @prop --background-focused: Background of the button when focused with the tab key
   * @prop --background-hover: Background of the button on hover
   *
   * @prop --color: Text color of the button
   * @prop --color-activated: Text color of the button when pressed
   * @prop --color-focused: Text color of the button when focused with the tab key
   * @prop --color-hover: Text color of the button on hover
   *
   * @prop --transition: Transition of the button
   *
   * @prop --border-radius: Border radius of the button
   * @prop --border-width: Border width of the button
   * @prop --border-style: Border style of the button
   * @prop --border-color: Border color of the button
   *
   * @prop --ripple-color: Color of the button ripple effect
   *
   * @prop --box-shadow: Box shadow of the button
   *
   * @prop --padding-top: Top padding of the button
   * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the button
   * @prop --padding-bottom: Bottom padding of the button
   * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the button
   */
  --color-hover: #{var(--color)};
  --background-hover: #{ion-color(primary, tint)};
  --transition: background-color, opacity 100ms linear;
  --ripple-color: currentColor;
  --border-radius: #{$fab-border-radius};
  --border-width: 0;
  --border-style: none;
  --border-color: initial;
  --padding-top: 0;
  --padding-end: 0;
  --padding-bottom: 0;
  --padding-start: 0;

  @include margin(0);
  display: block;

  width: #{$fab-size};
  height: #{$fab-size};

  font-size: 14px;

  text-align: center;
  text-overflow: ellipsis;
  text-transform: none;

  white-space: nowrap;
  font-kerning: none;
}


.button-native {
  @include border-radius(var(--border-radius));
  @include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
  @include text-inherit();

  display: block;
  position: relative;

  width: 100%;
  height: 100%;

  transform: var(--transform);

  transition: var(--transition);

  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);

  outline: none;

  background: var(--background);

  background-clip: padding-box;
  color: var(--color);

  box-shadow: var(--box-shadow);
  contain: strict;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  appearance: none;

  box-sizing: border-box;
}

::slotted(ion-icon) {
  line-height: 1;
}

.button-inner {
  @include position(0, 0, null, 0);

  display: flex;
  position: absolute;

  flex-flow: row nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  height: 100%;

  transition: all ease-in-out 300ms;
  transition-property: transform, opacity;
}


// FAB Button: Color
// --------------------------------------------------

:host(.ion-color) .button-native {
  background: #{current-color(base)};
  color: #{current-color(contrast)};
}


// FAB Button: Disabled
// --------------------------------------------------

:host(.fab-button-disabled) {
  --opacity: .5;

  pointer-events: none;
}

:host(.fab-button-disabled) .button-native {
  cursor: default;
  pointer-events: none;
}

<commit_msg>fix(fab-button): set opacity on disabled fab button (#18685)<commit_after>@import "./fab-button.vars";

// Floating Action Buttons
// --------------------------------------------------

:host {
  /**
   * @prop --background: Background of the button
   * @prop --background-activated: Background of the button when pressed
   * @prop --background-focused: Background of the button when focused with the tab key
   * @prop --background-hover: Background of the button on hover
   *
   * @prop --color: Text color of the button
   * @prop --color-activated: Text color of the button when pressed
   * @prop --color-focused: Text color of the button when focused with the tab key
   * @prop --color-hover: Text color of the button on hover
   *
   * @prop --transition: Transition of the button
   *
   * @prop --border-radius: Border radius of the button
   * @prop --border-width: Border width of the button
   * @prop --border-style: Border style of the button
   * @prop --border-color: Border color of the button
   *
   * @prop --ripple-color: Color of the button ripple effect
   *
   * @prop --box-shadow: Box shadow of the button
   *
   * @prop --padding-top: Top padding of the button
   * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the button
   * @prop --padding-bottom: Bottom padding of the button
   * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the button
   */
  --color-hover: #{var(--color)};
  --background-hover: #{ion-color(primary, tint)};
  --transition: background-color, opacity 100ms linear;
  --ripple-color: currentColor;
  --border-radius: #{$fab-border-radius};
  --border-width: 0;
  --border-style: none;
  --border-color: initial;
  --padding-top: 0;
  --padding-end: 0;
  --padding-bottom: 0;
  --padding-start: 0;

  @include margin(0);
  display: block;

  width: #{$fab-size};
  height: #{$fab-size};

  font-size: 14px;

  text-align: center;
  text-overflow: ellipsis;
  text-transform: none;

  white-space: nowrap;
  font-kerning: none;
}


.button-native {
  @include border-radius(var(--border-radius));
  @include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
  @include text-inherit();

  display: block;
  position: relative;

  width: 100%;
  height: 100%;

  transform: var(--transform);

  transition: var(--transition);

  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);

  outline: none;

  background: var(--background);

  background-clip: padding-box;
  color: var(--color);

  box-shadow: var(--box-shadow);
  contain: strict;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  appearance: none;

  box-sizing: border-box;
}

::slotted(ion-icon) {
  line-height: 1;
}

.button-inner {
  @include position(0, 0, null, 0);

  display: flex;
  position: absolute;

  flex-flow: row nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  height: 100%;

  transition: all ease-in-out 300ms;
  transition-property: transform, opacity;
}


// FAB Button: Color
// --------------------------------------------------

:host(.ion-color) .button-native {
  background: #{current-color(base)};
  color: #{current-color(contrast)};
}


// FAB Button: Disabled
// --------------------------------------------------

:host(.fab-button-disabled) {
  opacity: .5;

  pointer-events: none;
}

:host(.fab-button-disabled) .button-native {
  cursor: default;
  pointer-events: none;
}


{'fraction_non_alphanumeric': 0.18665363674438085, 'fraction_numerical': 0.009074410163339383, 'mean_word_length': 2.6644501278772377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6807106', 'n_tokens_mistral': 2357, 'n_tokens_neox': 2224, 'n_words': 665}