Why does a button with a display: block doesn't take the full width of the container? The following code makes the button takes only the width of the content.
MDN definition of block elements:
"A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can)."
&__actions {
width:800px;
.btn-primary {
display: block;
background-color: #382AE1;
color: white;
padding: 15px 4px;
border-radius: 11px;
}
}
}