mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[docs] Apply style guide to Data Grid Accessibility page

Open samuelsycamore opened this issue 2 years ago • 3 comments

Part of #5764

This PR revises the Data Grid Accessibility page, addressing style, grammar and a bit of copywriting. Not many big changes here other than capitalizing "Data Grid" whenever referring to the MUI X component itself rather than the concept of a grid—see https://github.com/mui/mui-x/issues/5764#issuecomment-1213536072.

samuelsycamore avatar Aug 12 '22 22:08 samuelsycamore

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 332.2 634.7 531.3 478.56 120.384
Sort 100k rows ms 574.8 1,202.6 792.4 842.84 202.375
Select 100k rows ms 158.1 279 215 216.86 38.699
Deselect 100k rows ms 117.8 388.7 214.3 226.86 88.674

Generated by :no_entry_sign: dangerJS against 324c4324c1eda551c4712fde7e1d60396f936791

mui-bot avatar Aug 12 '22 22:08 mui-bot

@samuelsycamore what do you think about reducing a bit the ambition of this PR so we can merge it? We could only update the capitalization of the components in the headers and leave the other references of the components in the body of the page untouched.

Then, once we get feedback from @mbrookes we can normalize how we reference the components in the body, whatever this convention is. A quick benchmark:

a. https://getbootstrap.com/docs/5.2/components/modal/ lower cases b. https://chakra-ui.com/docs/components/alert-dialog/usage code blocks or lower cases, no capitalization references in the body. c. https://www.radix-ui.com/docs/primitives/components/dialog not very consistent, but it seems the majority is lower cases. d. https://mantine.dev/core/notification/ not super consistent but a majority of upper cases.

Which one feels better?

My main concern is that the capitalization inside the body of the page makes the content feel "heavy". It's not as heavy as over using the <code> blocks but it still interputs more the reading flow than no special treatment. In practice, the distinction of meaning between generic component and our component feels unnecessary.

oliviertassinari avatar Sep 11 '22 13:09 oliviertassinari

I agree with lower case mid sentence, unless it's a specific reference to the React component name.

mbrookes avatar Sep 11 '22 15:09 mbrookes

@oliviertassinari It feels inconsistent to me to only capitalize component names in headlines. If we aren't treating them like Proper Nouns in the body of the docs, then it looks odd to do so in the headlines. It should all be one way or the other.

samuelsycamore avatar Sep 22 '22 00:09 samuelsycamore

Following up on discussions with the Core team and on Slack, I'm going to move forward with the capitalization of MUI X component names. With that in mind I think this is good to be merged.

samuelsycamore avatar Sep 28 '22 16:09 samuelsycamore