mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10300] a11y Fix: visible and accessible Group label is missing (#11330)
* [ACS-10300] a11y Fix: visible and accessible Group label is missing for the radio group * [10300-a11y] sonar fix
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
"MINOR": "minor changes ({{version}})",
|
"MINOR": "minor changes ({{version}})",
|
||||||
"COMMENT": "Leave a comment",
|
"COMMENT": "Leave a comment",
|
||||||
"ADD": "Add New Version",
|
"ADD": "Add New Version",
|
||||||
"CANCEL": "Cancel"
|
"CANCEL": "Cancel",
|
||||||
|
"VERSION_TYPE_LABEL": "Select version type"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"CONFIRM_DELETE": {
|
"CONFIRM_DELETE": {
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
<div class="adf-new-version-max-width">
|
<div class="adf-new-version-max-width">
|
||||||
<mat-radio-group class="adf-new-version-radio-group" [(ngModel)]="semanticVersion" (change)="onVersionChange()">
|
<div id="adf-version-type-label" class="adf-version-type-label">
|
||||||
|
{{ 'ADF_VERSION_LIST.ACTIONS.UPLOAD.VERSION_TYPE_LABEL' | translate }}
|
||||||
|
</div>
|
||||||
|
<mat-radio-group
|
||||||
|
class="adf-new-version-radio-group"
|
||||||
|
[(ngModel)]="semanticVersion"
|
||||||
|
(change)="onVersionChange()"
|
||||||
|
[attr.aria-labelledby]="'adf-version-type-label'">
|
||||||
<mat-radio-button class="adf-new-version-radio-button" id="adf-new-version-minor" [value]="'minor'">
|
<mat-radio-button class="adf-new-version-radio-button" id="adf-new-version-minor" [value]="'minor'">
|
||||||
{{ 'ADF_VERSION_LIST.ACTIONS.UPLOAD.MINOR' | translate: { version: minorVersion } }}
|
{{ 'ADF_VERSION_LIST.ACTIONS.UPLOAD.MINOR' | translate: { version: minorVersion } }}
|
||||||
</mat-radio-button>
|
</mat-radio-button>
|
||||||
|
|||||||
@@ -1,25 +1,5 @@
|
|||||||
@use '../mat-selectors.scss' as ms;
|
@use '../mat-selectors.scss' as ms;
|
||||||
|
|
||||||
.adf-new-version-radio-group {
|
|
||||||
display: inline-flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-new-version-radio-button {
|
|
||||||
margin: 5px;
|
|
||||||
margin-top: 2px;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-version-upload-buttons {
|
|
||||||
padding-top: 18px;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
display: flex;
|
|
||||||
float: right;
|
|
||||||
justify-content: space-between;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-version-upload {
|
.adf-version-upload {
|
||||||
.adf-new-version-max-width {
|
.adf-new-version-max-width {
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
@@ -39,4 +19,28 @@
|
|||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.adf-version-type-label {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-new-version-radio-group {
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-new-version-radio-button {
|
||||||
|
margin: 5px;
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-version-upload-buttons {
|
||||||
|
padding-top: 18px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
display: flex;
|
||||||
|
float: right;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user