-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Edit Post: Fix tab border conflicts in the Document Overview panel #53711
Conversation
Size Change: +6 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great detail.
My only question is: can this/should this be fixed on the tab-component level? Ideally we shouldn't need local overrides like this.
Thanks for the review!
I agree with you on this point. However, in #52997, it appears that the introduction of tab panel v2 is being considered. As for being fixed at the component level, I believe that we can do that when we actually incorporate this v2. |
Fixes #53651
What?
This PR fixes a conflict between the active and gray borders of the tab panel in the document overview sidebar.
Before
After
Why?
For consistency with other tab panels.
How?
I have added a negative bottom margin below the tab button to overlap the active border and the gray border. You can find several examples of this approach by searching the code with
margin-top: -$border-width;
ormargin-bottom: -$border-width;
.As a result, the tab content is moved up by 1px. To maintain the previous height, I have increased the height of the content by 1px.
Testing Instructions