Skip to content

Commit e35bebd

Browse files
committed
MOBILE-3242 ui: Display different cursor in all clickable elements
1 parent 6a1432b commit e35bebd

File tree

15 files changed

+45
-13
lines changed

15 files changed

+45
-13
lines changed

src/addon/calendar/components/calendar/calendar.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ ion-app.app-root addon-calendar-calendar {
8989
@include border-end(1px, solid, $calendar-border-color);
9090
overflow: hidden;
9191
min-height: 60px;
92+
cursor: pointer;
9293

9394
&:first-child {
9495
@include padding(null, null, null, 10px);
@@ -131,6 +132,7 @@ ion-app.app-root addon-calendar-calendar {
131132
border-radius: 50%;
132133
}
133134
&.dayblank {
135+
cursor: auto;
134136
background-color: $gray-lighter;
135137
@include darkmode() {
136138
background-color: $black;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ion-app.app-root addon-calendar-upcoming-events {
2+
.addon-calendar-event {
3+
cursor: pointer;
4+
}
5+
}

src/addon/calendar/pages/day/day.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h3>{{ periodName }}</h3>
4848

4949
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
5050
<ng-container *ngFor="let event of filteredEvents">
51-
<ion-item text-wrap [title]="event.name" (click)="gotoEvent(event.id)" [class.item-dimmed]="event.ispast" class="addon-calendar-event" [ngClass]="['addon-calendar-eventtype-'+event.eventtype]">
51+
<a ion-item text-wrap [title]="event.name" (click)="gotoEvent(event.id)" [class.item-dimmed]="event.ispast" class="addon-calendar-event" [ngClass]="['addon-calendar-eventtype-'+event.eventtype]">
5252
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
5353
<core-icon *ngIf="event.eventIcon && !event.moduleIcon" [name]="event.eventIcon" item-start></core-icon>
5454
<h2><core-format-text [text]="event.name" [contextLevel]="event.contextLevel" [contextInstanceId]="event.contextInstanceId"></core-format-text></h2>
@@ -61,7 +61,7 @@ <h2><core-format-text [text]="event.name" [contextLevel]="event.contextLevel" [c
6161
<ion-icon name="trash"></ion-icon>
6262
<span text-wrap>{{ 'core.deletedoffline' | translate }}</span>
6363
</ion-note>
64-
</ion-item>
64+
</a>
6565
</ng-container>
6666
</ion-list>
6767

src/addon/competency/pages/competency/competency.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2>{{ user.fullname }}</h2>
2525
<ng-container *ngIf="!competency.competency.comppath.showlinks">{{ competency.competency.comppath.framework.name }}</ng-container>
2626
&nbsp;/&nbsp;
2727
<span *ngFor="let ancestor of competency.competency.comppath.ancestors">
28-
<a *ngIf="competency.competency.comppath.showlinks" (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a>
28+
<a *ngIf="competency.competency.comppath.showlinks" (click)="openCompetencySummary(ancestor.id)" class="core-clickable">{{ ancestor.name }}</a>
2929
<ng-container *ngIf="!competency.competency.comppath.showlinks">{{ ancestor.name }}</ng-container>
3030
<ng-container *ngIf="!ancestor.last">&nbsp;/&nbsp;</ng-container>
3131
</span>
@@ -35,7 +35,7 @@ <h2>{{ user.fullname }}</h2>
3535
<div *ngIf="!competency.competency.hasrelatedcompetencies">{{ 'addon.competency.nocrossreferencedcompetencies' | translate }}</div>
3636
<div *ngIf="competency.competency.hasrelatedcompetencies">
3737
<p *ngFor="let relatedcomp of competency.competency.relatedcompetencies">
38-
<a (click)="openCompetencySummary(relatedcomp.id)">
38+
<a (click)="openCompetencySummary(relatedcomp.id)" class="core-clickable">
3939
{{ relatedcomp.shortname }} - {{ relatedcomp.idnumber }}
4040
</a>
4141
</p>

src/addon/mod/assign/components/index/addon-mod-assign-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<core-loading [hideUntil]="loaded" class="core-loading-center">
1616

1717
<!-- Description and intro attachments. -->
18-
<ion-card *ngIf="description" (click)="expandDescription($event)">
18+
<ion-card *ngIf="description" (click)="expandDescription($event)" class="core-clickable">
1919
<ion-item text-wrap>
2020
<core-format-text [text]="description" [component]="component" [componentId]="componentId" maxHeight="120" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId" (click)="expandDescription($event)"></core-format-text>
2121
</ion-item>

src/addon/mod/chat/pages/sessions/sessions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<ion-label id="addon-chat-showalllabel">{{ 'addon.mod_chat.showincompletesessions' | translate }}</ion-label>
2121
<ion-toggle [(ngModel)]="showAll" (ionChange)="fetchSessions(true)" aria-labelledby="addon-chat-showalllabel"></ion-toggle>
2222
</ion-item>
23-
<ion-card *ngFor="let session of sessions" (click)="openSession(session)"
23+
<ion-card *ngFor="let session of sessions" (click)="openSession(session)" class="core-clickable"
2424
[class.addon-mod-chat-session-selected]="session.sessionstart == selectedSessionStart && groupId == selectedSessionGroupId"
2525
[class.addon-mod-chat-session-show-more]="session.sessionusers.length < session.allsessionusers.length">
2626
<ion-item text-wrap>

src/addon/mod/forum/components/index/addon-mod-forum-index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</div>
4444

4545
<ng-container *ngFor="let discussion of offlineDiscussions">
46-
<ion-item text-wrap (click)="openNewDiscussion(discussion.timecreated)" [attr.no-lines]="discussion.groupname" [class.core-split-item-selected]="discussion.timecreated == -selectedDiscussion" class="addon-mod-forum-discussion">
46+
<a ion-item text-wrap (click)="openNewDiscussion(discussion.timecreated)" [attr.no-lines]="discussion.groupname" [class.core-split-item-selected]="discussion.timecreated == -selectedDiscussion" class="addon-mod-forum-discussion">
4747
<div class="addon-mod-forum-discussion-title">
4848
<h2>
4949
<core-format-text [text]="discussion.subject" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text>
@@ -57,10 +57,10 @@ <h3 *ngIf="discussion.userfullname">{{discussion.userfullname}}</h3>
5757
<p><ion-icon name="time"></ion-icon> {{ 'core.notsent' | translate }}</p>
5858
</div>
5959
</div>
60-
</ion-item>
60+
</a>
6161
</ng-container>
6262
<ng-container *ngFor="let discussion of discussions">
63-
<ion-item (click)="openDiscussion(discussion)" [class.core-split-item-selected]="discussion.discussion == selectedDiscussion" class="addon-mod-forum-discussion">
63+
<a ion-item (click)="openDiscussion(discussion)" [class.core-split-item-selected]="discussion.discussion == selectedDiscussion" class="addon-mod-forum-discussion">
6464
<div class="addon-mod-forum-discussion-title">
6565
<h2 text-wrap>
6666
<core-icon name="fa-map-pin" *ngIf="discussion.pinned"></core-icon>
@@ -94,7 +94,7 @@ <h3 *ngIf="discussion.userfullname">{{discussion.userfullname}}</h3>
9494
</ion-note>
9595
</ion-col>
9696
</ion-row>
97-
</ion-item>
97+
</a>
9898
</ng-container>
9999

100100
<core-infinite-loading [enabled]="canLoadMore" (action)="fetchMoreDiscussions($event)" [error]="loadMoreError"></core-infinite-loading>

src/addon/mod/label/label.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
.item.core-course-module-handler.addon-mod-label-handler {
1+
ion-app.app-root .item.core-course-module-handler.addon-mod-label-handler {
22
align-items: center;
3+
cursor: auto;
34

45
&:hover {
56
opacity: 1;

src/addon/mod/scorm/components/index/addon-mod-scorm-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h2>{{ 'addon.mod_scorm.contents' | translate }}</h2>
9898
<div *ngFor="let sco of toc" class="core-padding-{{sco.level}} addon-mod_scorm-type-{{sco.scormtype}}">
9999
<p *ngIf="sco.isvisible">
100100
<core-icon [name]="sco.image.icon" [label]="sco.image.description" item-start></core-icon>
101-
<a *ngIf="sco.prereq && sco.launch" (click)="open($event, sco.id)"><core-format-text [text]="sco.title" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text></a>
101+
<a *ngIf="sco.prereq && sco.launch" (click)="open($event, sco.id)" class="core-clickable"><core-format-text [text]="sco.title" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text></a>
102102
<span *ngIf="!sco.prereq || !sco.launch"><core-format-text [text]="sco.title" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text></span>
103103
<span *ngIf="accessInfo && accessInfo.canviewscores && sco.score_raw">({{ 'addon.mod_scorm.score' | translate }}: {{sco.score_raw}})</span>
104104
</p>

src/addon/qtype/ddwtos/component/ddwtos.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ addon-qtype-ddwtos {
2020
border: 1px solid $gray-darker;
2121
margin-bottom: 2px;
2222
border-radius: 5px;
23+
cursor: pointer;
2324
}
2425
.draghome, .drag {
2526
display: inline-block;
@@ -41,6 +42,7 @@ addon-qtype-ddwtos {
4142
z-index: 2;
4243
border-radius: 5px;
4344
line-height: 25px;
45+
cursor: pointer;
4446
}
4547
.drag.selected {
4648
z-index: 3;

0 commit comments

Comments
 (0)