-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Accessibility] Add button to skip past the discover doc table #12539
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,16 @@ <h2>Searching</h2> | |
|
||
<!-- result --> | ||
<div class="results" ng-show="resultState === 'ready'"> | ||
<button | ||
class="kuiButton kuiButton--basic kuiButton--iconText discover-skip-button" | ||
ng-click="showAllRows(); scrollToBottom()" | ||
> | ||
<span class="kuiButton__inner"> | ||
<span aria-hidden="true" class="kuiButton__icon kuiIcon fa-chevron-down"></span> | ||
<span>Skip to bottom</span> | ||
</span> | ||
</button> | ||
|
||
<div class="discover-timechart" ng-if="opts.timefield"> | ||
<header> | ||
<center class="small"> | ||
|
@@ -151,17 +161,20 @@ <h2>Searching</h2> | |
data-shared-item | ||
data-title="{{opts.savedSearch.lastSavedTitle}}" | ||
data-description="{{opts.savedSearch.description}}" | ||
minimum-visible-rows="minimumVisibleRows" | ||
render-counter | ||
on-add-column="addColumn" | ||
on-change-sort-order="setSortOrder" | ||
on-move-column="moveColumn" | ||
on-remove-column="removeColumn" | ||
></doc-table> | ||
|
||
<a tabindex="0" id="discoverBottomMarker"></a> | ||
|
||
<div ng-if="rows.length == opts.sampleSize" class="discover-table-footer"> | ||
These are the first {{opts.sampleSize}} documents matching | ||
your search, refine your search to see others. | ||
<a ng-click="toTop()">Back to top.</a> | ||
<a tabindex="0" ng-click="scrollToTop()">Back to top.</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since you're in here anyway, would you mind adding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doing that will also mean you can remove |
||
</div> | ||
</div> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you're opting to use
$document
instead of$element
here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's just a remnant of the fact that the code lived deeper in the directive hierarchy previously. good catch