Create a flexible button group with Cancel and Save buttons styled differently
by anoopsuda
HTML
<div class="evaluation-btn-group">
<button class="btn cancel-btn">Cancel</button>
<button class="btn save-btn">Save</button>
</div>
CSS
.evaluation-btn-group {
display: flex;
gap: 10px;
padding: 10px;
width:100%;
justify-content: end;
.btn {
padding: 10px 30px;
border-radius: 30px;
font-size: 14px;
border: none;
cursor: pointer;
transition: 0.2s;
font-weight: 500;
&.cancel-btn {
background: #fff;
color: #A100FF;
border: 2px solid #A100FF;
&:focus {
box-shadow:0 0 3px #A100FF;
}
}
&.save-btn {
background: #A100FF;
color: #fff;
&:focus {
box-shadow:0 0 3px #A100FF;
}
}
}
}