Comments (6)
Hey @m4theushw, nice to see a familiar face :)
If it's a bug, I think it's just the case of aligning the buttons with justify-content: flex-end instead of flex-direction: row-reverse.
I would definitely consider this a bug, and what you propose makes sense. I am marking it as a "good first issue", so whoever wants can take it!
from material-ui.
Seems to be a bit of both. You can change the tab order by passing orientation="horizontal"
prop value, but the alignment then starts from left.
So this is the final change to work around the current issue -
<DialogActions
orientation="horizontal"
sx={{ justifyContent: "flex-end" }}
>
...
from material-ui.
@m4theushw I was thinking, maybe to address the issue with actions appearing in the wrong order in the modal, we could try adjusting the button alignment. It might help if we ensure the Tab key navigation moves the focus forward logically through the actions/buttons.
from material-ui.
Hey @m4theushw, nice to see a familiar face :)
If it's a bug, I think it's just the case of aligning the buttons with justify-content: flex-end instead of flex-direction: row-reverse.
I would definitely consider this a bug, and what you propose makes sense. I am marking it as a "good first issue", so whoever wants can take it!
The behavior is intended because I think tab should focus on the primary action first.
from material-ui.
The behavior is intended because I think tab should focus on the primary action first.
@siriwatknp I understand your intention but for this to work properly it needs to be handled by the developer. Reversing the visual order of the items breaks the accessibility for blind users. They expect Tab to move the focus forward but it goes backwards.
From https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction:
Using the flex-direction property with values of row-reverse or column-reverse will create a disconnect between the visual presentation of content and DOM order. This will adversely affect users experiencing low vision navigating with the aid of assistive technology such as a screen reader. If the visual (CSS) order is important, then screen reader users will not have access to the correct reading order.
from material-ui.
Hey, has anyone started working on this issue yet? If not I'd love to take it.
from material-ui.
Related Issues (20)
- [docs] Change dark theme component background color without affecting other states
- [core] Adopt eslint-plugin-react-compiler
- Textfield add autoSelect prop HOT 1
- When trying to link an application using MUI v5, application gets "TypeError: Cannot read properties of null (reading 'useContext')"
- can't set drawer root element HOT 1
- Footer pagination moves when appear / disappear the vertical scrollbar HOT 1
- [material-ui][Rating] Screen reader announces incorrect value for maximum amount of stars
- [core] Fix eslint-plugin-react-compiler issues HOT 8
- Maps autocomplete example documentation incomplete HOT 2
- [examples] Migrate Next.js config.next.js to config.next.mjs HOT 1
- dashed borderStyle does not work for Divider with text HOT 1
- Checkbox component don't honor passed in color when theme has default props for MuiSvgIcon HOT 1
- [joy-ui] Cannot set `color` or `bgcolor` of `Box` when used in Next.js HOT 1
- [Breadcrumbs] Allow overriding `onClick` button base of ellipsis icon
- [Alert] TS error when using slotProps with customised component HOT 4
- [react 19][tooltip] Accessing element.ref was removed in React 19
- [material-ui] Prototype pollution security vulnerabililty in @mui/utils HOT 8
- [material-ui] Sign-in template improvements
- [material-ui] Dashboard template improvements
- [material-ui][Masonry] layout forms a single column when the first item is hidden HOT 4
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.