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.

Tabs/Tab - missing padding between Tab Control & Tab Content

See original GitHub issue

Question on Tabs, there previously was padding between the tab bar and the tab content. Do we now need to use the Styles API to inject some padding, or is the below a bug.

No padding at all - which is strange because even in the docs there is padding. See the highlighted text butts up against the outline tab bar. This is happening across all the tabs in my app (using mix of default and outline variants).

My App (seems broken): image

Mantin Docs (works correctly!): image

The immediate child inside the <Tab> is a <form> - but not sure why that would make a difference. Other tabs which are affected have <Text> or vanilla <div> as the immediate children.

Code for my screenshot:

<div style={{ position: 'relative' }}>
  <LoadingOverlay visible={loading} />
  <Tabs variant="outline">
    <Tab
      disabled={disableTabs}
      icon={<FontAwesomeIcon icon={faAddressCard} />}
      label="Profile"
    >
      <form>...</form>
    </Tab>
  </Tabs>
</div>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rtivitalcommented, Jul 6, 2021

Yes, that’s changed in 2.0.0, I forgot to put it in changelog, anyway I’ll add tabPadding prop and it will be the same as in 1.3 by default

0reactions
rtivitalcommented, Jul 6, 2021

Resolved with #135

Read more comments on GitHub >

github_iconTop Results From Across the Web

WPF tab control spacing between headers - Stack Overflow
Select the Tab you want to move, by starting with the rightmost tab. Then hold ctrl and use the right arrow key to...
Read more >
Open and close tabs in Safari on iPad - Apple Support
Touch and hold the New Tab button , then choose from the list of recently closed tabs. The Safari sidebar on the left...
Read more >
Work with tabs in Illustrator - Adobe Support
Tabs are the simplest way to align objects in your Illustrator artwork. You can use the Tabs panel to set tab stops for...
Read more >
Set tab stops and paragraph indents in Microsoft Word
On the Home tab, in the Paragraph group, choose Paragraph Settings. Click the Tabs button. Set the Tab stop position, choose the Alignment...
Read more >
Example of Tabs with Manual Activation | APG | WAI - W3C
In this example, a panel is displayed when users activate its tab with either Space , Enter , or a mouse click. So,...
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