My original idea to achieve this effect involves using clip-path to shape the element and create a border-like appearance. To accomplish this, I would utilize a parent container for the actual button element. The shape generation process can be done using the following tool:
Shape Generator
While this approach may require additional styling for active and hover states to enhance the visual appeal, it offers a viable method to attain the desired result.
.button {
color: black;
width: 300px;
height: 90px;
/*Custom Shape*/
clip-path: polygon(15% 8%, 100% 8%, 100% 100%, 15% 100%, 15% 9%, 6% 1%, 6% 0);
/*Background color when transparent*/
background-color: white;
/*Remove default border*/
border: none;
/*Adjust text alignment due to clipped portion*/
padding-left: 15%;
z-index: 2;
}
.fake-border {
/*Center button within the div for uniform appearance of fake border*/
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
/*Ensure button is in front*/
z-index: 1;
/*Slightly larger dimensions than actual button*/
width: 302px;
height: 92px;
/*Same custom Shape!*/
clip-path: polygon(15% 8%, 100% 8%, 100% 100%, 15% 100%, 15% 9%, 6% 1%, 6% 0);
/*Desired border color*/
background-color: grey;
}
<div class="fake-border"><button>YourTextHere</button></div>