diff --git a/src/core/features/course/components/course-index/course-index.html b/src/core/features/course/components/course-index/course-index.html index dd97d4628..38ffbf7f3 100644 --- a/src/core/features/course/components/course-index/course-index.html +++ b/src/core/features/course/components/course-index/course-index.html @@ -32,7 +32,7 @@ class="expandable-status-icon" (ariaButtonClick)="toggleExpand($event, section)" [attr.aria-label]="(section.expanded ? 'core.collapse' : 'core.expand') | translate" [attr.aria-expanded]="section.expanded" [attr.aria-controls]="'core-course-index-section-' + section.id" - [class.expandable-status-icon-expanded]="section.expanded" tabindex="0"> + [class.expandable-status-icon-expanded]="section.expanded"> diff --git a/src/core/features/course/components/module/core-course-module.html b/src/core/features/course/components/module/core-course-module.html index 5206b6397..3d8d08d2d 100644 --- a/src/core/features/course/components/module/core-course-module.html +++ b/src/core/features/course/components/module/core-course-module.html @@ -1,10 +1,11 @@ - + - + }"> diff --git a/src/core/features/courses/components/course-list-item/core-courses-course-list-item.html b/src/core/features/courses/components/course-list-item/core-courses-course-list-item.html index eef29500e..94045bb3b 100644 --- a/src/core/features/courses/components/course-list-item/core-courses-course-list-item.html +++ b/src/core/features/courses/components/course-list-item/core-courses-course-list-item.html @@ -1,8 +1,8 @@ + [class.core-course-list-card]="layout == 'card' || layout == 'summarycard'" [class.item-dimmed]="course.hidden" (click)="openCourse()" + button [attr.aria-label]="course.displayname || course.fullname"> -
+
@@ -27,7 +27,7 @@
- + - - - -

{{ prefetch.statusTranslatable | translate }}

-
-
- - - -

{{ 'addon.storagemanager.deletedata' | translate }}

-
-
- - - -

{{ 'core.courses.hidecourse' | translate }}

-
-
- - - -

{{ 'core.courses.show' | translate }}

-
-
- - - -

{{ 'core.courses.addtofavourites' | translate }}

-
-
- - - -

{{ 'core.courses.removefromfavourites' | translate }}

-
-
+ + + + + +

{{ prefetch.statusTranslatable | translate }}

+
+
+ + + +

{{ 'addon.storagemanager.deletedata' | translate }}

+
+
+ + + +

{{ 'core.courses.hidecourse' | translate }}

+
+
+ + + +

{{ 'core.courses.show' | translate }}

+
+
+ + + +

{{ 'core.courses.addtofavourites' | translate }}

+
+
+ + + +

{{ 'core.courses.removefromfavourites' | translate }}

+
+
+
diff --git a/src/theme/helpers/custom.mixins.scss b/src/theme/helpers/custom.mixins.scss index dac3ec43c..dfafaa7b0 100644 --- a/src/theme/helpers/custom.mixins.scss +++ b/src/theme/helpers/custom.mixins.scss @@ -81,6 +81,7 @@ @mixin core-focus-style() { box-shadow: inset 0 0 var(--a11y-focus-width) 1px var(--a11y-focus-color); + border-radius: var(--border-radius); // Thicker option: // border: var(--a11y-focus-width) solid var(--a11y-focus-color); } diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index e7eec8172..de26df5cb 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -897,12 +897,16 @@ img[core-external-content]:not([src]) { } ion-card { + box-shadow: var(--box-shadow); + margin: var(--ion-card-vertical-margin) var(--ion-card-horizontal-margin); border-width: var(--border-width); border-style: var(--border-style); border-color: var(--border-color); - box-shadow: var(--box-shadow); border-radius: var(--border-radius); - margin: var(--ion-card-vertical-margin) var(--ion-card-horizontal-margin); + + &::part(native) { + --border-width: 0; + } ion-item:only-child { --inner-border-width: 0px; @@ -1521,7 +1525,8 @@ ion-input.has-focus, .ion-focused ion-toggle:focus-within, .ion-focused ion-select:focus-within, .ion-focused ion-checkbox:focus-within, -.ion-focused ion-radio:focus-within { +.ion-focused ion-radio:focus-within, +ion-card:focus { @include core-focus(); }