Skip to content

Commit

Permalink
Fix outline and tab order of items in the toolbar #4492
Browse files Browse the repository at this point in the history
Added autofocus to launcher button on app rendered.
Updated launcher button padding.
  • Loading branch information
edloidas committed Mar 1, 2017
1 parent 7b52627 commit 25493fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function appendLauncherButton() {
setTimeout(function() {
var container = document.querySelector(".appbar") || document.getElementsByTagName("body")[0];
container.appendChild(launcherButton);
launcherButton.focus();
}, 700);
}

Expand Down Expand Up @@ -98,7 +99,7 @@ function createLauncherLink(container) {

function openWindow(windowArr, anchorEl) {
var windowId = anchorEl.getAttribute("data-id");

if (windowArr[windowId] && !windowArr[windowId].closed) {
windowArr[windowId].focus();
}
Expand All @@ -111,15 +112,15 @@ function addLongClickHandler(container) {
var longpress = false;
var startTime, endTime;
var toolWindows = [];

var appTiles = container.querySelector('.launcher-app-container').querySelectorAll("a");
for (var i = 0; i < appTiles.length; i++) {
appTiles[i].addEventListener("click", function (e) {
if (window.CONFIG.appId == e.currentTarget.getAttribute("data-id") && window.CONFIG.appId == "home") {
e.preventDefault();
return;
}

if (longpress) {
e.preventDefault();
document.location.href = this.href;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ body.mobile-statistics-panel {
cursor: pointer;
z-index: @z-index-launcher-button;
line-height: 17px;
padding-top: 5px;
padding: 6px 5px 3px;

&::-moz-focus-inner {
border: 0;
Expand Down

0 comments on commit 25493fb

Please sign in to comment.