From 05d10f9525bcdcc38a48fa6ab963353e264b6d26 Mon Sep 17 00:00:00 2001 From: Westly Wright Date: Thu, 24 Mar 2016 10:16:37 -0700 Subject: [PATCH] Fix sub-nav route indicator to match body color Fix issue with action menus causing firefox to scroll to bottom of page --- app/components/copy-to-clipboard/component.js | 2 +- app/services/resource-actions.js | 5 ++++- app/styles/layout/_header.scss | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/components/copy-to-clipboard/component.js b/app/components/copy-to-clipboard/component.js index 1195d13d8..bd68cc541 100644 --- a/app/components/copy-to-clipboard/component.js +++ b/app/components/copy-to-clipboard/component.js @@ -1,7 +1,7 @@ import Ember from 'ember'; import { isSafari } from 'ui/utils/platform'; -const DELAY = 2000; +const DELAY = 1000; export default Ember.Component.extend({ tagName : 'div', diff --git a/app/services/resource-actions.js b/app/services/resource-actions.js index a0e54bf76..5d6da3a6a 100644 --- a/app/services/resource-actions.js +++ b/app/services/resource-actions.js @@ -51,7 +51,10 @@ export default Ember.Service.extend({ $parent.addClass('open'); this.set('open',true); - $('#resource-actions-first')[0].focus(); + // Delay ensure it works in firefox + Ember.run.next(() => { + $('#resource-actions-first')[0].focus(); + }); BootstrapFixes.positionDropdown($menu, trigger, true); }); }, diff --git a/app/styles/layout/_header.scss b/app/styles/layout/_header.scss index 02c95da3d..67a14bd94 100644 --- a/app/styles/layout/_header.scss +++ b/app/styles/layout/_header.scss @@ -349,7 +349,7 @@ HEADER { content: ""; border-width: 7px; border-color: transparent; - border-bottom-color: lighten($accent-two, 10%); + border-bottom-color: $body-bg; border-style: solid; position: absolute; bottom: -2px;