Utilizing Material UI Tabs in React to create curved tabs resembling those seen in Google Chrome. The design requires the parent element to have a bottom border that extends across the entire row, appearing on both the tabs and other content on the right. However, the selected tab should not display this bottom border from its parent.
Expected Outcome:
Current Outcome:
The parent's border is mistakenly applied to the selected tab, contrary to what I intended. Take a look at my code on CodeSandbox link.
Approach Attempted:
I experimented with an ::after pseudo-element positioned absolutely for the selected tab, giving it a higher z-index. This pseudo-element was meant to cover the parent's bottom border with a white-colored horizontal line. However, my attempts were unsuccessful. Despite trying various CSS modifications, the parent's border would not budge. Any suggestions to refine my current approach or offer a new solution are welcome.
(Please keep in mind that I want to continue using Material UI Tabs as the foundation.)
Additionally, can anyone explain why there is a delay when selecting a tab?