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

Responsive - tab view should scroll instead of wrap #6632

Closed
wants to merge 4 commits into from
Closed

Responsive - tab view should scroll instead of wrap #6632

wants to merge 4 commits into from

Conversation

JacobSiegle
Copy link
Contributor

@JacobSiegle JacobSiegle commented Oct 4, 2018

###Defect Fixes
Fixes #5550.

I did have to change the CSS theme files hopefully it will be clear what changes you need to carry over to your SASS file.

Note: For the close button I added an important tag for the margin - "margin: 0 0 0 0.5em !important;". The margin CSS file for this is overridden by the theme but it might make more sense to just remove the theme style and let it exist in the component CSS. I figured I would let you guys decide.

I tested IE, FF, Edge, Chrome for all 4 tabs orientations.

The CSS is setup so that in left and right mode the tabs can also scroll. To make this work an additional prop would need to be set to define the max height for the tabs wrapper. I did not implement that extra param I wasn't sure if it was needed or not because the tabs still look fine they just get long on the page.

@JacobSiegle JacobSiegle changed the title Responsive tab view should scroll instead of wrap Responsive - tab view should scroll instead of wrap Oct 4, 2018
@JacobSiegle
Copy link
Contributor Author

JacobSiegle commented Oct 4, 2018

I was also thinking about trying to PR #1701, but let me know if I shouldn't I see it was mile stoned at one point.

@cagataycivici
Copy link
Member

We have plans to implement this differently such as displaying buttons like in PrimeFaces version;

https://www.primefaces.org/showcase/ui/panel/tabView.xhtml

So in small screens, buttons get displayed to make the headers scrollable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Responsive behavior for TabView
2 participants