question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab: in vertical mode with renderActiveOnly styling broken for all content except first tab

See original GitHub issue

Bug Report

Steps

Create a tab in vertical mode with renderActive Only set to false

import React from 'react'
import { Tab } from 'semantic-ui-react'

const panes = [
  { menuItem: 'Tab 1', pane: 'Tab 1 Content' },
  { menuItem: 'Tab 2', pane: 'Tab 2 Content' },
  { menuItem: 'Tab 3', pane: 'Tab 3 Content' },
]

const TabExampleBasicAll = () => <Tab panes={panes} menu={{vertical: true, fluid: true}} renderActiveOnly={false} />

export default TabExampleBasicAll

Expected Result

Outer box for all content items should be the same.

Actual Result

When you navigate to any item other than the first, the top border is not shown

Version

0.84.0

Testcase

https://codesandbox.io/s/825yxr5zn0

Screenshots

first tab second tab

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
forsythecommented, Feb 25, 2019

As a temporary workaround, I’m applying attached={false} style={{marginTop: 0}} to each pane for now.

0reactions
stale[bot]commented, Aug 24, 2019

There has been no activity in this thread for 180 days. While we care about every issue and we’d love to see this fixed, the core team’s time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.

However, PRs for this issue will of course be accepted and welcome!

If there is no more activity in the next 180 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript vertical tabs not working properly - Stack Overflow
There's a piece of JavaScript needed to hide the tabcontent to start and only show the first tab. It's not in the W3C...
Read more >
Tab - Semantic UI React
renderActiveOnly ={false} All panes are rendered on Tab mount. Switching tabs hides the current pane and shows the new pane, without unmounting panes....
Read more >
Vertical tabs broken [#925350] | Drupal.org
After looking around, I find that al themes are affected by this to differing degrees and will have their stylesheets to be adjusted....
Read more >
Tabs and Customizations in Webflow [5 of 14] - YouTube
Create a highly customized tabbed navigation with using Components. FREE course: https://designcode.io/webflow-courseAssets: ...
Read more >
tab-size - CSS: Cascading Style Sheets - MDN Web Docs
The tab-size CSS property is used to customize the width of tab ... Global values */ tab-size: inherit; tab-size: initial; tab-size: revert; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found