Skip to content
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

Improve compressed EuiPagination #2779

Merged
merged 8 commits into from
Jan 24, 2020

Conversation

andreadelrio
Copy link
Contributor

@andreadelrio andreadelrio commented Jan 21, 2020

Summary

I've added the current page and a "jump to last page" link to the compressed version of EuiPagination. See before and after screenshots below

Before

image

After

image

  • Here's a gif of the improved compressed EuiPagination using VoiceOver.

a11y_c_pag

Fixes #606

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile

  • Checked in IE11 and Firefox
    - [ ] Props have proper autodocs
    - [ ] Added documentation examples
    - [ ] Added or updated jest tests
    - [ ] Checked for breaking changes and labeled appropriately
    - [x] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

src/components/pagination/pagination.tsx Outdated Show resolved Hide resolved
src/components/pagination/pagination.tsx Outdated Show resolved Hide resolved
src/components/pagination/pagination.tsx Outdated Show resolved Hide resolved
@myasonik
Copy link
Contributor

Love the VoiceOver gif ❤️

@andreadelrio andreadelrio removed the request for review from thompsongl January 21, 2020 19:59
Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to check mobile screen resolutions here.

image

@andreadelrio
Copy link
Contributor Author

Removed hideOnMobile.

Screenshot at iPhone X screen size:

image

@andreadelrio andreadelrio requested a review from snide January 23, 2020 20:41
Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue and looks good to merge. I think we might want to eventually get rid of the media queries and instead auto-apply the compressed views based upon a resize observer, but there's no hurry to make that change in this PR.

@snide
Copy link
Contributor

snide commented Jan 24, 2020

@chandlerprall Mind giving this a quick check. I think @andreadelrio addressed all your feedback and this looks good to merge?

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more change requested, for better localization support.

src/components/pagination/pagination.tsx Show resolved Hide resolved
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! Pulled & tested locally. Thanks @andreadelrio !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compressed pagination could still use some numbering
4 participants