fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Pagination: Graduate to 1.0 Release

Open caradong opened this issue 8 years ago • 10 comments

Pagination component is added into experiment in this pr https://github.com/OfficeDev/office-ui-fabric-react/pull/7100 and there are some more work before this control can graduate from experiment package.

Component Details

Imports

Exports/ Component Breakdown

Intended Package

OUFR

Code mockup/example

Code Sample


CodePens ComboBox Example Individual Buttons Example

Types

Name Type Default Value Description
className string Optional class name to be added to the root

Design Assets

Component Ownership

Fabric Team

Deadlines

Todos

  • [ ] investigate crossover with pivot control (break up into primitive control and composed)
  • [ ] support styling before/after current page
  • [ ] public interface for next/prev/first/last
  • [ ] customization links
  • [ ] unit tests and visual parity tests
  • [x] put standard examples up top
  • [ ] verify design
  • [ ] convert to slots
  • [x] For the button display mode, remove the flashing effect of default button component
  • [x] Make combo box the default option and reorder the examples accordingly
  • [ ] Investigate the styles of Combox and update the component to use subComponentStyles
  • [ ] go through this design spec Microsoft/microsoft-ui-xaml#60 to make sure the designs are aligned

Steps

  • [x] Themable (Component.base/Component.styles)
  • [ ] Unit tests
  • [ ] Visual tests
  • [ ] Documentation and examples
  • [ ] Keyboard Accessible
  • [ ] High Constrast Support
  • [ ] RTL Support
  • [ ] Design Review
  • [ ] API review
  • [ ] Public Preview
  • [ ] Ready for Publishing

caradong avatar Nov 29 '18 18:11 caradong

Note: Adding some ideas for future iterations of the Pagination control.

One behavior that this control may want to support is the ability to navigate pagination numbers using the ARROW keys. To support this, I think it would require wrapping them in a FocusZone. Currently you can only navigate via TAB which is enough to meet accessibility standards. But I instinctively tried to use LEFT/RIGHT.

KevinTCoughlin avatar Nov 29 '18 19:11 KevinTCoughlin

The control's types may also want to inherit from React.AllHTMLAttributes or some such to better support native props without requiring us to explicitly add things such as ariaLabel, className, etc.

KevinTCoughlin avatar Nov 29 '18 19:11 KevinTCoughlin

In this recording you can see a flashing of the selected page in the middle. If this is a part of the default button visual effect, we might wanna look into giving it a smoother fadeout of some sort (perhaps a CSS transition). @betrue-final-final what do you think on that? Should we smooth out the flashing of the background or remove it completely?

Vitalius1 avatar Dec 10 '18 19:12 Vitalius1

Very interesting opportunity to coordinate with the XAML team who is creating their own pagination control.

https://github.com/Microsoft/microsoft-ui-xaml/issues/60

Spoke with them today about making sure we're working off the same designs and driving for feature/variant parity, as well as interface consistency.

micahgodbolt avatar Dec 13 '18 00:12 micahgodbolt

There are a few things wrong with the recording @Vitalius1.

  1. The flashing is disturbing. We should remove it.
  2. Using just color and a subtle weight change for the selected number isn't very accessible. I don't remember seeing that.
  3. The combobox version should be default as it is accessible. The one with numbers is optimized to work for sighted people in specific scenarios that @caradong identified earlier.

betrue-final-final avatar Dec 13 '18 14:12 betrue-final-final

Any progress here @caradong

dzearing avatar Sep 16 '19 05:09 dzearing

@micahgodbolt we should discuss if there are any leftovers here.

dzearing avatar Sep 16 '19 05:09 dzearing

Last time I synced with Micah, the next step is to adopt the slot implementation. I have not get a chance to finish those yet. Let me know if we want to have a quick sync again about this.

caradong avatar Sep 18 '19 02:09 caradong

Hi @caradong,

Any work continuing to on this issue?

Thanks.

akeemtaiwo avatar May 15 '20 11:05 akeemtaiwo

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar Feb 04 '22 19:02 msft-fluent-ui-bot