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

Pagination: v11 audit #10425

Closed
25 of 29 tasks
aagonzales opened this issue Jan 13, 2022 · 10 comments
Closed
25 of 29 tasks

Pagination: v11 audit #10425

aagonzales opened this issue Jan 13, 2022 · 10 comments
Assignees
Milestone

Comments

@aagonzales
Copy link
Member

aagonzales commented Jan 13, 2022

Audit

A designer and developer will pair on this audit, some tasks may be discipline focused. Follow the checklist below for the features and items to review. If there are no issues with the item then check the item as complete. If any problems or bugs come up when auditing add a comment to this issue with the problem and how to correct it (if you know how). Bugs do not need to be fixed while auditing.

Resources

Variants

  • Default (data table)
  • Pagination nav (standalone)

Checklist

Visual (in React code)
Design and dev check

  • Component is using the correct design tokens (color and type), see design spec and scss code.
  • Component is rendering correctly across themes and layers, see design spec and storybook.
    • White theme
    • Gray 10 theme
    • Gray 90 theme
    • Gray 100 theme
  • Component is rendering correctly across browsers (check themes across browsers as well), see storybook.
    • Firefox
    • Safari
    • Chrome
  • Component sizes are rendering and named correctly (if applicable)

Website (v11)
Design checks

  • Style tab has correct design tokens listed
  • Style and usage tabs are using the correct size props names (if applicable)
  • Usage tab is up-to-date for with any v11 behavioral changes (if any)
  • Live Demo has applied v11 changes
    • Themes are rendering correctly
    • Size props are named correctly
    • No light props included

Design Kits (Sketch only)
Design checks

  • Correct design tokens (type and color) are used
  • Component using the correct size prop names
  • Any additional v11 behaviors have been added

Storybook
Dev checks

  • Confirm that prop table is populating
  • Take note of missing examples/stories (if any)

React package
Dev checks

Accessibility
Dev checks

  • Confirm that there are no violations in Accessibility checker
  • Confirm that component works as expected with VoiceOver

Migration docs
Design and dev check

  • Any breaking changes to this component are present in the v11 migration guide.
    • Design
    • Develop
@tw15egan
Copy link
Member

tw15egan commented Jan 24, 2022

With the move to IconButton, Pagination is currently not rendering any arrow icons (Next, Previous). Should we update the v10 Pagination to use IconButton to fix this issue?

Screen Shot 2022-01-24 at 2 17 04 PM

Fixed via #10510

@tw15egan
Copy link
Member

of 4 pages text is using text-secondary. Is this correct or should this be using text-primary? Sketch file only mentions the Items per page text and the 1-10 text

Screen Shot 2022-01-26 at 11 07 23 AM

@tw15egan
Copy link
Member

tw15egan commented Jan 26, 2022

Component sizes

  • Component size props have no effect in the new storybook. The class is being properly added, but styles are not there. Digging deeper, it seems the size styles have not been ported to the new @carbon/styles repo

@tw15egan
Copy link
Member

Storybook

  • Prop table is population, but there are no knobs/controls to play with the different prop values.

@tw15egan
Copy link
Member

tw15egan commented Jan 26, 2022

Getting some new a11y violations, but I think this is due to the button regression that should be fixed via #10510

Screen Shot 2022-01-26 at 12 01 18 PM

This has been fixed via #10510

@laurenmrice
Copy link
Member

laurenmrice commented Feb 18, 2022

Visual bugs

scss

  • label type-style should be type token body-compact-01.
  • select-input type-style should be type token body-compact-01.
  • select-input:hover should be color token $layer-hover.
  • Check to make sure all spacing tokens use the format $spacing- instead of having to prefix the token with $carbon--.
  • Yes @tw15egan this should be using color token $text-primary.

of 4 pages text is using text-secondary. Is this correct or should this be using text-primary? Sketch file only mentions the Items per page text and the 1-10 text

Screen Shot 2022-01-26 at 11 07 23 AM
  • pagination nav variant:
    • selected underline should be color token $border-interactive.
    • number text should be color token $text-primary.

@laurenmrice
Copy link
Member

laurenmrice commented Feb 18, 2022

Website

Style tab

  • Color: Add a row to specify where to use $text-primary color token.

Live demo

*Updating the Live demo with our current code should fix most of these bugs.

  • Some visual bugs with rule divider not showing up around caret icon.
  • Disabled prop does not visually disabling everything.
  • Right caret icon is not the correct color in the dark themes.

@laurenmrice
Copy link
Member

laurenmrice commented Feb 18, 2022

Design kit

Master files:

  • pagination default: Add Medium (40px) and Small (32px) sizes to kits
  • pagination nav variant: underline should be color token $border-interactive.

@tw15egan
Copy link
Member

tw15egan commented Mar 2, 2022

Looks good from a dev perspective 👍🏻

@tw15egan tw15egan removed their assignment Mar 2, 2022
@tay1orjones
Copy link
Member

Live demo updates appear to be the only thing left for this one, we've got an issue for it:

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

No branches or pull requests

6 participants