Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
Tooltip spacing is messed up when placed inside a parent in a view in mui 5

A little context here:

I have created a custom tooltipIconButton component that has a customIconButton component that receives a bunch of props.

const ToolTipIconButton = (props) => {

const {
 placement='top',
 toolTipTitle,
 isDisabled=false,
 ...otherProps
 } = props;

 return (
  <Tooltip
   arrow
   data-testid='testing-stage'
   placement={placement}
   title={isDisabled ? '' : toolTipTitle}
  >

  <span>
    <CustomIconButton
      isDisabled={isDisabled}
      {...otherProps}
    />
  </span>

</Tooltip>
);
};

now I am using this component in a couple of views some of them appear fine, but some of them appear like this i.e without spacing.

enter image description here

I figured it has something to do with the parent component, cause wherever this tooltipIconButton component has a parent let's say a <div><tooltipIconButton/></div> or <Grid><tooltipIconButton/></Grid> , the padding is removed.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!