-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scrollable tabs dont work on RTL mode properly #1356
Comments
@mlaursen hey man thank you so much for the fix I'm wondering is there any chance to add prev / next buttons to control the tabs? |
I don't have an example of this on the documentation site, but you can actually manually control the active tab by providing https://codesandbox.io/s/tabs-example-configurable-tabs-forked-r3j63k?file=/src/Demo.tsx Is that kind of what you were hoping for? |
Oh thank you so much for the demo |
Ahhh, okay. I'll look into creating a native API for something like this. For now, here's an example of manually controlling the scroll position: https://codesandbox.io/s/t0pvm7?file=/src/Demo.tsx Tabs have the scrollbar hidden by default by setting |
That's exactly what I'm looking for thank you so much. |
Yeah, you can kind of do this by using the scoped packages instead of the root npm install --save @react-md/utils @react-md/tabs
npm install --save-dev sass # if not done so already @use '@react-md/tabs/dist/mixins' as *;
// generate tabs styles and any other required styles
@include react-md-utils; import { Dir, UserInteractionModeListener } from "@react-md/utils";
render(
<UserInteractionModeListener>
<Dir>
<App />
</DIr>
</UserInteractionModeListener>,
rootElement
); Example: https://codesandbox.io/s/react-md-tabs-minimal-4zzmdh?file=/src/index.tsx |
Thank you so much man i really appreciate it 🙏 |
Describe the bug A clear and concise description of what the bug is.
Hey guys
when i sat the direction on RTL mod the tabs stopped scroll automaticlly as it shown in this video
notice i scrolled on my touch bad so it moved
screencast-react-md.dev-2022.02.08-05_38_01_3.mp4
The text was updated successfully, but these errors were encountered: