Skip to content

Commit

Permalink
StudentSupportCallForm: Add priority changing UI component #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ltwheeler committed Jan 16, 2018
1 parent 6917420 commit 38c6c3b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.priority-button {
word-wrap: break-word;
display: inline-flex;
font-size: 12px;
color: #24292e;
font-weight: 500;
user-select: none;
background-color: white;
border: 1px solid rgba(27,31,35,0.2);
border-radius: 0.25em;
cursor: pointer;
width: fit-content;
padding-right: 5px;
padding-left: 5px;
}

.priority-button:hover {
background-color: #e6ebf1;
background-image: linear-gradient(-180deg, #f0f3f6 0%, #e6ebf1 90%);
border-color: rgba(27,31,35,0.35);
}

.priority-button__icon-container {
display: flex;
align-items: center;
justify-content: center;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="priority-button" ng-click="onClick()">
<div class="priority-button__icon-container icon-container">
<div ng-class="iconClass">
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/** Example Usage:
<ipa-button
button-text="'waffle'"
color="'light'"
icon-class="'glyphicon glyphicon-envelope'"
on-click="testComment()">
</ipa-button>
**/

sharedApp.directive("priorityButton", this.ipaButton = function () {
return {
restrict: 'E',
templateUrl: 'priorityButton.html',
replace: true,
scope: {
onClick: '&?',
iconClass: '<?'
},
link: function(scope, element, attrs) {
// Intentionally empty
}
};
});

0 comments on commit 38c6c3b

Please sign in to comment.