MOBILE-3320 a11y: Fixed some clickable and coloring issues
parent
8728954fba
commit
f55d59c1c2
|
@ -667,6 +667,9 @@ export class AddonModForumIndexComponent extends CoreCourseModuleMainActivityCom
|
||||||
* @param discussion Discussion.
|
* @param discussion Discussion.
|
||||||
*/
|
*/
|
||||||
async showOptionsMenu(event: Event, discussion: AddonModForumDiscussion): Promise<void> {
|
async showOptionsMenu(event: Event, discussion: AddonModForumDiscussion): Promise<void> {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
const popoverData = await CoreDomUtils.openPopover<{ action?: string; value: boolean }>({
|
const popoverData = await CoreDomUtils.openPopover<{ action?: string; value: boolean }>({
|
||||||
component: AddonModForumDiscussionOptionsMenuComponent,
|
component: AddonModForumDiscussionOptionsMenuComponent,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
|
|
@ -93,9 +93,9 @@
|
||||||
<ion-button fill="clear" size="small"
|
<ion-button fill="clear" size="small"
|
||||||
[attr.aria-controls]="'addon-forum-reply-edit-form-' + uniqueId"
|
[attr.aria-controls]="'addon-forum-reply-edit-form-' + uniqueId"
|
||||||
[attr.aria-expanded]="replyData.replyingTo === post.id"
|
[attr.aria-expanded]="replyData.replyingTo === post.id"
|
||||||
(click)="showReplyForm()">
|
(click)="showReplyForm($event)">
|
||||||
<ion-icon name="fa-reply" slot="start" aria-hidden="true">
|
<ion-icon name="fa-reply" slot="start" aria-hidden="true"></ion-icon>
|
||||||
</ion-icon> {{ 'addon.mod_forum.reply' | translate }}
|
{{ 'addon.mod_forum.reply' | translate }}
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "~theme/globals";
|
@import "~theme/globals";
|
||||||
|
|
||||||
:host .addon-mod_forum-post {
|
:host .addon-mod_forum-post {
|
||||||
background-color: var(--white);
|
background-color: var(--ion-item-background);
|
||||||
border-bottom: 1px solid var(--addon-forum-border-color);
|
border-bottom: 1px solid var(--addon-forum-border-color);
|
||||||
|
|
||||||
.addon-forum-star {
|
.addon-forum-star {
|
||||||
|
@ -21,6 +21,7 @@
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
flex-grow: 1;
|
||||||
|
|
||||||
ion-icon {
|
ion-icon {
|
||||||
@include margin(0, 6px, 0, 0);
|
@include margin(0, 6px, 0, 0);
|
||||||
|
|
|
@ -306,8 +306,13 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy, OnChanges
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set this post as being replied to.
|
* Set this post as being replied to.
|
||||||
|
*
|
||||||
|
* @param event Click event.
|
||||||
*/
|
*/
|
||||||
async showReplyForm(): Promise<void> {
|
async showReplyForm(event: Event): Promise<void> {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
if (this.replyData.isEditing) {
|
if (this.replyData.isEditing) {
|
||||||
// User is editing a post, data needs to be resetted. Ask confirm if there is unsaved data.
|
// User is editing a post, data needs to be resetted. Ask confirm if there is unsaved data.
|
||||||
try {
|
try {
|
||||||
|
@ -323,7 +328,7 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy, OnChanges
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch {
|
||||||
// Cancelled.
|
// Cancelled.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
:host {
|
:host {
|
||||||
background: var(--white);
|
|
||||||
|
|
||||||
form {
|
form {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
background: var(--ion-item-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
.core-send-message-input {
|
.core-send-message-input {
|
||||||
|
|
|
@ -12,13 +12,6 @@
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
progress {
|
|
||||||
.progress-bar-fallback,
|
|
||||||
&[value]::-webkit-progress-bar {
|
|
||||||
background-color: var(--white);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +23,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: white;
|
background: var(--ion-item-background);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
transition: all 50ms ease-in-out;
|
transition: all 50ms ease-in-out;
|
||||||
|
|
||||||
&.core-course-color-img {
|
&.core-course-color-img {
|
||||||
background: white;
|
background: var(--ion-item-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|
|
@ -378,8 +378,8 @@ $addon-forum-avatar-size: 44px !default;
|
||||||
$addon-forum-border-color: $gray !default;
|
$addon-forum-border-color: $gray !default;
|
||||||
$addon-forum-highlight-color: $gray-lighter !default;
|
$addon-forum-highlight-color: $gray-lighter !default;
|
||||||
|
|
||||||
$addon-forum-border-color-dark: $gray-darker !default;
|
$addon-forum-border-color-dark: $gray-dark !default;
|
||||||
$addon-forum-highlight-color-dark: $gray-dark !default;
|
$addon-forum-highlight-color-dark: $gray-darker !default;
|
||||||
|
|
||||||
$core-more-icon: null !default;
|
$core-more-icon: null !default;
|
||||||
$core-more-item-border: null !default;
|
$core-more-item-border: null !default;
|
||||||
|
|
Loading…
Reference in New Issue