<commit_before>.c-custom-select {
  position: relative;
  cursor: pointer;
  width: 100%;
  border: 1px solid $border-color-1;
  border-radius: 4px;
  height: 45px;

  &.-fixed {
    max-width: 200px;
  }

  &.-disabled {
    pointer-events: none;
    opacity: .4;
  }

  &:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid $color-primary;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    pointer-events: none;
  }

  &.-closed {
    .custom-select-search {
      // Don't use display: none here
      // For accessibility reasons (focus) the input
      // can't be hidden
      opacity: 0;
      visibility: none;
      cursor: pointer;
    }

    &:after {
      transform: rotate(180deg);
    }
  }

  &.-search:not(.-closed) {
    .custom-select-text > div {
      display: none;
    }
  }

  .icon-btn {
    display: flex; // Vertically align the icon
    border: 0;
    background: none;
    cursor: pointer;

    &:focus {
      outline: none;
    }
  }

  .clear-button {
    z-index: 20; // Must be superior than the z-index of custom-select-search
  }

  .no-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    line-height: 1.1;
    font-style: italic;
    color: palette(blue);
    background-color: $color-white;
    font-size: $font-size-normal;
    box-shadow: 0 -2px 4px 0 rgba(33, 62, 118, 0.09), 0 2px 4px 0 rgba(33, 62, 118, 0.09);
  }

  .custom-select-text {
    font-size: $font-size-normal;
    font-weight: normal;
    line-height: 2;
    display: block;
    width: 100%;
    position: relative;
    min-height: 33px;
    height: 100%;

    > div {
      user-select: none;
      display: flex;
      justify-content: space-between;
      padding: 10px $margin-size-extra-small;
      overflow: hidden;
      height: 100%;
      white-space: nowrap;
      line-height: 17px;
      align-items: center;
      // Don't capitalise the text here because the case of the
      // content of the input won't match the case of the text
      // when the focus is somewhere else
    }
  }

  .custom-select-options {
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: $color-white;
    z-index: 999;
    box-shadow: 0 -2px 3px 0 rgba(33, 62, 118, 0.09), 0 2px 3px 0 rgba(33, 62, 118, 0.09);
    max-height: 400px;
    margin: 0;
    padding: 0 0;
    overflow-y: auto;

    li {
      display: flex;
      justify-content: space-between;
      color: $color-text-headers;
      font-size: $font-size-normal;
      font-weight: normal;
      line-height: 2;
      cursor: pointer;
      line-height: 1.1;
      align-items: center;

      .c-icon {
        fill: $color-primary;
        width: 11px;
        height: 11px;
      }

      &.title {
        color: $color-primary;
        justify-content: flex-start;
        border-bottom: 1px solid $border-color-1;
        padding: 10px $margin-size-extra-small;

        &:hover {
          background-color: $color-white;
          color: $color-primary;
        }
      }

      &:hover {
        background-color: rgba($color-charcoal-grey, .05);
        color: $color-secondary;
      }

      &.-selected {
        background-color: rgba($color-charcoal-grey, .05);
      }

      &[aria-selected="true"] {
        color: $color-primary;
      }

      & .label {
        flex-grow: 1;
        display: inline-block;
        padding: 10px $margin-size-extra-small;
        text-transform: capitalize;
      }

      .next {
        padding: 17px;
        height: 100%;
        cursor: pointer;

        &:hover {
          background-color: rgba(#4a81b9, .05);
        }
      }
    }
  }

  .custom-select-search {
    background-color: transparent;
    color: $base-font-color;
    outline: none;
    border: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 10px $margin-size-extra-small;
    font-family: $base-font-family;
  }
}<commit_msg>Fix a style issue with the dropdowns<commit_after>.c-custom-select {
  position: relative;
  cursor: pointer;
  width: 100%;
  border: 1px solid $border-color-1;
  border-radius: 4px;
  height: 45px;

  &.-fixed {
    max-width: 200px;
  }

  &.-disabled {
    pointer-events: none;
    opacity: .4;
  }

  &:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid $color-primary;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    pointer-events: none;
  }

  &.-closed {
    .custom-select-search {
      // Don't use display: none here
      // For accessibility reasons (focus) the input
      // can't be hidden
      opacity: 0;
      visibility: none;
      cursor: pointer;
    }

    &:after {
      transform: rotate(180deg);
    }
  }

  &.-search:not(.-closed) {
    .custom-select-text > div {
      display: none;
    }
  }

  .icon-btn {
    display: flex; // Vertically align the icon
    border: 0;
    background: none;
    cursor: pointer;

    &:focus {
      outline: none;
    }
  }

  .no-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    line-height: 1.1;
    font-style: italic;
    color: palette(blue);
    background-color: $color-white;
    font-size: $font-size-normal;
    box-shadow: 0 -2px 4px 0 rgba(33, 62, 118, 0.09), 0 2px 4px 0 rgba(33, 62, 118, 0.09);
  }

  .custom-select-text {
    font-size: $font-size-normal;
    font-weight: normal;
    line-height: 2;
    display: block;
    width: 100%;
    position: relative;
    min-height: 33px;
    height: 100%;

    > div {
      user-select: none;
      display: flex;
      justify-content: space-between;
      padding: 10px $margin-size-extra-small;
      overflow: hidden;
      height: 100%;
      white-space: nowrap;
      line-height: 17px;
      align-items: center;
      // Don't capitalise the text here because the case of the
      // content of the input won't match the case of the text
      // when the focus is somewhere else
    }
  }

  .custom-select-options {
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: $color-white;
    z-index: 999;
    box-shadow: 0 -2px 3px 0 rgba(33, 62, 118, 0.09), 0 2px 3px 0 rgba(33, 62, 118, 0.09);
    max-height: 400px;
    margin: 0;
    padding: 0 0;
    overflow-y: auto;

    li {
      display: flex;
      justify-content: space-between;
      color: $color-text-headers;
      font-size: $font-size-normal;
      font-weight: normal;
      line-height: 2;
      cursor: pointer;
      line-height: 1.1;
      align-items: center;

      .c-icon {
        fill: $color-primary;
        width: 11px;
        height: 11px;
      }

      &.title {
        color: $color-primary;
        justify-content: flex-start;
        border-bottom: 1px solid $border-color-1;
        padding: 10px $margin-size-extra-small;

        &:hover {
          background-color: $color-white;
          color: $color-primary;
        }
      }

      &:hover {
        background-color: rgba($color-charcoal-grey, .05);
        color: $color-secondary;
      }

      &.-selected {
        background-color: rgba($color-charcoal-grey, .05);
      }

      &[aria-selected="true"] {
        color: $color-primary;
      }

      & .label {
        flex-grow: 1;
        display: inline-block;
        padding: 10px $margin-size-extra-small;
        text-transform: capitalize;
      }

      .next {
        padding: 17px;
        height: 100%;
        cursor: pointer;

        &:hover {
          background-color: rgba(#4a81b9, .05);
        }
      }
    }
  }

  .custom-select-search {
    background-color: transparent;
    color: $base-font-color;
    outline: none;
    border: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 10px $margin-size-extra-small;
    font-family: $base-font-family;
    // Make sure that if you have a z-index here, you don't
    // cause issues with dropdowns being the one below another
    // (unable to select an option of the first dropdown because
    // the one below gets focused when you click)
  }
}
{'fraction_non_alphanumeric': 0.13158825610187477, 'fraction_numerical': 0.03938214833156468, 'mean_word_length': 1.9147766323024056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6702125', 'n_tokens_mistral': 3208, 'n_tokens_neox': 2823, 'n_words': 745}