Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(customFacet): 2517 can tab in modal
Browse files Browse the repository at this point in the history
- tab cycles down after visiting input and checkbox
Closes #2517
  • Loading branch information
Christine Yu committed Jun 16, 2016
1 parent 570b0f2 commit d5ab3aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scripts/components/facets/facets.controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,10 @@ module ngApp.components.facets.controllers {
if (_this.$uibModalStack) _this.$uibModalStack.dismissAll();
break;
case KeyCode.Tab:
e.preventDefault();
const activeId = document.activeElement.id;
if (activeId !== 'show-fields-checkbox' && activeId !== 'quick-search-input') {
_this.setSelectedIndex(Cycle.Down);
}
break;
}
};
Expand Down
4 changes: 4 additions & 0 deletions app/scripts/components/facets/styles/facets.less
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
background-color: #1f486c;
}

li:focus {
outline: none
}

.custom-facet-description {
padding: 0.7rem 1.5rem;
border-left: 32px solid #636869;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ <h3 style="display: inline">
</h3>
<span data-ng-click="cufc.toggleEmpty()"
class="pull-right"
id="show-fields-checkbox"
tabindex="0">
<i class="fa fa-check-square-o"
ng-class="{'fa-check-square-o': cufc.CustomFacetsService.nonEmptyOnlyDisplayed,
Expand Down

0 comments on commit d5ab3aa

Please sign in to comment.