-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StudentSupportCallForm: Add priority changing UI component #1450
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...rm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
6 changes: 6 additions & 0 deletions
6
...m/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
24 changes: 24 additions & 0 deletions
24
...orm/directives/studentPreferences/studentPreferenceTable/priorityButton/priorityButton.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
}; | ||
}); |