I've come up with a design for some "button tabs" where one side is curved, making it tricky to implement border radius. I'm wondering if this kind of curve is even possible without using images. Any tips on how to achieve this or any resources I can explore? My attempts so far have not been successful.
HTML
<div class="tab-row">
<button>All Products<div class="tab-row__counter">20</div></button>
<button>Hardware<div class="tab-row__counter">20</div></button>
<button>Virtual<div class="tab-row__counter">20</div></button>
<button>Bundles<div class="tab-row__counter">20</div></button>
</div>
CSS
.tab-row{
button{
background-color:$element-bg;
border:0;
color:$white;
width:300px;
height:90px;
margin-right:20px;
margin-top:40px;
border-radius: 5px 100px 0 0;
&:first-child{
margin-left:40px;
}
.tab-row__counter{
}
}
}
This is the result I came up with, check it out here: https://codepen.io/andrelange91/pen/YzPqJXO
It's not perfectly curved but it's pretty close!