JSFiddle - React, Tailwind, and code Playground

HTML

<div class="notifications-attention-warning-main">
        <div class="notifications-attention-warning-main-icon">
          <i class="material-icons">warning</i>
        </div>
        <div class="notifications-attention-warning-main__content">
          <div class="notifications-attention-warning-main-p">
            <p>Внимание!</p>
          </div>
          <div>
            <p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem .</p>
          </div>
        </div>
      </div>

CSS

.notifications-attention-warning-main {
    border-radius: 4px;
    background: linear-gradient(135deg, #fd7ea7 0%,#fea3a2 100%);
    display: flex;
    justify-content: flex-end;
    height: 100px;   /* нененене в линию все строится */
    
}

.notifications-attention-warning-main__content {
    padding: 0 40px;
    border: 3px solid green;
    border-right: none;
    border-top: none;
    border-bottom: none;
    border-left-width: 2px;
   /*  border-left-color: linear-gradient(to rigth,  #000, #fff); */
   border-left-color: red; /*этот работает */
}
/* тут, градиент не работает, т.е. если обычный цвет поставить типа красные, то гуд, но мне нужен граидент от черного к белому */

.notifications-attention-warning-main-icon {
    margin-right: 51px;
    margin-left: 24px;
    position: relative;
}

.notifications-attention-warning-main-icon i {
    position: absolute;
    top: 35px;
    margin-bottom: 35px;
    color: #ffadc7;
    font-size: 10px;
}