Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fixed alignment and flexbox issues form-choice__label #19

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions components/_form-choice.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@

.form-choice__label {
position: relative;
display: inline-flex;
align-items: center;
display: inline-block;
min-height: 1.5rem;
margin-bottom: 0;
padding-left: 1.5rem;
font-family: $form-choice-font-family;
cursor: pointer;

&:before {
content: '';
position: absolute;
top: 3px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kun je dit niet met em doen? Want wanneer het lettertype groter word is dit niet het midden.

left: 0;
display: block;
box-sizing: content-box;
flex: 1 0 1rem;
width: $form-choice-size;
height: $form-choice-size;
margin-right: 0.5rem;
Expand Down