Skip to content

[docs] New docs design, early feedback #588

Open
@oliviertassinari

Description

@oliviertassinari

This is feedback on my experience browsing https://master--base-ui.netlify.app/components/react-field/ and comparing the experience with https://deploy-preview-477--base-ui.netlify.app/base-ui/react-field/#labeling-and-descriptive-help-text. I imagine it's still a work in progress, so I won't go too much in-depth, but simply stop on the things that I noticed:

SCR-20240905-tuhk
  • 2. The h2 h3 text selection doesn't work, it looks like we should restore the previous UX
Screen.Recording.2024-09-05.at.22.57.10.mov
  • 3. Code blocks are tabbable, it looks like they shouldn't be.
SCR-20240905-tvib
  • 4. When using the reset focus, it would be great to be able to visualize where the focus is
SCR-20240905-uavc

e.g.

Screen.Recording.2024-09-05.at.23.14.06.mov
  • 5. Code in light mode, are we sure about this?
SCR-20240905-ubdw

I mean, I would expect that 90% of the developer use their IDE in dark mode and 10% in light mode. If this is true, aren't we making the code harder to read? from v3 to v4 https://v3.mui.com/demos/buttons/#contained-buttons we made this change.

SCR-20240905-ucuq

mui/material-ui#17871. I mean, I get that it used to be the standard to only use pointer for links, and on desktop it's more intuitive, but how many popular website doesn't use cursor pointer today? I would be afraid that end-users will be confused. The spec made it more open in: w3c/csswg-drafts#1936.

  • 8. Yarn lowercase? This is used in the Terminal.
SCR-20240905-ufmg

e.g. https://react.email/docs/components/link

SCR-20240905-ufog SCR-20240905-uibc SCR-20240905-ujfi
  • 13. until we have a custom scroll bar, a small scroll bar here could make sense:
SCR-20240905-ujij

mui/material-ui#41148

SCR-20240905-ukuh SCR-20240905-ulcr
  • 17. We will need to add the scroll restoration logic, e.g. https://master--base-ui.netlify.app/components/react-tooltip/ doesn't put the tooltip left side nav into the viewport

  • 18. I think we should add back the scrollbar size reservation so there is no layout shift when the page height is not large enough to show a scrollbar:

Screen.Recording.2024-09-05.at.23.48.07.mov
  • 19. We should add the equivalent of the .Mui-fixed class name on the fixed element so there is no layout shift on Windows:
Screen.Recording.2024-09-05.at.23.50.11.mov

https://master--base-ui.netlify.app/components/react-dialog/

  • 20. The initial HTML docs size output seems broken:

Before: 200KB https://deploy-preview-477--base-ui.netlify.app/base-ui/react-tabs/

SCR-20240906-baan

After: 919KB https://master--base-ui.netlify.app/components/react-tabs/

SCR-20240906-babf SCR-20250113-srdm

There is more, e.g. "skip to content" #1886, docs feedback, etc., but I think that it's because it's in a WIP mode, so I stopped there.

It's pretty cool that we can have a custom look for the docs infra, I look forward to Material UI using the library default look & feel and not MUI company branding. And the rest of the docs, like for Toolpad to have a more neutral theme as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentationscope: infraInfrastructure work going on behind the scenesumbrellaFor grouping multiple issues to provide a holistic view

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions