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] Second iteration #19612

Merged
merged 3 commits into from
Feb 11, 2020

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 8, 2020


This is a follow-up on the previous pull request. I have tried to explore the following dimensions:

  • Fix the HTML spec errors: https://validator.w3.org/nu/?doc=https%3A%2F%2Fmaster--material-ui.netlify.com%2Fcomponents%2Fpagination%2F
  • Start the localization of the aria labels. I have a doubt about including a default aria-label for the nav element. For instance, in https://getbootstrap.com/docs/4.3/components/pagination/#overview, it seems to encourage a custom wording. From my perspective, we should pick the same tradeoff between the Breadcrumb and Pagination components (the breadcrumb has no aria-label). cc @eps1lon
  • Fix the laggy experience, they were a 240ms timeout delay, I have taken care of the downstream UI issues that motivated the introduction of the delay in the first place.
  • Add the missing Mui prefix of the PaginationItem style sheet. This is important for global overrides.
  • Improve the generated API markdown.
  • Work on https://material.io/design/interaction/states.html. This is a strong change, I had to take a couple of simplifiction, that hopefully, doesn't harm the overall spirit of this spec. We should be able to apply the same approach to more of our components.
  • Improve the display for many pages (>99)
  • Introduce a usePagination documentation section. This is similar to what we have on the Autocomplete page. However, I start to have serious doubt about the ROI of this approach. I have spent time on it as an experiment, not as something I think that we should systematize. If we publish an unstyled version of our components, the hook version starts to be useless. I suspect the most likely path for v5 is to drop the hook. However, the work was already done, the cost to go collect more information was relatively low.
    BTW, I wonder if we shouldn't upgrade all the usePagination tests to higher level tests for the Pagination component?

Closes #19653

@oliviertassinari oliviertassinari added new feature New feature or request component: pagination This is the name of the generic UI component, not the React module! labels Feb 8, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Feb 8, 2020

@material-ui/lab: parsed: -0.31% 😍, gzip: -0.25% 😍

Details of bundle changes.

Comparing: e534b94...06fa79c

bundle Size Change Size Gzip Change Gzip
PaginationItem ▼ -1.22 kB (-1.48% ) 81.2 kB ▼ -495 B (-1.94% ) 25 kB
Pagination ▼ -687 B (-0.80% ) 85.5 kB ▲ +12 B (+0.05% ) 26.3 kB
@material-ui/lab ▼ -596 B (-0.31% ) 194 kB ▼ -141 B (-0.25% ) 57.2 kB
docs.main ▲ +515 B (+0.09% ) 597 kB ▲ +151 B (+0.08% ) 194 kB
Autocomplete ▲ +209 B (+0.16% ) 132 kB ▲ +58 B (+0.14% ) 41.4 kB
Button ▲ +188 B (+0.24% ) 80.1 kB ▲ +51 B (+0.21% ) 24.5 kB
@material-ui/core ▲ +188 B (+0.05% ) 362 kB ▲ +45 B (+0.05% ) 98.9 kB
@material-ui/core[umd] ▲ +188 B (+0.06% ) 318 kB ▲ +37 B (+0.04% ) 92 kB
ButtonGroup ▲ +186 B (+0.22% ) 83.6 kB ▲ +39 B (+0.15% ) 25.6 kB
Chip ▲ +179 B (+0.22% ) 83 kB ▲ +57 B (+0.22% ) 25.4 kB
Select ▲ +179 B (+0.15% ) 117 kB ▲ +45 B (+0.13% ) 34.6 kB
TextField ▲ +179 B (+0.14% ) 126 kB ▲ +44 B (+0.12% ) 36.6 kB
StepButton ▲ +178 B (+0.22% ) 82.7 kB ▲ +55 B (+0.21% ) 26.2 kB
TablePagination ▲ +178 B (+0.12% ) 144 kB ▲ +50 B (+0.12% ) 42 kB
SpeedDialIcon ▲ +178 B (+0.27% ) 64.9 kB ▲ +44 B (+0.22% ) 20.4 kB
TableSortLabel ▲ +178 B (+0.23% ) 77.8 kB ▲ +44 B (+0.18% ) 24.4 kB
Rating ▲ +178 B (+0.25% ) 70.8 kB ▲ +41 B (+0.18% ) 22.8 kB
StepIcon ▲ +178 B (+0.27% ) 65 kB ▲ +40 B (+0.20% ) 20.3 kB
StepLabel ▲ +178 B (+0.26% ) 69 kB ▲ +40 B (+0.18% ) 21.7 kB
SvgIcon ▲ +178 B (+0.28% ) 63.4 kB ▲ +39 B (+0.20% ) 19.8 kB
Tabs ▲ +178 B (+0.21% ) 86 kB ▲ +37 B (+0.14% ) 27.2 kB
Avatar ▲ +178 B (+0.27% ) 65.6 kB ▲ +36 B (+0.17% ) 20.7 kB
Breadcrumbs ▲ +178 B (+0.26% ) 68.1 kB ▲ +36 B (+0.17% ) 21.4 kB
Alert ▲ +178 B (+0.21% ) 83.8 kB ▲ +35 B (+0.13% ) 26.3 kB
NativeSelect ▲ +178 B (+0.23% ) 77.2 kB ▲ +34 B (+0.14% ) 24.3 kB
Checkbox ▲ +178 B (+0.21% ) 83.3 kB ▲ +33 B (+0.13% ) 26.3 kB
Radio ▲ +178 B (+0.21% ) 84.4 kB ▲ +33 B (+0.12% ) 26.6 kB
Drawer ▲ +177 B (+0.21% ) 85.2 kB ▲ +47 B (+0.18% ) 25.9 kB
Tooltip ▲ +177 B (+0.17% ) 103 kB ▲ +43 B (+0.13% ) 32.4 kB
MenuItem ▲ +177 B (+0.23% ) 78.6 kB ▲ +41 B (+0.17% ) 24.5 kB
Menu ▲ +177 B (+0.20% ) 89.1 kB ▲ +37 B (+0.14% ) 27.4 kB
RadioGroup ▲ +177 B (+0.27% ) 64.8 kB ▲ +35 B (+0.17% ) 20.1 kB
CardContent ▲ +176 B (+0.28% ) 62.3 kB ▲ +54 B (+0.28% ) 19.5 kB
DialogActions ▲ +176 B (+0.28% ) 62.4 kB ▲ +53 B (+0.27% ) 19.6 kB
Card ▲ +176 B (+0.28% ) 63.2 kB ▲ +52 B (+0.26% ) 19.8 kB
CardActions ▲ +176 B (+0.28% ) 62.4 kB ▲ +50 B (+0.26% ) 19.6 kB
ToggleButtonGroup ▲ +176 B (+0.28% ) 63.5 kB ▲ +49 B (+0.25% ) 20 kB
DialogContentText ▲ +176 B (+0.27% ) 64.4 kB ▲ +48 B (+0.24% ) 20.2 kB
IconButton ▲ +176 B (+0.23% ) 76.5 kB ▲ +48 B (+0.20% ) 23.9 kB
CardActionArea ▲ +176 B (+0.23% ) 75.5 kB ▲ +47 B (+0.20% ) 23.8 kB
CardHeader ▲ +176 B (+0.27% ) 65.4 kB ▲ +47 B (+0.23% ) 20.6 kB
Fab ▲ +176 B (+0.23% ) 77.2 kB ▲ +47 B (+0.20% ) 24.1 kB
InputBase ▲ +176 B (+0.25% ) 70.9 kB ▲ +47 B (+0.21% ) 22.3 kB
OutlinedInput ▲ +176 B (+0.24% ) 74.9 kB ▲ +47 B (+0.20% ) 23.3 kB
TableHead ▲ +176 B (+0.28% ) 62.4 kB ▲ +47 B (+0.24% ) 19.5 kB
ExpansionPanelActions ▲ +176 B (+0.28% ) 62.4 kB ▲ +46 B (+0.24% ) 19.6 kB
FilledInput ▲ +176 B (+0.24% ) 73.9 kB ▲ +46 B (+0.20% ) 23 kB
Input ▲ +176 B (+0.24% ) 72.8 kB ▲ +46 B (+0.20% ) 22.8 kB
ListItemSecondaryAction ▲ +176 B (+0.28% ) 62.3 kB ▲ +46 B (+0.24% ) 19.5 kB
TableBody ▲ +176 B (+0.28% ) 62.4 kB ▲ +46 B (+0.24% ) 19.5 kB
ExpansionPanelDetails ▲ +176 B (+0.28% ) 62.3 kB ▲ +45 B (+0.23% ) 19.5 kB
GridListTileBar ▲ +176 B (+0.28% ) 63.6 kB ▲ +45 B (+0.23% ) 19.9 kB
Link ▲ +176 B (+0.26% ) 67 kB ▲ +45 B (+0.21% ) 21.2 kB
TableRow ▲ +176 B (+0.28% ) 62.8 kB ▲ +45 B (+0.23% ) 19.7 kB
BottomNavigationAction ▲ +176 B (+0.23% ) 75.9 kB ▲ +44 B (+0.18% ) 24 kB
Dialog ▲ +176 B (+0.21% ) 83.4 kB ▲ +44 B (+0.17% ) 26 kB
ListItemAvatar ▲ +176 B (+0.28% ) 62.4 kB ▲ +44 B (+0.23% ) 19.5 kB
MobileStepper ▲ +176 B (+0.26% ) 68.2 kB ▲ +44 B (+0.21% ) 21.4 kB
StepContent ▲ +176 B (+0.25% ) 69.5 kB ▲ +44 B (+0.20% ) 21.8 kB
Tab ▲ +176 B (+0.23% ) 76.7 kB ▲ +44 B (+0.18% ) 24.2 kB
TableContainer ▲ +176 B (+0.28% ) 62.3 kB ▲ +44 B (+0.23% ) 19.5 kB
TableFooter ▲ +176 B (+0.28% ) 62.4 kB ▲ +44 B (+0.23% ) 19.5 kB
GridListTile ▲ +176 B (+0.28% ) 64.1 kB ▲ +43 B (+0.21% ) 20.1 kB
Table ▲ +176 B (+0.28% ) 62.9 kB ▲ +43 B (+0.22% ) 19.7 kB
AppBar ▲ +176 B (+0.27% ) 64.4 kB ▲ +42 B (+0.21% ) 20.2 kB
FormControl ▲ +176 B (+0.27% ) 64.8 kB ▲ +42 B (+0.21% ) 20.2 kB
FormGroup ▲ +176 B (+0.28% ) 62.3 kB ▲ +42 B (+0.22% ) 19.6 kB
Step ▲ +176 B (+0.28% ) 63 kB ▲ +42 B (+0.21% ) 19.8 kB
Backdrop ▲ +176 B (+0.26% ) 68.2 kB ▲ +41 B (+0.19% ) 21.1 kB
ButtonBase ▲ +176 B (+0.24% ) 74.4 kB ▲ +41 B (+0.18% ) 23.3 kB
FormLabel ▲ +176 B (+0.28% ) 63.8 kB ▲ +41 B (+0.21% ) 19.8 kB
ListItem ▲ +176 B (+0.23% ) 77.5 kB ▲ +41 B (+0.17% ) 24.2 kB
Typography ▲ +176 B (+0.28% ) 64 kB ▲ +41 B (+0.21% ) 20 kB
CircularProgress ▲ +176 B (+0.27% ) 64.4 kB ▲ +40 B (+0.20% ) 20.3 kB
Collapse ▲ +176 B (+0.26% ) 68.4 kB ▲ +40 B (+0.19% ) 21.2 kB
Container ▲ +176 B (+0.28% ) 63.5 kB ▲ +40 B (+0.20% ) 19.9 kB
ExpansionPanelSummary ▲ +176 B (+0.22% ) 78.5 kB ▲ +40 B (+0.16% ) 24.8 kB
GridList ▲ +176 B (+0.28% ) 62.8 kB ▲ +40 B (+0.20% ) 19.7 kB
Popover ▲ +176 B (+0.21% ) 83.5 kB ▲ +40 B (+0.16% ) 25.8 kB
Stepper ▲ +176 B (+0.27% ) 65.2 kB ▲ +39 B (+0.19% ) 20.6 kB
DialogTitle ▲ +176 B (+0.27% ) 64.6 kB ▲ +38 B (+0.19% ) 20.3 kB
Divider ▲ +176 B (+0.28% ) 63 kB ▲ +38 B (+0.19% ) 19.8 kB
Grid ▲ +176 B (+0.27% ) 65.4 kB ▲ +38 B (+0.19% ) 20.5 kB
Grow ▲ +176 B (+0.73% ) 24.2 kB ▲ +38 B (+0.46% ) 8.22 kB
Icon ▲ +176 B (+0.28% ) 63.1 kB ▲ +38 B (+0.19% ) 19.8 kB
ListItemIcon ▲ +176 B (+0.28% ) 62.5 kB ▲ +38 B (+0.19% ) 19.6 kB
ListSubheader ▲ +176 B (+0.28% ) 63.1 kB ▲ +38 B (+0.19% ) 19.8 kB
Slider ▲ +176 B (+0.23% ) 77 kB ▲ +38 B (+0.16% ) 24.2 kB
SpeedDial ▲ +176 B (+0.20% ) 86.6 kB ▲ +38 B (+0.14% ) 27.3 kB
ToggleButton ▲ +176 B (+0.23% ) 76.5 kB ▲ +38 B (+0.16% ) 24.2 kB
TreeItem ▲ +176 B (+0.24% ) 74.3 kB ▲ +38 B (+0.16% ) 23.5 kB
AlertTitle ▲ +176 B (+0.27% ) 64.5 kB ▲ +37 B (+0.18% ) 20.3 kB
AvatarGroup ▲ +176 B (+0.28% ) 62.6 kB ▲ +37 B (+0.19% ) 19.7 kB
DialogContent ▲ +176 B (+0.28% ) 62.6 kB ▲ +37 B (+0.19% ) 19.6 kB
FormControlLabel ▲ +176 B (+0.27% ) 65.9 kB ▲ +37 B (+0.18% ) 20.7 kB
ListItemText ▲ +176 B (+0.27% ) 65.3 kB ▲ +37 B (+0.18% ) 20.5 kB
MenuList ▲ +176 B (+0.27% ) 66.4 kB ▲ +37 B (+0.18% ) 20.8 kB
styles/createMuiTheme ▲ +176 B (+1.07% ) 16.6 kB ▲ +37 B (+0.64% ) 5.85 kB
TableCell ▲ +176 B (+0.27% ) 64.4 kB ▲ +37 B (+0.18% ) 20.3 kB
InputLabel ▲ +176 B (+0.27% ) 65.7 kB ▲ +36 B (+0.18% ) 20.5 kB
Skeleton ▲ +176 B (+0.28% ) 63.3 kB ▲ +36 B (+0.18% ) 20 kB
Slide ▲ +176 B (+0.69% ) 25.7 kB ▲ +36 B (+0.41% ) 8.74 kB
SwipeableDrawer ▲ +176 B (+0.19% ) 92.6 kB ▲ +36 B (+0.12% ) 28.9 kB
Box ▲ +176 B (+0.24% ) 72.2 kB ▲ +35 B (+0.16% ) 21.9 kB
ExpansionPanel ▲ +176 B (+0.24% ) 72.7 kB ▲ +35 B (+0.15% ) 22.7 kB
Fade ▲ +176 B (+0.75% ) 23.6 kB ▲ +35 B (+0.44% ) 8.01 kB
LinearProgress ▲ +176 B (+0.27% ) 65.7 kB ▲ +35 B (+0.17% ) 20.5 kB
Badge ▲ +176 B (+0.27% ) 65.7 kB ▲ +34 B (+0.17% ) 20.4 kB
Paper ▲ +176 B (+0.28% ) 62.7 kB ▲ +34 B (+0.17% ) 19.6 kB
SnackbarContent ▲ +176 B (+0.28% ) 63.9 kB ▲ +34 B (+0.17% ) 20.1 kB
SpeedDialAction ▲ +176 B (+0.15% ) 119 kB ▲ +34 B (+0.09% ) 37.6 kB
StepConnector ▲ +176 B (+0.28% ) 63.1 kB ▲ +34 B (+0.17% ) 19.9 kB
Switch ▲ +176 B (+0.21% ) 82.5 kB ▲ +34 B (+0.13% ) 26 kB
TreeView ▲ +176 B (+0.26% ) 67 kB ▲ +34 B (+0.16% ) 21.1 kB
Zoom ▲ +176 B (+0.75% ) 23.6 kB ▲ +34 B (+0.42% ) 8.12 kB
BottomNavigation ▲ +176 B (+0.28% ) 62.7 kB ▲ +33 B (+0.17% ) 19.7 kB
FormHelperText ▲ +176 B (+0.28% ) 63.7 kB ▲ +33 B (+0.17% ) 20 kB
List ▲ +176 B (+0.28% ) 62.7 kB ▲ +33 B (+0.17% ) 19.6 kB
Toolbar ▲ +176 B (+0.28% ) 62.7 kB ▲ +33 B (+0.17% ) 19.7 kB
InputAdornment ▲ +176 B (+0.27% ) 65.4 kB ▲ +32 B (+0.16% ) 20.6 kB
Snackbar ▲ +176 B (+0.23% ) 75.7 kB ▲ +32 B (+0.14% ) 23.7 kB
CardMedia ▲ +176 B (+0.28% ) 62.7 kB ▲ +31 B (+0.16% ) 19.7 kB
Hidden ▲ +176 B (+0.27% ) 66.3 kB ▲ +29 B (+0.14% ) 20.8 kB
CssBaseline ▲ +176 B (+0.31% ) 57.8 kB ▲ +28 B (+0.15% ) 18.1 kB
@material-ui/system -- 16.4 kB ▲ +3 B (+0.07% ) 4.3 kB
@material-ui/styles -- 51.4 kB ▼ -1 B (-0.01% ) 15.4 kB
RootRef -- 4.24 kB ▲ +1 B (+0.06% ) 1.64 kB
useAutocomplete -- 14.7 kB ▲ +1 B (+0.02% ) 5.32 kB
useMediaQuery -- 2.58 kB ▼ -1 B (-0.09% ) 1.06 kB
ClickAwayListener -- 3.91 kB -- 1.55 kB
colorManipulator -- 3.88 kB -- 1.52 kB
docs.landing -- 56.4 kB -- 14.5 kB
Modal -- 14.5 kB -- 5.04 kB
NoSsr -- 2.19 kB -- 1.04 kB
Popper -- 28.8 kB -- 10.3 kB
Portal -- 2.92 kB -- 1.3 kB
TextareaAutosize -- 5.12 kB -- 2.14 kB

Generated by 🚫 dangerJS against 06fa79c

@oliviertassinari oliviertassinari force-pushed the pagination-polish branch 2 times, most recently from 4d1c6e7 to 94902e8 Compare February 8, 2020 13:53
@mbrookes
Copy link
Member

mbrookes commented Feb 8, 2020

Fix the HTML spec errors

Hmm, yeah, that came from making <ul> the root element when adding the component prop in order to meet the conformance test's default requirement for it.

It would be more helpful if the test explained why this is an error, but if I had to guess, I suspect it's do do with list items needing an immediate parent with a role of list?

On a semi-related note, I wonder if it should in fact be an <ol>, as the order is somewhat important?

Work on material.io/design/interaction/states.html

The only issue I see is with the visibility of the active item for a disable pagination in dark mode.

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Feb 8, 2020

@mbrookes I couldn't find why the ul + role="navigation" is considered an error. I don't know about ol, I haven't seen materials on the subject. Most seem to use a ul.

The only issue I see is with the visibility of the active item for a disable pagination in dark mode.

I have used an opacity based approach, but maybe we should go back to a color + background approach for the disabled state? I like how the use of the opacity simplifies the logic.

@mbrookes
Copy link
Member

mbrookes commented Feb 8, 2020

I couldn't find why the ul + role="navigation" is considered an error.

I couldn't either, and I spent ages earlier trying to navigate the byzantine HTML spec, but while looking into ul vs ol just now, I came across this:

Permitted ARIA roles directory, group, listbox, menu, menubar, radiogroup, tablist, toolbar, tree, presentation

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul

and this:

https://w3c.github.io/html-aria/#el-ul

Not a comprehensive explanation as to why the role is restricted, but at least a pointer as to why it's considered an error.

Also of interest is:

Note: some user agents suppress a list's implicit ARIA semantics if list markers are removed. Authors can use role=list to reinstate the role if necessary.

Regarding ul vs. ol – for ol screenreaders announce the number of the item, while for ul they refer to it as a bullet, so ul does appear to be the better choice.

https://www.scottohara.me/blog/2018/05/26/aria-lists.html

@oliviertassinari oliviertassinari deleted the pagination-polish branch February 8, 2020 20:39
@oliviertassinari oliviertassinari restored the pagination-polish branch February 8, 2020 23:11
@oliviertassinari
Copy link
Member Author

Oops, I was cleaning my fork.

</li>
))}
</ul>
<ul className={classes.ul}>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<ul className={classes.ul}>
<ul role="list" className={classes.ul}>

?

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems that the <ul> element has a default role of "list".

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Default roles should never be used.

[...] default implicit ARIA semantics is unnecessary and not recommended as these properties are already set by the browser.

-- https://www.w3.org/TR/html52/dom.html#do-not-set

I would prefer that over a blog post (even if it comes from an editor). Unless there's some issue on the spec concerning this.

Copy link
Member

@mbrookes mbrookes Feb 9, 2020

Choose a reason for hiding this comment

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

Default roles should never be used.

That isn't what the sentence says (it says "not recommended").

I would prefer that over a blog post

Blog post? I quoted https://w3c.github.io/html-aria/#el-ul

Unless there's some issue on the spec concerning this.

Strict conformance to the spec (which is actually only a recommendation in this case) over pragmatic choices that help make content more accessible seems like the wrong tradeoff to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

I hadn't this principle of "past experience" in mind (that I love BTW). I was proposing to leverage the "experience"/"exposure" of others. I think that the probability of doing it right is in their favor; not ours.

Copy link
Member

Choose a reason for hiding this comment

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

I think that the probability of doing it right is in their favor; not ours.

You mean like Google using a table for pagination? :)

No, the guidance on this is pretty clear cut, it's just that nobody is following it. Following the crowd in this case isn't about others being correct, but about not bucking the trend. Subtly different.

Incidentally, there's no consistency with the use of <nav> to wrap the <ul>, and for those that do, whether or not to add role="navigation", so we still have that to debate. 😄

Copy link
Member Author

@oliviertassinari oliviertassinari Feb 10, 2020

Choose a reason for hiding this comment

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

I can't see clearly through these conflicting signals. Maybe the following would help: What happens if we set a default role while we shouldn't? How can it go bad?

Copy link
Member

@mbrookes mbrookes Feb 10, 2020

Choose a reason for hiding this comment

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

Worst case:

  1. Validator warnings

    But see also: https://www.scottohara.me/blog/2019/03/26/a-warning-about-warnings.html

    "Sometimes you may come across gaps in the assertions these tools are based on. Or a best practice may dictate that you don’t double up ARIA roles on their native elements, when that’s absolutely what you need to do to ensure cross-browser and assistive technology feature parity."

  2. User "surprise" (for Safari with Voiceover users) when the experience is not consistent with other pagination implementations they are used to. (Which use <ul> with list-style: none but don't add role="list").

For the latter reason I'm suggesting (last paragraph here: #19612 (comment)) that we go with the flow rather than "fix" it. If we get feedback that it causes problems, we can revisit it.

Copy link
Member Author

@oliviertassinari oliviertassinari Feb 10, 2020

Choose a reason for hiding this comment

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

Ok awesome! So we try no role and we learn from it.

eps1lon
eps1lon previously requested changes Feb 9, 2020
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

We shouldn't handwave the states change. This needs a proper proposal, possibly RFC process. We should work on this in v5 since this impact is unpredictable.

packages/material-ui/src/Chip/Chip.js Outdated Show resolved Hide resolved
@oliviertassinari oliviertassinari force-pushed the pagination-polish branch 4 times, most recently from 2b6c887 to f267ddb Compare February 9, 2020 11:07
@oliviertassinari oliviertassinari merged commit 9c053f8 into mui:master Feb 11, 2020
EsoterikStare pushed a commit to EsoterikStare/material-ui that referenced this pull request Feb 13, 2020
@@ -43,6 +43,10 @@ export const light = {
disabled: 'rgba(0, 0, 0, 0.26)',
// The background color of a disabled action.
disabledBackground: 'rgba(0, 0, 0, 0.12)',
disabledOpacity: 0.38,

Choose a reason for hiding this comment

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

Were these keys first introduced here in v4.9.3? Is it stable (i.e. can I use it when styling)?

Copy link
Member Author

Choose a reason for hiding this comment

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

We plan to use theses keys more broadly. I think that it's safe to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pagination This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PaginationItem] Incorrect style sheet name?
5 participants