Fix sub-nav route indicator to match body color

Fix issue with action menus causing firefox to scroll to bottom of page
This commit is contained in:
Westly Wright 2016-03-24 10:16:37 -07:00
parent 3fca56386c
commit 05d10f9525
3 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import Ember from 'ember'; import Ember from 'ember';
import { isSafari } from 'ui/utils/platform'; import { isSafari } from 'ui/utils/platform';
const DELAY = 2000; const DELAY = 1000;
export default Ember.Component.extend({ export default Ember.Component.extend({
tagName : 'div', tagName : 'div',

View File

@ -51,7 +51,10 @@ export default Ember.Service.extend({
$parent.addClass('open'); $parent.addClass('open');
this.set('open',true); this.set('open',true);
// Delay ensure it works in firefox
Ember.run.next(() => {
$('#resource-actions-first')[0].focus(); $('#resource-actions-first')[0].focus();
});
BootstrapFixes.positionDropdown($menu, trigger, true); BootstrapFixes.positionDropdown($menu, trigger, true);
}); });
}, },

View File

@ -349,7 +349,7 @@ HEADER {
content: ""; content: "";
border-width: 7px; border-width: 7px;
border-color: transparent; border-color: transparent;
border-bottom-color: lighten($accent-two, 10%); border-bottom-color: $body-bg;
border-style: solid; border-style: solid;
position: absolute; position: absolute;
bottom: -2px; bottom: -2px;