Restructure markup to ensure the label text is properly wrapped and make sure it all aligns nicely on small breakpoints too

This commit is contained in:
Jan Skovgaard
2019-01-27 14:38:27 +01:00
parent 0e0d38be30
commit 0994aac656
2 changed files with 14 additions and 7 deletions

View File

@@ -6,6 +6,12 @@
margin-left: 0;
}
.umb-checkboxlist{
ul{
float: left;
}
}
.umb-checkbox-list__item {
display: flex;
align-items: center;
@@ -78,12 +84,15 @@
}
&__label{
display: flex;
flex-wrap: wrap;
align-items: center;
position: relative;
padding: 0;
margin: 0;
&-text{
margin: 0 0 0 10px;
margin: 0 0 0 26px;
position: relative;
top: 2px;
}
@@ -112,12 +121,10 @@
}
&__state{
display: flex;
flex-wrap: wrap;
align-items: center;
height: 17px;
position: relative;
left: 1px;
position: absolute;
top: 2px;
left: 0;
}
&__check{

View File

@@ -13,8 +13,8 @@
<div class="umb-checkboxlist__check">
<i class="umb-checkboxlist__icon icon-check" aria-hidden="true"></i>
</div>
<span class="umb-checkboxlist__label-text">{{item.val}}</span>
</div>
<span class="umb-checkboxlist__label-text">{{item.val}}</span>
</label>
</li>
</ul>