Comments (5)
Hey @oliviertassinari I can work on resolving this bug. It would be great if you can assign this to me.
from material-ui.
This should be a simple bug to fix but one that will be increasingly more annoying as we improve the use of "layouts" in our docs to improve performance.
@divyammadhok Go ahead, thanks
from material-ui.
Hey @oliviertassinari I added a PR for this issue - 41128
Now there were 2 approaches - either track for page changes and close the popper or pass the close callback through props and call it whenever the links are clicked but the 2nd approach felt a bit more manual to handle. Every time a new link / component is added we would need to handle for this handleClose callback so I instead went ahead with the 1st approach by tracking page changes.
from material-ui.
Same bug, the user feedback is broken, it should close when going to the same area:
Screen.Recording.2024-02-18.at.15.02.15.mov
https://mui.com/material-ui/getting-started/
Off-topic wonder if we shouldn't open in a new tab as the Google app switcher works:
from material-ui.
@oliviertassinari
Ah Gotcha, so for the same tab as the opened route we need it to close, then I believe the best path forward would be to pass an event to close it whenever it is clicked and treat every item as a close button.
Yeah, but for Google app switcher I believe the motivation is that it's possible a user is editing on the current tab but for MUI docs it's more of a readonly documentation, so not sure, if opening in new tab good for UX. Also you can check this accessibility guideline for redirection in new tab https://www.w3.org/TR/WCAG20-TECHS/G201.html Ideally from a better accessibility perspective it's advised to open in same tab as opening in new tab takes away from the ability to use back to continue where they were previously.
Edit: Kindly check the PR once more, have updated the logic.
from material-ui.
Related Issues (20)
- [question] How to combine the two different Joy-UI themes. HOT 6
- [docs] Unclear explanations in Color doc HOT 1
- Stepper lacks accessibility HOT 3
- [docs] Typo in the docs HOT 4
- [material-ui][Dialog] Scroll not working in full-screen dialog HOT 2
- [Error] Incorrect Import of PropTypes Causes Compilation Error HOT 17
- [material-ui] I need that disabling hover on Button HOT 1
- search in Autocomplete HOT 1
- Nested grids for v2 are not behaving the same as in v1 HOT 1
- MuiAutocomplete component- getOptionLabel and aria-label needs to be different, could not able to achieve it HOT 3
- [pigment] Exception when using exported class names from MUI HOT 3
- [docs] MUI-X pages give 404 in v5 docs HOT 2
- [pigment-css][material-ui] Grid throws an error HOT 2
- [material-ui][Dialog] Compatibility between MUI's dialogs and React Hook Form with FormProvider
- [docs] Outdated version entry should be cleaned up and removed from version table
- [Dialog] Providing onKeyDown breaks closing via Escape HOT 3
- [material-ui] Button `color="inherit"` prop regression for `variant="contained"`
- [docs] Google Font use is not best practice
- Slide component throws error in Pigment project
- [Grid] Compatible props are no longer warned about in v2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.