1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Support for ARIA

This commit is contained in:
HarveyKandola 2022-01-11 12:40:52 -05:00
parent 45f216b8a1
commit 6b3cdb5033
42 changed files with 159 additions and 148 deletions

View file

@ -1,3 +1,4 @@
/* eslint-disable ember/no-classic-classes */
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
@ -28,6 +29,8 @@ export default Component.extend({
stretch: false,
uppercase: true,
iconClass: '',
ariaRole: "button",
tabindex: 0,
hasIcon: computed('iconClass', function() {
return this.iconClass.trim() != '';
}),

View file

@ -27,6 +27,8 @@ export default Component.extend({
stretch: false,
uppercase: true,
iconClass: '',
ariaRole: "button",
tabindex: 0,
hasIcon: computed('iconClass', function() {
return this.iconClass.trim() != '';
}),

View file

@ -19,6 +19,8 @@ export default Component.extend({
color: '',
arrow: true,
iconClass: '',
ariaRole: "button",
tabindex: 0,
calcClass: computed(function() {
// Prepare icon class name

View file

@ -25,6 +25,8 @@ export default Component.extend({
tooltip: '',
selected: false,
attributeBindings: ['title'],
tabindex: 0,
ariaRole: "button",
title: computed('tooltip', function() {
return this.tooltip;
}),

View file

@ -22,6 +22,8 @@ export default Component.extend({
label: '',
tooltip: '',
selected: false,
ariaRole: "button",
tabindex: 0,
calcClass: computed('selected', function() {
let c = '';