CSS Zmień nazwę klasy zacznij od

/* CSS pure */
div[class^='myclass'], div[class*=' myclass']{
    color: #F00;
}

/* css change class name start with styled components */
& [class^='Pagination-activeButton'],
[class*=' Pagination-activeButton'] {
  span {
    color: #fa751f !important;
  }
}
Magnificent Magpie