mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-4659] Deque accessibility issues - 470010 and tests
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div [ngClass]="{'form-row': model.hasLanguages || isRelationship,
|
||||
'd-none': value?.isVirtual && (model.hasSelectableMetadata || context?.index > 0)}">
|
||||
<div [ngClass]="getClass('grid', 'control')">
|
||||
<div [attr.aria-labelledby]="id + '_errors'">
|
||||
<div>
|
||||
<ng-container #componentViewContainer></ng-container>
|
||||
</div>
|
||||
<small *ngIf="hasHint && ((model.repeatable === false && (isRelationship === false || value?.value === null)) || (model.repeatable === true && context?.index === context?.context?.groups?.length - 1)) && (!showErrorMessages || errorMessages.length === 0)"
|
||||
|
@@ -69,6 +69,7 @@ describe('DsDatePickerComponent test suite', () => {
|
||||
[bindId]='bindId'
|
||||
[group]='group'
|
||||
[model]='model'
|
||||
[legend]='legend'
|
||||
(blur)='onBlur($event)'
|
||||
(change)='onValueChange($event)'
|
||||
(focus)='onFocus($event)'></ds-date-picker>`;
|
||||
|
@@ -1,5 +1,6 @@
|
||||
export const mockDynamicFormLayoutService = jasmine.createSpyObj('DynamicFormLayoutService', {
|
||||
getElementId: jasmine.createSpy('getElementId')
|
||||
getElementId: jasmine.createSpy('getElementId'),
|
||||
getClass: 'class',
|
||||
});
|
||||
|
||||
export const mockDynamicFormValidationService = jasmine.createSpyObj('DynamicFormValidationService', {
|
||||
|
@@ -74,7 +74,7 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePicke
|
||||
required: null
|
||||
},
|
||||
errorMessages: {
|
||||
required: 'submission.sections.upload.form.date-required'
|
||||
required: 'submission.sections.upload.form.date-required-from'
|
||||
}
|
||||
};
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_LAYOUT: DynamicFormControlLayout = {
|
||||
@@ -104,7 +104,7 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerM
|
||||
required: null
|
||||
},
|
||||
errorMessages: {
|
||||
required: 'submission.sections.upload.form.date-required'
|
||||
required: 'submission.sections.upload.form.date-required-until'
|
||||
}
|
||||
};
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_LAYOUT: DynamicFormControlLayout = {
|
||||
|
@@ -3599,6 +3599,10 @@
|
||||
|
||||
"submission.sections.upload.form.date-required": "Date is required.",
|
||||
|
||||
"submission.sections.upload.form.date-required-from": "Grant access from date is required.",
|
||||
|
||||
"submission.sections.upload.form.date-required-until": "Grant access until date is required.",
|
||||
|
||||
"submission.sections.upload.form.from-label": "Grant access from",
|
||||
|
||||
"submission.sections.upload.form.from-placeholder": "From",
|
||||
|
Reference in New Issue
Block a user