Skip to content
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 Tab or icon for scroll when the Tab width exceeds the container width #1501

Open
Puspendert opened this issue Jun 4, 2020 · 2 comments
Assignees
Labels
Hacktoberfest Issues for Hacktoberfest! state/awaiting-investigation Anything which needs more investigation tag/help-wanted Issues which need help to fix or implement type/feat Any feature requests or improvements

Comments

@Puspendert
Copy link

Feature Request

The Tabs gets hidden or it makes its parent element scroll when the width of Tab exceeds its container width. Shouldn't this be handled using either of two:

  1. The Tab itself gets scrollable
  2. An icon gets added to the ends of the Tab

Sample
https://codesandbox.io/s/fomantic-tab-issue-v6er3?file=/src/App.js

I tried it by changing the fomantic CSS as

.ui.secondary.pointing.menu{
    overflow-x: scroll;
    overflow-y: hidden;
    &::-webkit-scrollbar {
      display: none;
      width: 0;
      background: transparent;
    }
 }

But this made the active Tab bottom border gone. Also, the scrollbar not hiding.

@Puspendert Puspendert added state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/feat Any feature requests or improvements labels Jun 4, 2020
@lubber-de lubber-de added state/awaiting-investigation Anything which needs more investigation tag/help-wanted Issues which need help to fix or implement and removed state/awaiting-triage Any issues or pull requests which haven't yet been triaged labels Jun 4, 2020
@GammaGames
Copy link
Contributor

GammaGames commented Jun 5, 2020

I've run into a similar design issue before, I used JS to dynamically create a simple dropdown on the right side. It would be nice if the tab container could detect when it is overflowing and update the dropdown manually though.

image

https://jsfiddle.net/h61dvjbz/

(I know this isn't directly related to your request, I just thought I'd mention a solution I've used before)

@SeanSun6814
Copy link

I'm working on resolving this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Issues for Hacktoberfest! state/awaiting-investigation Anything which needs more investigation tag/help-wanted Issues which need help to fix or implement type/feat Any feature requests or improvements
Projects
None yet
Development

No branches or pull requests

4 participants