Skip to content

Commit

Permalink
#12 - cr fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilpiech97 committed Oct 28, 2023
1 parent 45fad24 commit 2d7177e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/js/Shared/Components/GradeCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ function createGradeOnClick() {
<TableCell
v-if="grade"
:class="[grade?.status
? 'bg-green-300'
: grade ? 'bg-red-300' :'bg-white']"
? 'bg-lime-200'
: grade ? 'bg-rose-300' :'bg-white']"
@dblclick="emit('updateGrade',gradeColumn.id, student.id, grade.value, !grade.status)"
>
<input
:class="[grade.status? 'bg-green-300' : 'bg-red-300']"
:class="[grade.status? 'bg-lime-200' : 'bg-rose-300']"
:value="grade.value"
class="h-full w-full cursor-pointer border-0 p-0 text-center font-bold shadow-none ring-0 focus:border-0 focus:ring-0"
class="h-full w-full cursor-pointer border-0 p-0 text-center font-bold text-gray-900 shadow-none ring-0 focus:border-0 focus:ring-0"
@change="emit('updateGrade',gradeColumn.id, student.id, $event.target.value, grade.status)"
>
</TableCell>
Expand Down

0 comments on commit 2d7177e

Please sign in to comment.