Skip to content

Commit

Permalink
Userpicker view: Change anchor element to button (umbraco#8738)
Browse files Browse the repository at this point in the history
* Change a to button

* Fix styling issues after button conversion
  • Loading branch information
BatJan authored Aug 31, 2020
1 parent 6bb105f commit ae7290f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
margin-bottom: 5px;
padding: 10px;
align-items: center;
width: 100%;
text-align: left;
}

.umb-user-picker-list-item:active,
Expand Down Expand Up @@ -39,4 +41,4 @@
.umb-user-picker-list-item__name {
font-size: 15px;
font-weight: bold;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
hide-icon="true"
hide-description="true">
</umb-editor-header>

<umb-editor-container>

<umb-load-indicator
ng-if="vm.loading">
</umb-load-indicator>
Expand All @@ -31,10 +31,10 @@
no-dirty-check />
</div>
<div class="umb-user-picker-item-list">
<a href="" class="umb-user-picker-list-item" ng-repeat="user in vm.users" ng-click="vm.selectUser(user)">
<button type="button" class="btn-reset umb-user-picker-list-item" ng-repeat="user in vm.users" ng-click="vm.selectUser(user)">
<div class="umb-user-picker-list-item__avatar">
<umb-checkmark
class="umb-user-picker-list-item__checkmark"
class="umb-user-picker-list-item__checkmark"
ng-if="user.selected"
checked="user.selected">
</umb-checkmark>
Expand All @@ -52,9 +52,9 @@
<span ng-repeat="userGroup in user.userGroups">{{ userGroup.name }}<span ng-if="!$last">, </span></span>
</div>
</div>
</a>
</button>
</div>

<div class="flex justify-center">
<umb-pagination
ng-if="vm.usersOptions.totalPages"
Expand Down

0 comments on commit ae7290f

Please sign in to comment.