Skip to content

Commit

Permalink
Feature/accessibility (#1257)
Browse files Browse the repository at this point in the history
* enhance jQuery UI Dialog to retain focus on trigger element after close

* add keyboard accessibility support for jquery datepicker

* add keyboard accessibility to map layer switcher

* add keyboard accessibility to force graph(sticky note) toggle button

* remove jquery dialog fadeout on close

* add locale to the jqyery close button

---------

Co-authored-by: Jagdish Kunwar <jkunwar@luageo.com>
Co-authored-by: Jagdish Kunwar <jkunwar@lunageo.com>
  • Loading branch information
3 people authored Jan 24, 2025
1 parent 4661eb1 commit 6d22be2
Show file tree
Hide file tree
Showing 11 changed files with 551 additions and 98 deletions.
1 change: 1 addition & 0 deletions nunaliit2-js/compress/nunaliit2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,4 @@ n2.utilitiesChangeDetectors.js
n2.tag.js
n2.displayTagAssignment.js
n2.accessibilityMapAndControlsKeyboardControls.js
n2.datepicker.js
2 changes: 1 addition & 1 deletion nunaliit2-js/src/main/js/nunaliit2/css/basic/n2.base.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ body {
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
outline: 1px solid -webkit-focus-ring-color;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion nunaliit2-js/src/main/js/nunaliit2/css/basic/n2.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ CreateDocument widget
}

.nunaliit_form_link:focus {
border: 3px solid rgb(0, 255,255)
outline: 1px solid -webkit-focus-ring-color;
}

.nunaliit_form_link_tree_view {
Expand Down
6 changes: 4 additions & 2 deletions nunaliit2-js/src/main/js/nunaliit2/css/basic/n2.widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,17 @@
left: 47px;
top: 100px;
}
.olControlLayerSwitcher .maximizeDiv, .olControlLayerSwitcher .minimizeDiv {
.olControlLayerSwitcher .maximizeDiv, .olControlLayerSwitcher .minimizeDiv,
.olControlLayerSwitcher .layerTogglerDiv {
width: 28px;
height: 28px;
background-image: url('openlayers/settings_icon.png');
opacity: 0.7;
top: 5px;
left: -29px;
}
.olControlLayerSwitcher .maximizeDiv:hover, .olControlLayerSwitcher .minimizeDiv:hover {
.olControlLayerSwitcher .maximizeDiv:hover, .olControlLayerSwitcher .minimizeDiv:hover,
.olControlLayerSwitcher .layerTogglerDiv:hover {
opacity: 1;
}
#OpenLayers_Control_MaximizeDiv img,
Expand Down
2 changes: 2 additions & 0 deletions nunaliit2-js/src/main/js/nunaliit2/dbweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,8 @@ POSSIBILITY OF SUCH DAMAGE.
dateFormat: 'yy-mm-dd'
,gotoCurrent: true
,changeYear: true
,showButtonPanel: true
,closeText: 'Close'
});
li.append(input);
saveInput(columnName, input, value);
Expand Down
2 changes: 1 addition & 1 deletion nunaliit2-js/src/main/js/nunaliit2/n2.canvasForceGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ if( !$d ) return;
};
};

$('<div>')
$('<button>')
.addClass('n2ForceGraph_settings_button')
.appendTo($outer).
click(function(){
Expand Down
Loading

0 comments on commit 6d22be2

Please sign in to comment.