I am creating a small stylised triangular motif 'before' my h1 element, but I am not able to get the corners rounded correctly. The top right is fine but the other two has this clipping issue.
Here is the output along with a blown up image of the shape:
The code used is below:
h1:before {
content: "";
display: inline-block;
width: 0.7em;
height: 0.7em;
margin-right: 10px;
clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
-webkit-clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
background-color: #34495e;
border-radius: 0.12em;
}
<h1>Heading</h1>
I would like all corners to be smoothly rounded without any sharp corners. Perhaps there is a better way to do this. Any other tips to improve this are also welcome.