You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same problem with styling action button in snackbar shown.
I have solved it through className and CSS overriding like this:
in my global.scss:
.notistack-MuiContent-<variant_name>: {},
// this is the content container selector for every type of snacks .notistack-MuiContent {
// I think you need to add justify-content:space-between in your case// this is the action button selector& > :nth-child(2) {
margin-left: -0.5rem;
margin-right: 0rem;
padding-right: 1rem;
padding-left: 0;
}
}
I noticed that in RTL mode, the actions are currently aligned to the right, but they should be aligned to the left to maintain proper layout consistency. This misalignment can create confusion in RTL interfaces where users expect actions to follow the natural reading order.
Suggested Solution:
I’ve submitted a pull request that addresses this issue. In my PR, I introduce flexGrow: 1 and justifyContent: 'end', which adapt the alignment dynamically for both LTR and RTL layouts. These changes ensure that:
In LTR mode, actions are aligned to the right.
In RTL mode, actions are correctly aligned to the left.
This approach not only fixes the RTL alignment issue but also improves overall flexibility and responsiveness of the layout. Feel free to review the PR, and let me know if there are any further adjustments or feedback!
Expected Behavior
In RTL mode the actions needs to be aligned to the left
Current Behavior
Here's the code:
Your Environment
The text was updated successfully, but these errors were encountered: